Subversion Repositories SmartDukaan

Rev

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

Rev 6511 Rev 6531
Line 342... Line 342...
342
 
342
 
343
    public double getVatPercentageForItem(long itemId, double price) throws org.apache.thrift.TException;
343
    public double getVatPercentageForItem(long itemId, double price) throws org.apache.thrift.TException;
344
 
344
 
345
    public double getVatAmountForItem(long itemId, double price) throws org.apache.thrift.TException;
345
    public double getVatAmountForItem(long itemId, double price) throws org.apache.thrift.TException;
346
 
346
 
-
 
347
    public List<Item> getAllIgnoredInventoryUpdateItemsList(int offset, int limit) throws org.apache.thrift.TException;
-
 
348
 
347
  }
349
  }
348
 
350
 
349
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
351
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
350
 
352
 
351
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
353
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 482... Line 484...
482
 
484
 
483
    public void getVatPercentageForItem(long itemId, double price, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVatPercentageForItem_call> resultHandler) throws org.apache.thrift.TException;
485
    public void getVatPercentageForItem(long itemId, double price, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVatPercentageForItem_call> resultHandler) throws org.apache.thrift.TException;
484
 
486
 
485
    public void getVatAmountForItem(long itemId, double price, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVatAmountForItem_call> resultHandler) throws org.apache.thrift.TException;
487
    public void getVatAmountForItem(long itemId, double price, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVatAmountForItem_call> resultHandler) throws org.apache.thrift.TException;
486
 
488
 
-
 
489
    public void getAllIgnoredInventoryUpdateItemsList(int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllIgnoredInventoryUpdateItemsList_call> resultHandler) throws org.apache.thrift.TException;
-
 
490
 
487
  }
491
  }
488
 
492
 
489
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
493
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
490
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
494
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
491
      public Factory() {}
495
      public Factory() {}
Line 2193... Line 2197...
2193
        return result.success;
2197
        return result.success;
2194
      }
2198
      }
2195
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
2199
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
2196
    }
2200
    }
2197
 
2201
 
-
 
2202
    public List<Item> getAllIgnoredInventoryUpdateItemsList(int offset, int limit) throws org.apache.thrift.TException
-
 
2203
    {
-
 
2204
      send_getAllIgnoredInventoryUpdateItemsList(offset, limit);
-
 
2205
      return recv_getAllIgnoredInventoryUpdateItemsList();
-
 
2206
    }
-
 
2207
 
-
 
2208
    public void send_getAllIgnoredInventoryUpdateItemsList(int offset, int limit) throws org.apache.thrift.TException
-
 
2209
    {
-
 
2210
      getAllIgnoredInventoryUpdateItemsList_args args = new getAllIgnoredInventoryUpdateItemsList_args();
-
 
2211
      args.setOffset(offset);
-
 
2212
      args.setLimit(limit);
-
 
2213
      sendBase("getAllIgnoredInventoryUpdateItemsList", args);
-
 
2214
    }
-
 
2215
 
-
 
2216
    public List<Item> recv_getAllIgnoredInventoryUpdateItemsList() throws org.apache.thrift.TException
-
 
2217
    {
-
 
2218
      getAllIgnoredInventoryUpdateItemsList_result result = new getAllIgnoredInventoryUpdateItemsList_result();
-
 
2219
      receiveBase(result, "getAllIgnoredInventoryUpdateItemsList");
-
 
2220
      if (result.isSetSuccess()) {
-
 
2221
        return result.success;
-
 
2222
      }
-
 
2223
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
-
 
2224
    }
-
 
2225
 
2198
  }
2226
  }
2199
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2227
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2200
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2228
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2201
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2229
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2202
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2230
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4483... Line 4511...
4483
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4511
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4484
        return (new Client(prot)).recv_getVatAmountForItem();
4512
        return (new Client(prot)).recv_getVatAmountForItem();
4485
      }
4513
      }
4486
    }
4514
    }
4487
 
4515
 
-
 
4516
    public void getAllIgnoredInventoryUpdateItemsList(int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<getAllIgnoredInventoryUpdateItemsList_call> resultHandler) throws org.apache.thrift.TException {
-
 
4517
      checkReady();
-
 
4518
      getAllIgnoredInventoryUpdateItemsList_call method_call = new getAllIgnoredInventoryUpdateItemsList_call(offset, limit, resultHandler, this, ___protocolFactory, ___transport);
-
 
4519
      this.___currentMethod = method_call;
-
 
4520
      ___manager.call(method_call);
-
 
4521
    }
-
 
4522
 
-
 
4523
    public static class getAllIgnoredInventoryUpdateItemsList_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4524
      private int offset;
-
 
4525
      private int limit;
-
 
4526
      public getAllIgnoredInventoryUpdateItemsList_call(int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<getAllIgnoredInventoryUpdateItemsList_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 {
-
 
4527
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4528
        this.offset = offset;
-
 
4529
        this.limit = limit;
-
 
4530
      }
-
 
4531
 
-
 
4532
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4533
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllIgnoredInventoryUpdateItemsList", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4534
        getAllIgnoredInventoryUpdateItemsList_args args = new getAllIgnoredInventoryUpdateItemsList_args();
-
 
4535
        args.setOffset(offset);
-
 
4536
        args.setLimit(limit);
-
 
4537
        args.write(prot);
-
 
4538
        prot.writeMessageEnd();
-
 
4539
      }
-
 
4540
 
-
 
4541
      public List<Item> getResult() throws org.apache.thrift.TException {
-
 
4542
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4543
          throw new IllegalStateException("Method call not finished!");
-
 
4544
        }
-
 
4545
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4546
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4547
        return (new Client(prot)).recv_getAllIgnoredInventoryUpdateItemsList();
-
 
4548
      }
-
 
4549
    }
-
 
4550
 
4488
  }
4551
  }
4489
 
4552
 
4490
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4553
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4491
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4554
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4492
    public Processor(I iface) {
4555
    public Processor(I iface) {
Line 4564... Line 4627...
4564
      processMap.put("getVoucherAmount", new getVoucherAmount());
4627
      processMap.put("getVoucherAmount", new getVoucherAmount());
4565
      processMap.put("getAllItemVouchers", new getAllItemVouchers());
4628
      processMap.put("getAllItemVouchers", new getAllItemVouchers());
4566
      processMap.put("isValidCatalogItemId", new isValidCatalogItemId());
4629
      processMap.put("isValidCatalogItemId", new isValidCatalogItemId());
4567
      processMap.put("getVatPercentageForItem", new getVatPercentageForItem());
4630
      processMap.put("getVatPercentageForItem", new getVatPercentageForItem());
4568
      processMap.put("getVatAmountForItem", new getVatAmountForItem());
4631
      processMap.put("getVatAmountForItem", new getVatAmountForItem());
-
 
4632
      processMap.put("getAllIgnoredInventoryUpdateItemsList", new getAllIgnoredInventoryUpdateItemsList());
4569
      return processMap;
4633
      return processMap;
4570
    }
4634
    }
4571
 
4635
 
4572
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
4636
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
4573
      public addItem() {
4637
      public addItem() {
Line 5828... Line 5892...
5828
        result.setSuccessIsSet(true);
5892
        result.setSuccessIsSet(true);
5829
        return result;
5893
        return result;
5830
      }
5894
      }
5831
    }
5895
    }
5832
 
5896
 
-
 
5897
    private static class getAllIgnoredInventoryUpdateItemsList<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllIgnoredInventoryUpdateItemsList_args> {
-
 
5898
      public getAllIgnoredInventoryUpdateItemsList() {
-
 
5899
        super("getAllIgnoredInventoryUpdateItemsList");
-
 
5900
      }
-
 
5901
 
-
 
5902
      protected getAllIgnoredInventoryUpdateItemsList_args getEmptyArgsInstance() {
-
 
5903
        return new getAllIgnoredInventoryUpdateItemsList_args();
-
 
5904
      }
-
 
5905
 
-
 
5906
      protected getAllIgnoredInventoryUpdateItemsList_result getResult(I iface, getAllIgnoredInventoryUpdateItemsList_args args) throws org.apache.thrift.TException {
-
 
5907
        getAllIgnoredInventoryUpdateItemsList_result result = new getAllIgnoredInventoryUpdateItemsList_result();
-
 
5908
        result.success = iface.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit);
-
 
5909
        return result;
-
 
5910
      }
-
 
5911
    }
-
 
5912
 
5833
  }
5913
  }
5834
 
5914
 
5835
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
5915
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
5836
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
5916
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
5837
 
5917
 
Line 52306... Line 52386...
52306
      first = false;
52386
      first = false;
52307
      sb.append(")");
52387
      sb.append(")");
52308
      return sb.toString();
52388
      return sb.toString();
52309
    }
52389
    }
52310
 
52390
 
-
 
52391
    public void validate() throws org.apache.thrift.TException {
-
 
52392
      // check for required fields
-
 
52393
    }
-
 
52394
 
-
 
52395
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
52396
      try {
-
 
52397
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
52398
      } catch (org.apache.thrift.TException te) {
-
 
52399
        throw new java.io.IOException(te);
-
 
52400
      }
-
 
52401
    }
-
 
52402
 
-
 
52403
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
52404
      try {
-
 
52405
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
52406
      } catch (org.apache.thrift.TException te) {
-
 
52407
        throw new java.io.IOException(te);
-
 
52408
      }
-
 
52409
    }
-
 
52410
 
-
 
52411
  }
-
 
52412
 
-
 
52413
  public static class getAllIgnoredInventoryUpdateItemsList_args implements org.apache.thrift.TBase<getAllIgnoredInventoryUpdateItemsList_args, getAllIgnoredInventoryUpdateItemsList_args._Fields>, java.io.Serializable, Cloneable   {
-
 
52414
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllIgnoredInventoryUpdateItemsList_args");
-
 
52415
 
-
 
52416
    private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)1);
-
 
52417
    private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)2);
-
 
52418
 
-
 
52419
    private int offset; // required
-
 
52420
    private int limit; // required
-
 
52421
 
-
 
52422
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
52423
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
52424
      OFFSET((short)1, "offset"),
-
 
52425
      LIMIT((short)2, "limit");
-
 
52426
 
-
 
52427
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
52428
 
-
 
52429
      static {
-
 
52430
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
52431
          byName.put(field.getFieldName(), field);
-
 
52432
        }
-
 
52433
      }
-
 
52434
 
-
 
52435
      /**
-
 
52436
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
52437
       */
-
 
52438
      public static _Fields findByThriftId(int fieldId) {
-
 
52439
        switch(fieldId) {
-
 
52440
          case 1: // OFFSET
-
 
52441
            return OFFSET;
-
 
52442
          case 2: // LIMIT
-
 
52443
            return LIMIT;
-
 
52444
          default:
-
 
52445
            return null;
-
 
52446
        }
-
 
52447
      }
-
 
52448
 
-
 
52449
      /**
-
 
52450
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
52451
       * if it is not found.
-
 
52452
       */
-
 
52453
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
52454
        _Fields fields = findByThriftId(fieldId);
-
 
52455
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
52456
        return fields;
-
 
52457
      }
-
 
52458
 
-
 
52459
      /**
-
 
52460
       * Find the _Fields constant that matches name, or null if its not found.
-
 
52461
       */
-
 
52462
      public static _Fields findByName(String name) {
-
 
52463
        return byName.get(name);
-
 
52464
      }
-
 
52465
 
-
 
52466
      private final short _thriftId;
-
 
52467
      private final String _fieldName;
-
 
52468
 
-
 
52469
      _Fields(short thriftId, String fieldName) {
-
 
52470
        _thriftId = thriftId;
-
 
52471
        _fieldName = fieldName;
-
 
52472
      }
-
 
52473
 
-
 
52474
      public short getThriftFieldId() {
-
 
52475
        return _thriftId;
-
 
52476
      }
-
 
52477
 
-
 
52478
      public String getFieldName() {
-
 
52479
        return _fieldName;
-
 
52480
      }
-
 
52481
    }
-
 
52482
 
-
 
52483
    // isset id assignments
-
 
52484
    private static final int __OFFSET_ISSET_ID = 0;
-
 
52485
    private static final int __LIMIT_ISSET_ID = 1;
-
 
52486
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
52487
 
-
 
52488
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
52489
    static {
-
 
52490
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
52491
      tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
52492
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
-
 
52493
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
52494
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
-
 
52495
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
52496
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllIgnoredInventoryUpdateItemsList_args.class, metaDataMap);
-
 
52497
    }
-
 
52498
 
-
 
52499
    public getAllIgnoredInventoryUpdateItemsList_args() {
-
 
52500
    }
-
 
52501
 
-
 
52502
    public getAllIgnoredInventoryUpdateItemsList_args(
-
 
52503
      int offset,
-
 
52504
      int limit)
-
 
52505
    {
-
 
52506
      this();
-
 
52507
      this.offset = offset;
-
 
52508
      setOffsetIsSet(true);
-
 
52509
      this.limit = limit;
-
 
52510
      setLimitIsSet(true);
-
 
52511
    }
-
 
52512
 
-
 
52513
    /**
-
 
52514
     * Performs a deep copy on <i>other</i>.
-
 
52515
     */
-
 
52516
    public getAllIgnoredInventoryUpdateItemsList_args(getAllIgnoredInventoryUpdateItemsList_args other) {
-
 
52517
      __isset_bit_vector.clear();
-
 
52518
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
52519
      this.offset = other.offset;
-
 
52520
      this.limit = other.limit;
-
 
52521
    }
-
 
52522
 
-
 
52523
    public getAllIgnoredInventoryUpdateItemsList_args deepCopy() {
-
 
52524
      return new getAllIgnoredInventoryUpdateItemsList_args(this);
-
 
52525
    }
-
 
52526
 
-
 
52527
    @Override
-
 
52528
    public void clear() {
-
 
52529
      setOffsetIsSet(false);
-
 
52530
      this.offset = 0;
-
 
52531
      setLimitIsSet(false);
-
 
52532
      this.limit = 0;
-
 
52533
    }
-
 
52534
 
-
 
52535
    public int getOffset() {
-
 
52536
      return this.offset;
-
 
52537
    }
-
 
52538
 
-
 
52539
    public void setOffset(int offset) {
-
 
52540
      this.offset = offset;
-
 
52541
      setOffsetIsSet(true);
-
 
52542
    }
-
 
52543
 
-
 
52544
    public void unsetOffset() {
-
 
52545
      __isset_bit_vector.clear(__OFFSET_ISSET_ID);
-
 
52546
    }
-
 
52547
 
-
 
52548
    /** Returns true if field offset is set (has been assigned a value) and false otherwise */
-
 
52549
    public boolean isSetOffset() {
-
 
52550
      return __isset_bit_vector.get(__OFFSET_ISSET_ID);
-
 
52551
    }
-
 
52552
 
-
 
52553
    public void setOffsetIsSet(boolean value) {
-
 
52554
      __isset_bit_vector.set(__OFFSET_ISSET_ID, value);
-
 
52555
    }
-
 
52556
 
-
 
52557
    public int getLimit() {
-
 
52558
      return this.limit;
-
 
52559
    }
-
 
52560
 
-
 
52561
    public void setLimit(int limit) {
-
 
52562
      this.limit = limit;
-
 
52563
      setLimitIsSet(true);
-
 
52564
    }
-
 
52565
 
-
 
52566
    public void unsetLimit() {
-
 
52567
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
-
 
52568
    }
-
 
52569
 
-
 
52570
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
-
 
52571
    public boolean isSetLimit() {
-
 
52572
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
-
 
52573
    }
-
 
52574
 
-
 
52575
    public void setLimitIsSet(boolean value) {
-
 
52576
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
-
 
52577
    }
-
 
52578
 
-
 
52579
    public void setFieldValue(_Fields field, Object value) {
-
 
52580
      switch (field) {
-
 
52581
      case OFFSET:
-
 
52582
        if (value == null) {
-
 
52583
          unsetOffset();
-
 
52584
        } else {
-
 
52585
          setOffset((Integer)value);
-
 
52586
        }
-
 
52587
        break;
-
 
52588
 
-
 
52589
      case LIMIT:
-
 
52590
        if (value == null) {
-
 
52591
          unsetLimit();
-
 
52592
        } else {
-
 
52593
          setLimit((Integer)value);
-
 
52594
        }
-
 
52595
        break;
-
 
52596
 
-
 
52597
      }
-
 
52598
    }
-
 
52599
 
-
 
52600
    public Object getFieldValue(_Fields field) {
-
 
52601
      switch (field) {
-
 
52602
      case OFFSET:
-
 
52603
        return Integer.valueOf(getOffset());
-
 
52604
 
-
 
52605
      case LIMIT:
-
 
52606
        return Integer.valueOf(getLimit());
-
 
52607
 
-
 
52608
      }
-
 
52609
      throw new IllegalStateException();
-
 
52610
    }
-
 
52611
 
-
 
52612
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
52613
    public boolean isSet(_Fields field) {
-
 
52614
      if (field == null) {
-
 
52615
        throw new IllegalArgumentException();
-
 
52616
      }
-
 
52617
 
-
 
52618
      switch (field) {
-
 
52619
      case OFFSET:
-
 
52620
        return isSetOffset();
-
 
52621
      case LIMIT:
-
 
52622
        return isSetLimit();
-
 
52623
      }
-
 
52624
      throw new IllegalStateException();
-
 
52625
    }
-
 
52626
 
-
 
52627
    @Override
-
 
52628
    public boolean equals(Object that) {
-
 
52629
      if (that == null)
-
 
52630
        return false;
-
 
52631
      if (that instanceof getAllIgnoredInventoryUpdateItemsList_args)
-
 
52632
        return this.equals((getAllIgnoredInventoryUpdateItemsList_args)that);
-
 
52633
      return false;
-
 
52634
    }
-
 
52635
 
-
 
52636
    public boolean equals(getAllIgnoredInventoryUpdateItemsList_args that) {
-
 
52637
      if (that == null)
-
 
52638
        return false;
-
 
52639
 
-
 
52640
      boolean this_present_offset = true;
-
 
52641
      boolean that_present_offset = true;
-
 
52642
      if (this_present_offset || that_present_offset) {
-
 
52643
        if (!(this_present_offset && that_present_offset))
-
 
52644
          return false;
-
 
52645
        if (this.offset != that.offset)
-
 
52646
          return false;
-
 
52647
      }
-
 
52648
 
-
 
52649
      boolean this_present_limit = true;
-
 
52650
      boolean that_present_limit = true;
-
 
52651
      if (this_present_limit || that_present_limit) {
-
 
52652
        if (!(this_present_limit && that_present_limit))
-
 
52653
          return false;
-
 
52654
        if (this.limit != that.limit)
-
 
52655
          return false;
-
 
52656
      }
-
 
52657
 
-
 
52658
      return true;
-
 
52659
    }
-
 
52660
 
-
 
52661
    @Override
-
 
52662
    public int hashCode() {
-
 
52663
      return 0;
-
 
52664
    }
-
 
52665
 
-
 
52666
    public int compareTo(getAllIgnoredInventoryUpdateItemsList_args other) {
-
 
52667
      if (!getClass().equals(other.getClass())) {
-
 
52668
        return getClass().getName().compareTo(other.getClass().getName());
-
 
52669
      }
-
 
52670
 
-
 
52671
      int lastComparison = 0;
-
 
52672
      getAllIgnoredInventoryUpdateItemsList_args typedOther = (getAllIgnoredInventoryUpdateItemsList_args)other;
-
 
52673
 
-
 
52674
      lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());
-
 
52675
      if (lastComparison != 0) {
-
 
52676
        return lastComparison;
-
 
52677
      }
-
 
52678
      if (isSetOffset()) {
-
 
52679
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);
-
 
52680
        if (lastComparison != 0) {
-
 
52681
          return lastComparison;
-
 
52682
        }
-
 
52683
      }
-
 
52684
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
-
 
52685
      if (lastComparison != 0) {
-
 
52686
        return lastComparison;
-
 
52687
      }
-
 
52688
      if (isSetLimit()) {
-
 
52689
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
-
 
52690
        if (lastComparison != 0) {
-
 
52691
          return lastComparison;
-
 
52692
        }
-
 
52693
      }
-
 
52694
      return 0;
-
 
52695
    }
-
 
52696
 
-
 
52697
    public _Fields fieldForId(int fieldId) {
-
 
52698
      return _Fields.findByThriftId(fieldId);
-
 
52699
    }
-
 
52700
 
-
 
52701
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
52702
      org.apache.thrift.protocol.TField field;
-
 
52703
      iprot.readStructBegin();
-
 
52704
      while (true)
-
 
52705
      {
-
 
52706
        field = iprot.readFieldBegin();
-
 
52707
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
52708
          break;
-
 
52709
        }
-
 
52710
        switch (field.id) {
-
 
52711
          case 1: // OFFSET
-
 
52712
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
52713
              this.offset = iprot.readI32();
-
 
52714
              setOffsetIsSet(true);
-
 
52715
            } else { 
-
 
52716
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
52717
            }
-
 
52718
            break;
-
 
52719
          case 2: // LIMIT
-
 
52720
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
52721
              this.limit = iprot.readI32();
-
 
52722
              setLimitIsSet(true);
-
 
52723
            } else { 
-
 
52724
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
52725
            }
-
 
52726
            break;
-
 
52727
          default:
-
 
52728
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
52729
        }
-
 
52730
        iprot.readFieldEnd();
-
 
52731
      }
-
 
52732
      iprot.readStructEnd();
-
 
52733
      validate();
-
 
52734
    }
-
 
52735
 
-
 
52736
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
52737
      validate();
-
 
52738
 
-
 
52739
      oprot.writeStructBegin(STRUCT_DESC);
-
 
52740
      oprot.writeFieldBegin(OFFSET_FIELD_DESC);
-
 
52741
      oprot.writeI32(this.offset);
-
 
52742
      oprot.writeFieldEnd();
-
 
52743
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
-
 
52744
      oprot.writeI32(this.limit);
-
 
52745
      oprot.writeFieldEnd();
-
 
52746
      oprot.writeFieldStop();
-
 
52747
      oprot.writeStructEnd();
-
 
52748
    }
-
 
52749
 
-
 
52750
    @Override
-
 
52751
    public String toString() {
-
 
52752
      StringBuilder sb = new StringBuilder("getAllIgnoredInventoryUpdateItemsList_args(");
-
 
52753
      boolean first = true;
-
 
52754
 
-
 
52755
      sb.append("offset:");
-
 
52756
      sb.append(this.offset);
-
 
52757
      first = false;
-
 
52758
      if (!first) sb.append(", ");
-
 
52759
      sb.append("limit:");
-
 
52760
      sb.append(this.limit);
-
 
52761
      first = false;
-
 
52762
      sb.append(")");
-
 
52763
      return sb.toString();
-
 
52764
    }
-
 
52765
 
-
 
52766
    public void validate() throws org.apache.thrift.TException {
-
 
52767
      // check for required fields
-
 
52768
    }
-
 
52769
 
-
 
52770
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
52771
      try {
-
 
52772
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
52773
      } catch (org.apache.thrift.TException te) {
-
 
52774
        throw new java.io.IOException(te);
-
 
52775
      }
-
 
52776
    }
-
 
52777
 
-
 
52778
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
52779
      try {
-
 
52780
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
52781
        __isset_bit_vector = new BitSet(1);
-
 
52782
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
52783
      } catch (org.apache.thrift.TException te) {
-
 
52784
        throw new java.io.IOException(te);
-
 
52785
      }
-
 
52786
    }
-
 
52787
 
-
 
52788
  }
-
 
52789
 
-
 
52790
  public static class getAllIgnoredInventoryUpdateItemsList_result implements org.apache.thrift.TBase<getAllIgnoredInventoryUpdateItemsList_result, getAllIgnoredInventoryUpdateItemsList_result._Fields>, java.io.Serializable, Cloneable   {
-
 
52791
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllIgnoredInventoryUpdateItemsList_result");
-
 
52792
 
-
 
52793
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
52794
 
-
 
52795
    private List<Item> success; // required
-
 
52796
 
-
 
52797
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
52798
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
52799
      SUCCESS((short)0, "success");
-
 
52800
 
-
 
52801
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
52802
 
-
 
52803
      static {
-
 
52804
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
52805
          byName.put(field.getFieldName(), field);
-
 
52806
        }
-
 
52807
      }
-
 
52808
 
-
 
52809
      /**
-
 
52810
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
52811
       */
-
 
52812
      public static _Fields findByThriftId(int fieldId) {
-
 
52813
        switch(fieldId) {
-
 
52814
          case 0: // SUCCESS
-
 
52815
            return SUCCESS;
-
 
52816
          default:
-
 
52817
            return null;
-
 
52818
        }
-
 
52819
      }
-
 
52820
 
-
 
52821
      /**
-
 
52822
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
52823
       * if it is not found.
-
 
52824
       */
-
 
52825
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
52826
        _Fields fields = findByThriftId(fieldId);
-
 
52827
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
52828
        return fields;
-
 
52829
      }
-
 
52830
 
-
 
52831
      /**
-
 
52832
       * Find the _Fields constant that matches name, or null if its not found.
-
 
52833
       */
-
 
52834
      public static _Fields findByName(String name) {
-
 
52835
        return byName.get(name);
-
 
52836
      }
-
 
52837
 
-
 
52838
      private final short _thriftId;
-
 
52839
      private final String _fieldName;
-
 
52840
 
-
 
52841
      _Fields(short thriftId, String fieldName) {
-
 
52842
        _thriftId = thriftId;
-
 
52843
        _fieldName = fieldName;
-
 
52844
      }
-
 
52845
 
-
 
52846
      public short getThriftFieldId() {
-
 
52847
        return _thriftId;
-
 
52848
      }
-
 
52849
 
-
 
52850
      public String getFieldName() {
-
 
52851
        return _fieldName;
-
 
52852
      }
-
 
52853
    }
-
 
52854
 
-
 
52855
    // isset id assignments
-
 
52856
 
-
 
52857
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
52858
    static {
-
 
52859
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
52860
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
52861
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
52862
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));
-
 
52863
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
52864
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllIgnoredInventoryUpdateItemsList_result.class, metaDataMap);
-
 
52865
    }
-
 
52866
 
-
 
52867
    public getAllIgnoredInventoryUpdateItemsList_result() {
-
 
52868
    }
-
 
52869
 
-
 
52870
    public getAllIgnoredInventoryUpdateItemsList_result(
-
 
52871
      List<Item> success)
-
 
52872
    {
-
 
52873
      this();
-
 
52874
      this.success = success;
-
 
52875
    }
-
 
52876
 
-
 
52877
    /**
-
 
52878
     * Performs a deep copy on <i>other</i>.
-
 
52879
     */
-
 
52880
    public getAllIgnoredInventoryUpdateItemsList_result(getAllIgnoredInventoryUpdateItemsList_result other) {
-
 
52881
      if (other.isSetSuccess()) {
-
 
52882
        List<Item> __this__success = new ArrayList<Item>();
-
 
52883
        for (Item other_element : other.success) {
-
 
52884
          __this__success.add(new Item(other_element));
-
 
52885
        }
-
 
52886
        this.success = __this__success;
-
 
52887
      }
-
 
52888
    }
-
 
52889
 
-
 
52890
    public getAllIgnoredInventoryUpdateItemsList_result deepCopy() {
-
 
52891
      return new getAllIgnoredInventoryUpdateItemsList_result(this);
-
 
52892
    }
-
 
52893
 
-
 
52894
    @Override
-
 
52895
    public void clear() {
-
 
52896
      this.success = null;
-
 
52897
    }
-
 
52898
 
-
 
52899
    public int getSuccessSize() {
-
 
52900
      return (this.success == null) ? 0 : this.success.size();
-
 
52901
    }
-
 
52902
 
-
 
52903
    public java.util.Iterator<Item> getSuccessIterator() {
-
 
52904
      return (this.success == null) ? null : this.success.iterator();
-
 
52905
    }
-
 
52906
 
-
 
52907
    public void addToSuccess(Item elem) {
-
 
52908
      if (this.success == null) {
-
 
52909
        this.success = new ArrayList<Item>();
-
 
52910
      }
-
 
52911
      this.success.add(elem);
-
 
52912
    }
-
 
52913
 
-
 
52914
    public List<Item> getSuccess() {
-
 
52915
      return this.success;
-
 
52916
    }
-
 
52917
 
-
 
52918
    public void setSuccess(List<Item> success) {
-
 
52919
      this.success = success;
-
 
52920
    }
-
 
52921
 
-
 
52922
    public void unsetSuccess() {
-
 
52923
      this.success = null;
-
 
52924
    }
-
 
52925
 
-
 
52926
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
52927
    public boolean isSetSuccess() {
-
 
52928
      return this.success != null;
-
 
52929
    }
-
 
52930
 
-
 
52931
    public void setSuccessIsSet(boolean value) {
-
 
52932
      if (!value) {
-
 
52933
        this.success = null;
-
 
52934
      }
-
 
52935
    }
-
 
52936
 
-
 
52937
    public void setFieldValue(_Fields field, Object value) {
-
 
52938
      switch (field) {
-
 
52939
      case SUCCESS:
-
 
52940
        if (value == null) {
-
 
52941
          unsetSuccess();
-
 
52942
        } else {
-
 
52943
          setSuccess((List<Item>)value);
-
 
52944
        }
-
 
52945
        break;
-
 
52946
 
-
 
52947
      }
-
 
52948
    }
-
 
52949
 
-
 
52950
    public Object getFieldValue(_Fields field) {
-
 
52951
      switch (field) {
-
 
52952
      case SUCCESS:
-
 
52953
        return getSuccess();
-
 
52954
 
-
 
52955
      }
-
 
52956
      throw new IllegalStateException();
-
 
52957
    }
-
 
52958
 
-
 
52959
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
52960
    public boolean isSet(_Fields field) {
-
 
52961
      if (field == null) {
-
 
52962
        throw new IllegalArgumentException();
-
 
52963
      }
-
 
52964
 
-
 
52965
      switch (field) {
-
 
52966
      case SUCCESS:
-
 
52967
        return isSetSuccess();
-
 
52968
      }
-
 
52969
      throw new IllegalStateException();
-
 
52970
    }
-
 
52971
 
-
 
52972
    @Override
-
 
52973
    public boolean equals(Object that) {
-
 
52974
      if (that == null)
-
 
52975
        return false;
-
 
52976
      if (that instanceof getAllIgnoredInventoryUpdateItemsList_result)
-
 
52977
        return this.equals((getAllIgnoredInventoryUpdateItemsList_result)that);
-
 
52978
      return false;
-
 
52979
    }
-
 
52980
 
-
 
52981
    public boolean equals(getAllIgnoredInventoryUpdateItemsList_result that) {
-
 
52982
      if (that == null)
-
 
52983
        return false;
-
 
52984
 
-
 
52985
      boolean this_present_success = true && this.isSetSuccess();
-
 
52986
      boolean that_present_success = true && that.isSetSuccess();
-
 
52987
      if (this_present_success || that_present_success) {
-
 
52988
        if (!(this_present_success && that_present_success))
-
 
52989
          return false;
-
 
52990
        if (!this.success.equals(that.success))
-
 
52991
          return false;
-
 
52992
      }
-
 
52993
 
-
 
52994
      return true;
-
 
52995
    }
-
 
52996
 
-
 
52997
    @Override
-
 
52998
    public int hashCode() {
-
 
52999
      return 0;
-
 
53000
    }
-
 
53001
 
-
 
53002
    public int compareTo(getAllIgnoredInventoryUpdateItemsList_result other) {
-
 
53003
      if (!getClass().equals(other.getClass())) {
-
 
53004
        return getClass().getName().compareTo(other.getClass().getName());
-
 
53005
      }
-
 
53006
 
-
 
53007
      int lastComparison = 0;
-
 
53008
      getAllIgnoredInventoryUpdateItemsList_result typedOther = (getAllIgnoredInventoryUpdateItemsList_result)other;
-
 
53009
 
-
 
53010
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
53011
      if (lastComparison != 0) {
-
 
53012
        return lastComparison;
-
 
53013
      }
-
 
53014
      if (isSetSuccess()) {
-
 
53015
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
53016
        if (lastComparison != 0) {
-
 
53017
          return lastComparison;
-
 
53018
        }
-
 
53019
      }
-
 
53020
      return 0;
-
 
53021
    }
-
 
53022
 
-
 
53023
    public _Fields fieldForId(int fieldId) {
-
 
53024
      return _Fields.findByThriftId(fieldId);
-
 
53025
    }
-
 
53026
 
-
 
53027
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
53028
      org.apache.thrift.protocol.TField field;
-
 
53029
      iprot.readStructBegin();
-
 
53030
      while (true)
-
 
53031
      {
-
 
53032
        field = iprot.readFieldBegin();
-
 
53033
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
53034
          break;
-
 
53035
        }
-
 
53036
        switch (field.id) {
-
 
53037
          case 0: // SUCCESS
-
 
53038
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
53039
              {
-
 
53040
                org.apache.thrift.protocol.TList _list141 = iprot.readListBegin();
-
 
53041
                this.success = new ArrayList<Item>(_list141.size);
-
 
53042
                for (int _i142 = 0; _i142 < _list141.size; ++_i142)
-
 
53043
                {
-
 
53044
                  Item _elem143; // required
-
 
53045
                  _elem143 = new Item();
-
 
53046
                  _elem143.read(iprot);
-
 
53047
                  this.success.add(_elem143);
-
 
53048
                }
-
 
53049
                iprot.readListEnd();
-
 
53050
              }
-
 
53051
            } else { 
-
 
53052
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
53053
            }
-
 
53054
            break;
-
 
53055
          default:
-
 
53056
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
53057
        }
-
 
53058
        iprot.readFieldEnd();
-
 
53059
      }
-
 
53060
      iprot.readStructEnd();
-
 
53061
      validate();
-
 
53062
    }
-
 
53063
 
-
 
53064
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
53065
      oprot.writeStructBegin(STRUCT_DESC);
-
 
53066
 
-
 
53067
      if (this.isSetSuccess()) {
-
 
53068
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
53069
        {
-
 
53070
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
53071
          for (Item _iter144 : this.success)
-
 
53072
          {
-
 
53073
            _iter144.write(oprot);
-
 
53074
          }
-
 
53075
          oprot.writeListEnd();
-
 
53076
        }
-
 
53077
        oprot.writeFieldEnd();
-
 
53078
      }
-
 
53079
      oprot.writeFieldStop();
-
 
53080
      oprot.writeStructEnd();
-
 
53081
    }
-
 
53082
 
-
 
53083
    @Override
-
 
53084
    public String toString() {
-
 
53085
      StringBuilder sb = new StringBuilder("getAllIgnoredInventoryUpdateItemsList_result(");
-
 
53086
      boolean first = true;
-
 
53087
 
-
 
53088
      sb.append("success:");
-
 
53089
      if (this.success == null) {
-
 
53090
        sb.append("null");
-
 
53091
      } else {
-
 
53092
        sb.append(this.success);
-
 
53093
      }
-
 
53094
      first = false;
-
 
53095
      sb.append(")");
-
 
53096
      return sb.toString();
-
 
53097
    }
-
 
53098
 
52311
    public void validate() throws org.apache.thrift.TException {
53099
    public void validate() throws org.apache.thrift.TException {
52312
      // check for required fields
53100
      // check for required fields
52313
    }
53101
    }
52314
 
53102
 
52315
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
53103
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {