Subversion Repositories SmartDukaan

Rev

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

Rev 9456 Rev 9482
Line 351... Line 351...
351
 
351
 
352
    public double getNlcForWarehouse(long warehouse_id, long item_id) throws org.apache.thrift.TException;
352
    public double getNlcForWarehouse(long warehouse_id, long item_id) throws org.apache.thrift.TException;
353
 
353
 
354
    public long getLastUpdatedTimeForSnapdealInventory() throws org.apache.thrift.TException;
354
    public long getLastUpdatedTimeForSnapdealInventory() throws org.apache.thrift.TException;
355
 
355
 
-
 
356
    public void addOrUpdateAllAmazonFbaInventory(List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot) throws org.apache.thrift.TException;
-
 
357
 
356
  }
358
  }
357
 
359
 
358
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
360
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
359
 
361
 
360
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
362
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
Line 487... Line 489...
487
 
489
 
488
    public void getNlcForWarehouse(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNlcForWarehouse_call> resultHandler) throws org.apache.thrift.TException;
490
    public void getNlcForWarehouse(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNlcForWarehouse_call> resultHandler) throws org.apache.thrift.TException;
489
 
491
 
490
    public void getLastUpdatedTimeForSnapdealInventory(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLastUpdatedTimeForSnapdealInventory_call> resultHandler) throws org.apache.thrift.TException;
492
    public void getLastUpdatedTimeForSnapdealInventory(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLastUpdatedTimeForSnapdealInventory_call> resultHandler) throws org.apache.thrift.TException;
491
 
493
 
-
 
494
    public void addOrUpdateAllAmazonFbaInventory(List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateAllAmazonFbaInventory_call> resultHandler) throws org.apache.thrift.TException;
-
 
495
 
492
  }
496
  }
493
 
497
 
494
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
498
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
495
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
499
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
496
      public Factory() {}
500
      public Factory() {}
Line 2082... Line 2086...
2082
        return result.success;
2086
        return result.success;
2083
      }
2087
      }
2084
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLastUpdatedTimeForSnapdealInventory failed: unknown result");
2088
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLastUpdatedTimeForSnapdealInventory failed: unknown result");
2085
    }
2089
    }
2086
 
2090
 
-
 
2091
    public void addOrUpdateAllAmazonFbaInventory(List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot) throws org.apache.thrift.TException
-
 
2092
    {
-
 
2093
      send_addOrUpdateAllAmazonFbaInventory(allamazonfbainventorysnapshot);
-
 
2094
      recv_addOrUpdateAllAmazonFbaInventory();
-
 
2095
    }
-
 
2096
 
-
 
2097
    public void send_addOrUpdateAllAmazonFbaInventory(List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot) throws org.apache.thrift.TException
-
 
2098
    {
-
 
2099
      addOrUpdateAllAmazonFbaInventory_args args = new addOrUpdateAllAmazonFbaInventory_args();
-
 
2100
      args.setAllamazonfbainventorysnapshot(allamazonfbainventorysnapshot);
-
 
2101
      sendBase("addOrUpdateAllAmazonFbaInventory", args);
-
 
2102
    }
-
 
2103
 
-
 
2104
    public void recv_addOrUpdateAllAmazonFbaInventory() throws org.apache.thrift.TException
-
 
2105
    {
-
 
2106
      addOrUpdateAllAmazonFbaInventory_result result = new addOrUpdateAllAmazonFbaInventory_result();
-
 
2107
      receiveBase(result, "addOrUpdateAllAmazonFbaInventory");
-
 
2108
      return;
-
 
2109
    }
-
 
2110
 
2087
  }
2111
  }
2088
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2112
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2089
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2113
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2090
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2114
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2091
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2115
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4341... Line 4365...
4341
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4365
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4342
        return (new Client(prot)).recv_getLastUpdatedTimeForSnapdealInventory();
4366
        return (new Client(prot)).recv_getLastUpdatedTimeForSnapdealInventory();
4343
      }
4367
      }
4344
    }
4368
    }
4345
 
4369
 
-
 
4370
    public void addOrUpdateAllAmazonFbaInventory(List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateAllAmazonFbaInventory_call> resultHandler) throws org.apache.thrift.TException {
-
 
4371
      checkReady();
-
 
4372
      addOrUpdateAllAmazonFbaInventory_call method_call = new addOrUpdateAllAmazonFbaInventory_call(allamazonfbainventorysnapshot, resultHandler, this, ___protocolFactory, ___transport);
-
 
4373
      this.___currentMethod = method_call;
-
 
4374
      ___manager.call(method_call);
-
 
4375
    }
-
 
4376
 
-
 
4377
    public static class addOrUpdateAllAmazonFbaInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4378
      private List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot;
-
 
4379
      public addOrUpdateAllAmazonFbaInventory_call(List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateAllAmazonFbaInventory_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 {
-
 
4380
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4381
        this.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot;
-
 
4382
      }
-
 
4383
 
-
 
4384
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4385
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdateAllAmazonFbaInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4386
        addOrUpdateAllAmazonFbaInventory_args args = new addOrUpdateAllAmazonFbaInventory_args();
-
 
4387
        args.setAllamazonfbainventorysnapshot(allamazonfbainventorysnapshot);
-
 
4388
        args.write(prot);
-
 
4389
        prot.writeMessageEnd();
-
 
4390
      }
-
 
4391
 
-
 
4392
      public void getResult() throws org.apache.thrift.TException {
-
 
4393
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4394
          throw new IllegalStateException("Method call not finished!");
-
 
4395
        }
-
 
4396
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4397
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4398
        (new Client(prot)).recv_addOrUpdateAllAmazonFbaInventory();
-
 
4399
      }
-
 
4400
    }
-
 
4401
 
4346
  }
4402
  }
4347
 
4403
 
4348
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4404
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4349
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4405
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4350
    public Processor(I iface) {
4406
    public Processor(I iface) {
Line 4420... Line 4476...
4420
      processMap.put("getHoldInventoryDetailForItemForWarehouseIdExceptSource", new getHoldInventoryDetailForItemForWarehouseIdExceptSource());
4476
      processMap.put("getHoldInventoryDetailForItemForWarehouseIdExceptSource", new getHoldInventoryDetailForItemForWarehouseIdExceptSource());
4421
      processMap.put("getSnapdealInventoryForItem", new getSnapdealInventoryForItem());
4477
      processMap.put("getSnapdealInventoryForItem", new getSnapdealInventoryForItem());
4422
      processMap.put("addOrUpdateSnapdealInventoryForItem", new addOrUpdateSnapdealInventoryForItem());
4478
      processMap.put("addOrUpdateSnapdealInventoryForItem", new addOrUpdateSnapdealInventoryForItem());
4423
      processMap.put("getNlcForWarehouse", new getNlcForWarehouse());
4479
      processMap.put("getNlcForWarehouse", new getNlcForWarehouse());
4424
      processMap.put("getLastUpdatedTimeForSnapdealInventory", new getLastUpdatedTimeForSnapdealInventory());
4480
      processMap.put("getLastUpdatedTimeForSnapdealInventory", new getLastUpdatedTimeForSnapdealInventory());
-
 
4481
      processMap.put("addOrUpdateAllAmazonFbaInventory", new addOrUpdateAllAmazonFbaInventory());
4425
      return processMap;
4482
      return processMap;
4426
    }
4483
    }
4427
 
4484
 
4428
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
4485
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
4429
      public addWarehouse() {
4486
      public addWarehouse() {
Line 5586... Line 5643...
5586
        result.setSuccessIsSet(true);
5643
        result.setSuccessIsSet(true);
5587
        return result;
5644
        return result;
5588
      }
5645
      }
5589
    }
5646
    }
5590
 
5647
 
-
 
5648
    private static class addOrUpdateAllAmazonFbaInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateAllAmazonFbaInventory_args> {
-
 
5649
      public addOrUpdateAllAmazonFbaInventory() {
-
 
5650
        super("addOrUpdateAllAmazonFbaInventory");
-
 
5651
      }
-
 
5652
 
-
 
5653
      protected addOrUpdateAllAmazonFbaInventory_args getEmptyArgsInstance() {
-
 
5654
        return new addOrUpdateAllAmazonFbaInventory_args();
-
 
5655
      }
-
 
5656
 
-
 
5657
      protected addOrUpdateAllAmazonFbaInventory_result getResult(I iface, addOrUpdateAllAmazonFbaInventory_args args) throws org.apache.thrift.TException {
-
 
5658
        addOrUpdateAllAmazonFbaInventory_result result = new addOrUpdateAllAmazonFbaInventory_result();
-
 
5659
        iface.addOrUpdateAllAmazonFbaInventory(args.allamazonfbainventorysnapshot);
-
 
5660
        return result;
-
 
5661
      }
-
 
5662
    }
-
 
5663
 
5591
  }
5664
  }
5592
 
5665
 
5593
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
5666
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
5594
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
5667
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
5595
 
5668
 
Line 49248... Line 49321...
49248
      sb.append(")");
49321
      sb.append(")");
49249
      return sb.toString();
49322
      return sb.toString();
49250
    }
49323
    }
49251
 
49324
 
49252
    public void validate() throws org.apache.thrift.TException {
49325
    public void validate() throws org.apache.thrift.TException {
-
 
49326
      // check for required fields
-
 
49327
    }
-
 
49328
 
-
 
49329
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
49330
      try {
-
 
49331
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
49332
      } catch (org.apache.thrift.TException te) {
-
 
49333
        throw new java.io.IOException(te);
-
 
49334
      }
-
 
49335
    }
-
 
49336
 
-
 
49337
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
49338
      try {
-
 
49339
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
49340
      } catch (org.apache.thrift.TException te) {
-
 
49341
        throw new java.io.IOException(te);
-
 
49342
      }
-
 
49343
    }
-
 
49344
 
-
 
49345
  }
-
 
49346
 
-
 
49347
  public static class addOrUpdateAllAmazonFbaInventory_args implements org.apache.thrift.TBase<addOrUpdateAllAmazonFbaInventory_args, addOrUpdateAllAmazonFbaInventory_args._Fields>, java.io.Serializable, Cloneable   {
-
 
49348
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateAllAmazonFbaInventory_args");
-
 
49349
 
-
 
49350
    private static final org.apache.thrift.protocol.TField ALLAMAZONFBAINVENTORYSNAPSHOT_FIELD_DESC = new org.apache.thrift.protocol.TField("allamazonfbainventorysnapshot", org.apache.thrift.protocol.TType.LIST, (short)-1);
-
 
49351
 
-
 
49352
    private List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot; // required
-
 
49353
 
-
 
49354
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
49355
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
49356
      ALLAMAZONFBAINVENTORYSNAPSHOT((short)-1, "allamazonfbainventorysnapshot");
-
 
49357
 
-
 
49358
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
49359
 
-
 
49360
      static {
-
 
49361
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
49362
          byName.put(field.getFieldName(), field);
-
 
49363
        }
-
 
49364
      }
-
 
49365
 
-
 
49366
      /**
-
 
49367
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
49368
       */
-
 
49369
      public static _Fields findByThriftId(int fieldId) {
-
 
49370
        switch(fieldId) {
-
 
49371
          case -1: // ALLAMAZONFBAINVENTORYSNAPSHOT
-
 
49372
            return ALLAMAZONFBAINVENTORYSNAPSHOT;
-
 
49373
          default:
-
 
49374
            return null;
-
 
49375
        }
-
 
49376
      }
-
 
49377
 
-
 
49378
      /**
-
 
49379
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
49380
       * if it is not found.
-
 
49381
       */
-
 
49382
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
49383
        _Fields fields = findByThriftId(fieldId);
-
 
49384
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
49385
        return fields;
-
 
49386
      }
-
 
49387
 
-
 
49388
      /**
-
 
49389
       * Find the _Fields constant that matches name, or null if its not found.
-
 
49390
       */
-
 
49391
      public static _Fields findByName(String name) {
-
 
49392
        return byName.get(name);
-
 
49393
      }
-
 
49394
 
-
 
49395
      private final short _thriftId;
-
 
49396
      private final String _fieldName;
-
 
49397
 
-
 
49398
      _Fields(short thriftId, String fieldName) {
-
 
49399
        _thriftId = thriftId;
-
 
49400
        _fieldName = fieldName;
-
 
49401
      }
-
 
49402
 
-
 
49403
      public short getThriftFieldId() {
-
 
49404
        return _thriftId;
-
 
49405
      }
-
 
49406
 
-
 
49407
      public String getFieldName() {
-
 
49408
        return _fieldName;
-
 
49409
      }
-
 
49410
    }
-
 
49411
 
-
 
49412
    // isset id assignments
-
 
49413
 
-
 
49414
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
49415
    static {
-
 
49416
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
49417
      tmpMap.put(_Fields.ALLAMAZONFBAINVENTORYSNAPSHOT, new org.apache.thrift.meta_data.FieldMetaData("allamazonfbainventorysnapshot", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
49418
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
49419
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonFbaInventorySnapshot.class))));
-
 
49420
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
49421
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateAllAmazonFbaInventory_args.class, metaDataMap);
-
 
49422
    }
-
 
49423
 
-
 
49424
    public addOrUpdateAllAmazonFbaInventory_args() {
-
 
49425
    }
-
 
49426
 
-
 
49427
    public addOrUpdateAllAmazonFbaInventory_args(
-
 
49428
      List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot)
-
 
49429
    {
-
 
49430
      this();
-
 
49431
      this.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot;
-
 
49432
    }
-
 
49433
 
-
 
49434
    /**
-
 
49435
     * Performs a deep copy on <i>other</i>.
-
 
49436
     */
-
 
49437
    public addOrUpdateAllAmazonFbaInventory_args(addOrUpdateAllAmazonFbaInventory_args other) {
-
 
49438
      if (other.isSetAllamazonfbainventorysnapshot()) {
-
 
49439
        List<AmazonFbaInventorySnapshot> __this__allamazonfbainventorysnapshot = new ArrayList<AmazonFbaInventorySnapshot>();
-
 
49440
        for (AmazonFbaInventorySnapshot other_element : other.allamazonfbainventorysnapshot) {
-
 
49441
          __this__allamazonfbainventorysnapshot.add(new AmazonFbaInventorySnapshot(other_element));
-
 
49442
        }
-
 
49443
        this.allamazonfbainventorysnapshot = __this__allamazonfbainventorysnapshot;
-
 
49444
      }
-
 
49445
    }
-
 
49446
 
-
 
49447
    public addOrUpdateAllAmazonFbaInventory_args deepCopy() {
-
 
49448
      return new addOrUpdateAllAmazonFbaInventory_args(this);
-
 
49449
    }
-
 
49450
 
-
 
49451
    @Override
-
 
49452
    public void clear() {
-
 
49453
      this.allamazonfbainventorysnapshot = null;
-
 
49454
    }
-
 
49455
 
-
 
49456
    public int getAllamazonfbainventorysnapshotSize() {
-
 
49457
      return (this.allamazonfbainventorysnapshot == null) ? 0 : this.allamazonfbainventorysnapshot.size();
-
 
49458
    }
-
 
49459
 
-
 
49460
    public java.util.Iterator<AmazonFbaInventorySnapshot> getAllamazonfbainventorysnapshotIterator() {
-
 
49461
      return (this.allamazonfbainventorysnapshot == null) ? null : this.allamazonfbainventorysnapshot.iterator();
-
 
49462
    }
-
 
49463
 
-
 
49464
    public void addToAllamazonfbainventorysnapshot(AmazonFbaInventorySnapshot elem) {
-
 
49465
      if (this.allamazonfbainventorysnapshot == null) {
-
 
49466
        this.allamazonfbainventorysnapshot = new ArrayList<AmazonFbaInventorySnapshot>();
-
 
49467
      }
-
 
49468
      this.allamazonfbainventorysnapshot.add(elem);
-
 
49469
    }
-
 
49470
 
-
 
49471
    public List<AmazonFbaInventorySnapshot> getAllamazonfbainventorysnapshot() {
-
 
49472
      return this.allamazonfbainventorysnapshot;
-
 
49473
    }
-
 
49474
 
-
 
49475
    public void setAllamazonfbainventorysnapshot(List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot) {
-
 
49476
      this.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot;
-
 
49477
    }
-
 
49478
 
-
 
49479
    public void unsetAllamazonfbainventorysnapshot() {
-
 
49480
      this.allamazonfbainventorysnapshot = null;
-
 
49481
    }
-
 
49482
 
-
 
49483
    /** Returns true if field allamazonfbainventorysnapshot is set (has been assigned a value) and false otherwise */
-
 
49484
    public boolean isSetAllamazonfbainventorysnapshot() {
-
 
49485
      return this.allamazonfbainventorysnapshot != null;
-
 
49486
    }
-
 
49487
 
-
 
49488
    public void setAllamazonfbainventorysnapshotIsSet(boolean value) {
-
 
49489
      if (!value) {
-
 
49490
        this.allamazonfbainventorysnapshot = null;
-
 
49491
      }
-
 
49492
    }
-
 
49493
 
-
 
49494
    public void setFieldValue(_Fields field, Object value) {
-
 
49495
      switch (field) {
-
 
49496
      case ALLAMAZONFBAINVENTORYSNAPSHOT:
-
 
49497
        if (value == null) {
-
 
49498
          unsetAllamazonfbainventorysnapshot();
-
 
49499
        } else {
-
 
49500
          setAllamazonfbainventorysnapshot((List<AmazonFbaInventorySnapshot>)value);
-
 
49501
        }
-
 
49502
        break;
-
 
49503
 
-
 
49504
      }
-
 
49505
    }
-
 
49506
 
-
 
49507
    public Object getFieldValue(_Fields field) {
-
 
49508
      switch (field) {
-
 
49509
      case ALLAMAZONFBAINVENTORYSNAPSHOT:
-
 
49510
        return getAllamazonfbainventorysnapshot();
-
 
49511
 
-
 
49512
      }
-
 
49513
      throw new IllegalStateException();
-
 
49514
    }
-
 
49515
 
-
 
49516
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
49517
    public boolean isSet(_Fields field) {
-
 
49518
      if (field == null) {
-
 
49519
        throw new IllegalArgumentException();
-
 
49520
      }
-
 
49521
 
-
 
49522
      switch (field) {
-
 
49523
      case ALLAMAZONFBAINVENTORYSNAPSHOT:
-
 
49524
        return isSetAllamazonfbainventorysnapshot();
-
 
49525
      }
-
 
49526
      throw new IllegalStateException();
-
 
49527
    }
-
 
49528
 
-
 
49529
    @Override
-
 
49530
    public boolean equals(Object that) {
-
 
49531
      if (that == null)
-
 
49532
        return false;
-
 
49533
      if (that instanceof addOrUpdateAllAmazonFbaInventory_args)
-
 
49534
        return this.equals((addOrUpdateAllAmazonFbaInventory_args)that);
-
 
49535
      return false;
-
 
49536
    }
-
 
49537
 
-
 
49538
    public boolean equals(addOrUpdateAllAmazonFbaInventory_args that) {
-
 
49539
      if (that == null)
-
 
49540
        return false;
-
 
49541
 
-
 
49542
      boolean this_present_allamazonfbainventorysnapshot = true && this.isSetAllamazonfbainventorysnapshot();
-
 
49543
      boolean that_present_allamazonfbainventorysnapshot = true && that.isSetAllamazonfbainventorysnapshot();
-
 
49544
      if (this_present_allamazonfbainventorysnapshot || that_present_allamazonfbainventorysnapshot) {
-
 
49545
        if (!(this_present_allamazonfbainventorysnapshot && that_present_allamazonfbainventorysnapshot))
-
 
49546
          return false;
-
 
49547
        if (!this.allamazonfbainventorysnapshot.equals(that.allamazonfbainventorysnapshot))
-
 
49548
          return false;
-
 
49549
      }
-
 
49550
 
-
 
49551
      return true;
-
 
49552
    }
-
 
49553
 
-
 
49554
    @Override
-
 
49555
    public int hashCode() {
-
 
49556
      return 0;
-
 
49557
    }
-
 
49558
 
-
 
49559
    public int compareTo(addOrUpdateAllAmazonFbaInventory_args other) {
-
 
49560
      if (!getClass().equals(other.getClass())) {
-
 
49561
        return getClass().getName().compareTo(other.getClass().getName());
-
 
49562
      }
-
 
49563
 
-
 
49564
      int lastComparison = 0;
-
 
49565
      addOrUpdateAllAmazonFbaInventory_args typedOther = (addOrUpdateAllAmazonFbaInventory_args)other;
-
 
49566
 
-
 
49567
      lastComparison = Boolean.valueOf(isSetAllamazonfbainventorysnapshot()).compareTo(typedOther.isSetAllamazonfbainventorysnapshot());
-
 
49568
      if (lastComparison != 0) {
-
 
49569
        return lastComparison;
-
 
49570
      }
-
 
49571
      if (isSetAllamazonfbainventorysnapshot()) {
-
 
49572
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.allamazonfbainventorysnapshot, typedOther.allamazonfbainventorysnapshot);
-
 
49573
        if (lastComparison != 0) {
-
 
49574
          return lastComparison;
-
 
49575
        }
-
 
49576
      }
-
 
49577
      return 0;
-
 
49578
    }
-
 
49579
 
-
 
49580
    public _Fields fieldForId(int fieldId) {
-
 
49581
      return _Fields.findByThriftId(fieldId);
-
 
49582
    }
-
 
49583
 
-
 
49584
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
49585
      org.apache.thrift.protocol.TField field;
-
 
49586
      iprot.readStructBegin();
-
 
49587
      while (true)
-
 
49588
      {
-
 
49589
        field = iprot.readFieldBegin();
-
 
49590
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
49591
          break;
-
 
49592
        }
-
 
49593
        switch (field.id) {
-
 
49594
          case -1: // ALLAMAZONFBAINVENTORYSNAPSHOT
-
 
49595
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
49596
              {
-
 
49597
                org.apache.thrift.protocol.TList _list138 = iprot.readListBegin();
-
 
49598
                this.allamazonfbainventorysnapshot = new ArrayList<AmazonFbaInventorySnapshot>(_list138.size);
-
 
49599
                for (int _i139 = 0; _i139 < _list138.size; ++_i139)
-
 
49600
                {
-
 
49601
                  AmazonFbaInventorySnapshot _elem140; // required
-
 
49602
                  _elem140 = new AmazonFbaInventorySnapshot();
-
 
49603
                  _elem140.read(iprot);
-
 
49604
                  this.allamazonfbainventorysnapshot.add(_elem140);
-
 
49605
                }
-
 
49606
                iprot.readListEnd();
-
 
49607
              }
-
 
49608
            } else { 
-
 
49609
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
49610
            }
-
 
49611
            break;
-
 
49612
          default:
-
 
49613
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
49614
        }
-
 
49615
        iprot.readFieldEnd();
-
 
49616
      }
-
 
49617
      iprot.readStructEnd();
-
 
49618
      validate();
-
 
49619
    }
-
 
49620
 
-
 
49621
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
49622
      validate();
-
 
49623
 
-
 
49624
      oprot.writeStructBegin(STRUCT_DESC);
-
 
49625
      if (this.allamazonfbainventorysnapshot != null) {
-
 
49626
        oprot.writeFieldBegin(ALLAMAZONFBAINVENTORYSNAPSHOT_FIELD_DESC);
-
 
49627
        {
-
 
49628
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.allamazonfbainventorysnapshot.size()));
-
 
49629
          for (AmazonFbaInventorySnapshot _iter141 : this.allamazonfbainventorysnapshot)
-
 
49630
          {
-
 
49631
            _iter141.write(oprot);
-
 
49632
          }
-
 
49633
          oprot.writeListEnd();
-
 
49634
        }
-
 
49635
        oprot.writeFieldEnd();
-
 
49636
      }
-
 
49637
      oprot.writeFieldStop();
-
 
49638
      oprot.writeStructEnd();
-
 
49639
    }
-
 
49640
 
-
 
49641
    @Override
-
 
49642
    public String toString() {
-
 
49643
      StringBuilder sb = new StringBuilder("addOrUpdateAllAmazonFbaInventory_args(");
-
 
49644
      boolean first = true;
-
 
49645
 
-
 
49646
      sb.append("allamazonfbainventorysnapshot:");
-
 
49647
      if (this.allamazonfbainventorysnapshot == null) {
-
 
49648
        sb.append("null");
-
 
49649
      } else {
-
 
49650
        sb.append(this.allamazonfbainventorysnapshot);
-
 
49651
      }
-
 
49652
      first = false;
-
 
49653
      sb.append(")");
-
 
49654
      return sb.toString();
-
 
49655
    }
-
 
49656
 
-
 
49657
    public void validate() throws org.apache.thrift.TException {
-
 
49658
      // check for required fields
-
 
49659
    }
-
 
49660
 
-
 
49661
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
49662
      try {
-
 
49663
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
49664
      } catch (org.apache.thrift.TException te) {
-
 
49665
        throw new java.io.IOException(te);
-
 
49666
      }
-
 
49667
    }
-
 
49668
 
-
 
49669
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
49670
      try {
-
 
49671
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
49672
      } catch (org.apache.thrift.TException te) {
-
 
49673
        throw new java.io.IOException(te);
-
 
49674
      }
-
 
49675
    }
-
 
49676
 
-
 
49677
  }
-
 
49678
 
-
 
49679
  public static class addOrUpdateAllAmazonFbaInventory_result implements org.apache.thrift.TBase<addOrUpdateAllAmazonFbaInventory_result, addOrUpdateAllAmazonFbaInventory_result._Fields>, java.io.Serializable, Cloneable   {
-
 
49680
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateAllAmazonFbaInventory_result");
-
 
49681
 
-
 
49682
 
-
 
49683
 
-
 
49684
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
49685
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
49686
;
-
 
49687
 
-
 
49688
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
49689
 
-
 
49690
      static {
-
 
49691
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
49692
          byName.put(field.getFieldName(), field);
-
 
49693
        }
-
 
49694
      }
-
 
49695
 
-
 
49696
      /**
-
 
49697
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
49698
       */
-
 
49699
      public static _Fields findByThriftId(int fieldId) {
-
 
49700
        switch(fieldId) {
-
 
49701
          default:
-
 
49702
            return null;
-
 
49703
        }
-
 
49704
      }
-
 
49705
 
-
 
49706
      /**
-
 
49707
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
49708
       * if it is not found.
-
 
49709
       */
-
 
49710
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
49711
        _Fields fields = findByThriftId(fieldId);
-
 
49712
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
49713
        return fields;
-
 
49714
      }
-
 
49715
 
-
 
49716
      /**
-
 
49717
       * Find the _Fields constant that matches name, or null if its not found.
-
 
49718
       */
-
 
49719
      public static _Fields findByName(String name) {
-
 
49720
        return byName.get(name);
-
 
49721
      }
-
 
49722
 
-
 
49723
      private final short _thriftId;
-
 
49724
      private final String _fieldName;
-
 
49725
 
-
 
49726
      _Fields(short thriftId, String fieldName) {
-
 
49727
        _thriftId = thriftId;
-
 
49728
        _fieldName = fieldName;
-
 
49729
      }
-
 
49730
 
-
 
49731
      public short getThriftFieldId() {
-
 
49732
        return _thriftId;
-
 
49733
      }
-
 
49734
 
-
 
49735
      public String getFieldName() {
-
 
49736
        return _fieldName;
-
 
49737
      }
-
 
49738
    }
-
 
49739
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
49740
    static {
-
 
49741
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
49742
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
49743
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateAllAmazonFbaInventory_result.class, metaDataMap);
-
 
49744
    }
-
 
49745
 
-
 
49746
    public addOrUpdateAllAmazonFbaInventory_result() {
-
 
49747
    }
-
 
49748
 
-
 
49749
    /**
-
 
49750
     * Performs a deep copy on <i>other</i>.
-
 
49751
     */
-
 
49752
    public addOrUpdateAllAmazonFbaInventory_result(addOrUpdateAllAmazonFbaInventory_result other) {
-
 
49753
    }
-
 
49754
 
-
 
49755
    public addOrUpdateAllAmazonFbaInventory_result deepCopy() {
-
 
49756
      return new addOrUpdateAllAmazonFbaInventory_result(this);
-
 
49757
    }
-
 
49758
 
-
 
49759
    @Override
-
 
49760
    public void clear() {
-
 
49761
    }
-
 
49762
 
-
 
49763
    public void setFieldValue(_Fields field, Object value) {
-
 
49764
      switch (field) {
-
 
49765
      }
-
 
49766
    }
-
 
49767
 
-
 
49768
    public Object getFieldValue(_Fields field) {
-
 
49769
      switch (field) {
-
 
49770
      }
-
 
49771
      throw new IllegalStateException();
-
 
49772
    }
-
 
49773
 
-
 
49774
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
49775
    public boolean isSet(_Fields field) {
-
 
49776
      if (field == null) {
-
 
49777
        throw new IllegalArgumentException();
-
 
49778
      }
-
 
49779
 
-
 
49780
      switch (field) {
-
 
49781
      }
-
 
49782
      throw new IllegalStateException();
-
 
49783
    }
-
 
49784
 
-
 
49785
    @Override
-
 
49786
    public boolean equals(Object that) {
-
 
49787
      if (that == null)
-
 
49788
        return false;
-
 
49789
      if (that instanceof addOrUpdateAllAmazonFbaInventory_result)
-
 
49790
        return this.equals((addOrUpdateAllAmazonFbaInventory_result)that);
-
 
49791
      return false;
-
 
49792
    }
-
 
49793
 
-
 
49794
    public boolean equals(addOrUpdateAllAmazonFbaInventory_result that) {
-
 
49795
      if (that == null)
-
 
49796
        return false;
-
 
49797
 
-
 
49798
      return true;
-
 
49799
    }
-
 
49800
 
-
 
49801
    @Override
-
 
49802
    public int hashCode() {
-
 
49803
      return 0;
-
 
49804
    }
-
 
49805
 
-
 
49806
    public int compareTo(addOrUpdateAllAmazonFbaInventory_result other) {
-
 
49807
      if (!getClass().equals(other.getClass())) {
-
 
49808
        return getClass().getName().compareTo(other.getClass().getName());
-
 
49809
      }
-
 
49810
 
-
 
49811
      int lastComparison = 0;
-
 
49812
      addOrUpdateAllAmazonFbaInventory_result typedOther = (addOrUpdateAllAmazonFbaInventory_result)other;
-
 
49813
 
-
 
49814
      return 0;
-
 
49815
    }
-
 
49816
 
-
 
49817
    public _Fields fieldForId(int fieldId) {
-
 
49818
      return _Fields.findByThriftId(fieldId);
-
 
49819
    }
-
 
49820
 
-
 
49821
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
49822
      org.apache.thrift.protocol.TField field;
-
 
49823
      iprot.readStructBegin();
-
 
49824
      while (true)
-
 
49825
      {
-
 
49826
        field = iprot.readFieldBegin();
-
 
49827
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
49828
          break;
-
 
49829
        }
-
 
49830
        switch (field.id) {
-
 
49831
          default:
-
 
49832
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
49833
        }
-
 
49834
        iprot.readFieldEnd();
-
 
49835
      }
-
 
49836
      iprot.readStructEnd();
-
 
49837
      validate();
-
 
49838
    }
-
 
49839
 
-
 
49840
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
49841
      oprot.writeStructBegin(STRUCT_DESC);
-
 
49842
 
-
 
49843
      oprot.writeFieldStop();
-
 
49844
      oprot.writeStructEnd();
-
 
49845
    }
-
 
49846
 
-
 
49847
    @Override
-
 
49848
    public String toString() {
-
 
49849
      StringBuilder sb = new StringBuilder("addOrUpdateAllAmazonFbaInventory_result(");
-
 
49850
      boolean first = true;
-
 
49851
 
-
 
49852
      sb.append(")");
-
 
49853
      return sb.toString();
-
 
49854
    }
-
 
49855
 
-
 
49856
    public void validate() throws org.apache.thrift.TException {
49253
      // check for required fields
49857
      // check for required fields
49254
    }
49858
    }
49255
 
49859
 
49256
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
49860
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
49257
      try {
49861
      try {