Subversion Repositories SmartDukaan

Rev

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

Rev 19691 Rev 19714
Line 616... Line 616...
616
 
616
 
617
    public boolean updateItemPricing(List<ItemPricing> itemPricingList) throws org.apache.thrift.TException;
617
    public boolean updateItemPricing(List<ItemPricing> itemPricingList) throws org.apache.thrift.TException;
618
 
618
 
619
    public void bulkUpdateCatalog(List<BulkUploadCatalog> bulkUploadCatalog) throws CatalogServiceException, org.apache.thrift.TException;
619
    public void bulkUpdateCatalog(List<BulkUploadCatalog> bulkUploadCatalog) throws CatalogServiceException, org.apache.thrift.TException;
620
 
620
 
621
    public Map<String,Long> getWarrantyInfoForItem(long itemId, ItemCondition itemCondition) throws CatalogServiceException, org.apache.thrift.TException;
621
    public Map<String,Long> getWarrantyInfoForItem(long catalogItemId, ItemCondition itemCondition) throws CatalogServiceException, org.apache.thrift.TException;
-
 
622
 
-
 
623
    public Map<Long,Map<String,Long>> getWarrantyInfoForItemList(List<Long> catalogItemIds, ItemCondition itemCondition) throws CatalogServiceException, org.apache.thrift.TException;
622
 
624
 
623
  }
625
  }
624
 
626
 
625
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
627
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
626
 
628
 
Line 1018... Line 1020...
1018
 
1020
 
1019
    public void updateItemPricing(List<ItemPricing> itemPricingList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemPricing_call> resultHandler) throws org.apache.thrift.TException;
1021
    public void updateItemPricing(List<ItemPricing> itemPricingList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemPricing_call> resultHandler) throws org.apache.thrift.TException;
1020
 
1022
 
1021
    public void bulkUpdateCatalog(List<BulkUploadCatalog> bulkUploadCatalog, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.bulkUpdateCatalog_call> resultHandler) throws org.apache.thrift.TException;
1023
    public void bulkUpdateCatalog(List<BulkUploadCatalog> bulkUploadCatalog, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.bulkUpdateCatalog_call> resultHandler) throws org.apache.thrift.TException;
1022
 
1024
 
1023
    public void getWarrantyInfoForItem(long itemId, ItemCondition itemCondition, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarrantyInfoForItem_call> resultHandler) throws org.apache.thrift.TException;
1025
    public void getWarrantyInfoForItem(long catalogItemId, ItemCondition itemCondition, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarrantyInfoForItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
1026
 
-
 
1027
    public void getWarrantyInfoForItemList(List<Long> catalogItemIds, ItemCondition itemCondition, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarrantyInfoForItemList_call> resultHandler) throws org.apache.thrift.TException;
1024
 
1028
 
1025
  }
1029
  }
1026
 
1030
 
1027
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1031
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1028
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1032
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
Line 5711... Line 5715...
5711
        throw result.cex;
5715
        throw result.cex;
5712
      }
5716
      }
5713
      return;
5717
      return;
5714
    }
5718
    }
5715
 
5719
 
5716
    public Map<String,Long> getWarrantyInfoForItem(long itemId, ItemCondition itemCondition) throws CatalogServiceException, org.apache.thrift.TException
5720
    public Map<String,Long> getWarrantyInfoForItem(long catalogItemId, ItemCondition itemCondition) throws CatalogServiceException, org.apache.thrift.TException
5717
    {
5721
    {
5718
      send_getWarrantyInfoForItem(itemId, itemCondition);
5722
      send_getWarrantyInfoForItem(catalogItemId, itemCondition);
5719
      return recv_getWarrantyInfoForItem();
5723
      return recv_getWarrantyInfoForItem();
5720
    }
5724
    }
5721
 
5725
 
5722
    public void send_getWarrantyInfoForItem(long itemId, ItemCondition itemCondition) throws org.apache.thrift.TException
5726
    public void send_getWarrantyInfoForItem(long catalogItemId, ItemCondition itemCondition) throws org.apache.thrift.TException
5723
    {
5727
    {
5724
      getWarrantyInfoForItem_args args = new getWarrantyInfoForItem_args();
5728
      getWarrantyInfoForItem_args args = new getWarrantyInfoForItem_args();
5725
      args.setItemId(itemId);
5729
      args.setCatalogItemId(catalogItemId);
5726
      args.setItemCondition(itemCondition);
5730
      args.setItemCondition(itemCondition);
5727
      sendBase("getWarrantyInfoForItem", args);
5731
      sendBase("getWarrantyInfoForItem", args);
5728
    }
5732
    }
5729
 
5733
 
5730
    public Map<String,Long> recv_getWarrantyInfoForItem() throws CatalogServiceException, org.apache.thrift.TException
5734
    public Map<String,Long> recv_getWarrantyInfoForItem() throws CatalogServiceException, org.apache.thrift.TException
Line 5738... Line 5742...
5738
        throw result.cex;
5742
        throw result.cex;
5739
      }
5743
      }
5740
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarrantyInfoForItem failed: unknown result");
5744
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarrantyInfoForItem failed: unknown result");
5741
    }
5745
    }
5742
 
5746
 
-
 
5747
    public Map<Long,Map<String,Long>> getWarrantyInfoForItemList(List<Long> catalogItemIds, ItemCondition itemCondition) throws CatalogServiceException, org.apache.thrift.TException
-
 
5748
    {
-
 
5749
      send_getWarrantyInfoForItemList(catalogItemIds, itemCondition);
-
 
5750
      return recv_getWarrantyInfoForItemList();
-
 
5751
    }
-
 
5752
 
-
 
5753
    public void send_getWarrantyInfoForItemList(List<Long> catalogItemIds, ItemCondition itemCondition) throws org.apache.thrift.TException
-
 
5754
    {
-
 
5755
      getWarrantyInfoForItemList_args args = new getWarrantyInfoForItemList_args();
-
 
5756
      args.setCatalogItemIds(catalogItemIds);
-
 
5757
      args.setItemCondition(itemCondition);
-
 
5758
      sendBase("getWarrantyInfoForItemList", args);
-
 
5759
    }
-
 
5760
 
-
 
5761
    public Map<Long,Map<String,Long>> recv_getWarrantyInfoForItemList() throws CatalogServiceException, org.apache.thrift.TException
-
 
5762
    {
-
 
5763
      getWarrantyInfoForItemList_result result = new getWarrantyInfoForItemList_result();
-
 
5764
      receiveBase(result, "getWarrantyInfoForItemList");
-
 
5765
      if (result.isSetSuccess()) {
-
 
5766
        return result.success;
-
 
5767
      }
-
 
5768
      if (result.cex != null) {
-
 
5769
        throw result.cex;
-
 
5770
      }
-
 
5771
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarrantyInfoForItemList failed: unknown result");
-
 
5772
    }
-
 
5773
 
5743
  }
5774
  }
5744
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5775
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5745
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5776
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5746
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5777
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5747
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
5778
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 12239... Line 12270...
12239
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12270
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12240
        (new Client(prot)).recv_bulkUpdateCatalog();
12271
        (new Client(prot)).recv_bulkUpdateCatalog();
12241
      }
12272
      }
12242
    }
12273
    }
12243
 
12274
 
12244
    public void getWarrantyInfoForItem(long itemId, ItemCondition itemCondition, org.apache.thrift.async.AsyncMethodCallback<getWarrantyInfoForItem_call> resultHandler) throws org.apache.thrift.TException {
12275
    public void getWarrantyInfoForItem(long catalogItemId, ItemCondition itemCondition, org.apache.thrift.async.AsyncMethodCallback<getWarrantyInfoForItem_call> resultHandler) throws org.apache.thrift.TException {
12245
      checkReady();
12276
      checkReady();
12246
      getWarrantyInfoForItem_call method_call = new getWarrantyInfoForItem_call(itemId, itemCondition, resultHandler, this, ___protocolFactory, ___transport);
12277
      getWarrantyInfoForItem_call method_call = new getWarrantyInfoForItem_call(catalogItemId, itemCondition, resultHandler, this, ___protocolFactory, ___transport);
12247
      this.___currentMethod = method_call;
12278
      this.___currentMethod = method_call;
12248
      ___manager.call(method_call);
12279
      ___manager.call(method_call);
12249
    }
12280
    }
12250
 
12281
 
12251
    public static class getWarrantyInfoForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
12282
    public static class getWarrantyInfoForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
12252
      private long itemId;
12283
      private long catalogItemId;
12253
      private ItemCondition itemCondition;
12284
      private ItemCondition itemCondition;
12254
      public getWarrantyInfoForItem_call(long itemId, ItemCondition itemCondition, org.apache.thrift.async.AsyncMethodCallback<getWarrantyInfoForItem_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 {
12285
      public getWarrantyInfoForItem_call(long catalogItemId, ItemCondition itemCondition, org.apache.thrift.async.AsyncMethodCallback<getWarrantyInfoForItem_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 {
12255
        super(client, protocolFactory, transport, resultHandler, false);
12286
        super(client, protocolFactory, transport, resultHandler, false);
12256
        this.itemId = itemId;
12287
        this.catalogItemId = catalogItemId;
12257
        this.itemCondition = itemCondition;
12288
        this.itemCondition = itemCondition;
12258
      }
12289
      }
12259
 
12290
 
12260
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
12291
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
12261
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarrantyInfoForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
12292
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarrantyInfoForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
12262
        getWarrantyInfoForItem_args args = new getWarrantyInfoForItem_args();
12293
        getWarrantyInfoForItem_args args = new getWarrantyInfoForItem_args();
12263
        args.setItemId(itemId);
12294
        args.setCatalogItemId(catalogItemId);
12264
        args.setItemCondition(itemCondition);
12295
        args.setItemCondition(itemCondition);
12265
        args.write(prot);
12296
        args.write(prot);
12266
        prot.writeMessageEnd();
12297
        prot.writeMessageEnd();
12267
      }
12298
      }
12268
 
12299
 
Line 12274... Line 12305...
12274
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12305
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12275
        return (new Client(prot)).recv_getWarrantyInfoForItem();
12306
        return (new Client(prot)).recv_getWarrantyInfoForItem();
12276
      }
12307
      }
12277
    }
12308
    }
12278
 
12309
 
-
 
12310
    public void getWarrantyInfoForItemList(List<Long> catalogItemIds, ItemCondition itemCondition, org.apache.thrift.async.AsyncMethodCallback<getWarrantyInfoForItemList_call> resultHandler) throws org.apache.thrift.TException {
-
 
12311
      checkReady();
-
 
12312
      getWarrantyInfoForItemList_call method_call = new getWarrantyInfoForItemList_call(catalogItemIds, itemCondition, resultHandler, this, ___protocolFactory, ___transport);
-
 
12313
      this.___currentMethod = method_call;
-
 
12314
      ___manager.call(method_call);
-
 
12315
    }
-
 
12316
 
-
 
12317
    public static class getWarrantyInfoForItemList_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
12318
      private List<Long> catalogItemIds;
-
 
12319
      private ItemCondition itemCondition;
-
 
12320
      public getWarrantyInfoForItemList_call(List<Long> catalogItemIds, ItemCondition itemCondition, org.apache.thrift.async.AsyncMethodCallback<getWarrantyInfoForItemList_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 {
-
 
12321
        super(client, protocolFactory, transport, resultHandler, false);
-
 
12322
        this.catalogItemIds = catalogItemIds;
-
 
12323
        this.itemCondition = itemCondition;
-
 
12324
      }
-
 
12325
 
-
 
12326
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
12327
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarrantyInfoForItemList", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
12328
        getWarrantyInfoForItemList_args args = new getWarrantyInfoForItemList_args();
-
 
12329
        args.setCatalogItemIds(catalogItemIds);
-
 
12330
        args.setItemCondition(itemCondition);
-
 
12331
        args.write(prot);
-
 
12332
        prot.writeMessageEnd();
-
 
12333
      }
-
 
12334
 
-
 
12335
      public Map<Long,Map<String,Long>> getResult() throws CatalogServiceException, org.apache.thrift.TException {
-
 
12336
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
12337
          throw new IllegalStateException("Method call not finished!");
-
 
12338
        }
-
 
12339
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
12340
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
12341
        return (new Client(prot)).recv_getWarrantyInfoForItemList();
-
 
12342
      }
-
 
12343
    }
-
 
12344
 
12279
  }
12345
  }
12280
 
12346
 
12281
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
12347
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
12282
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
12348
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
12283
    public Processor(I iface) {
12349
    public Processor(I iface) {
Line 12486... Line 12552...
12486
      processMap.put("updateBulkPricesOnProduction", new updateBulkPricesOnProduction());
12552
      processMap.put("updateBulkPricesOnProduction", new updateBulkPricesOnProduction());
12487
      processMap.put("getCartByValue", new getCartByValue());
12553
      processMap.put("getCartByValue", new getCartByValue());
12488
      processMap.put("updateItemPricing", new updateItemPricing());
12554
      processMap.put("updateItemPricing", new updateItemPricing());
12489
      processMap.put("bulkUpdateCatalog", new bulkUpdateCatalog());
12555
      processMap.put("bulkUpdateCatalog", new bulkUpdateCatalog());
12490
      processMap.put("getWarrantyInfoForItem", new getWarrantyInfoForItem());
12556
      processMap.put("getWarrantyInfoForItem", new getWarrantyInfoForItem());
-
 
12557
      processMap.put("getWarrantyInfoForItemList", new getWarrantyInfoForItemList());
12491
      return processMap;
12558
      return processMap;
12492
    }
12559
    }
12493
 
12560
 
12494
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
12561
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
12495
      public addItem() {
12562
      public addItem() {
Line 15924... Line 15991...
15924
      }
15991
      }
15925
 
15992
 
15926
      protected getWarrantyInfoForItem_result getResult(I iface, getWarrantyInfoForItem_args args) throws org.apache.thrift.TException {
15993
      protected getWarrantyInfoForItem_result getResult(I iface, getWarrantyInfoForItem_args args) throws org.apache.thrift.TException {
15927
        getWarrantyInfoForItem_result result = new getWarrantyInfoForItem_result();
15994
        getWarrantyInfoForItem_result result = new getWarrantyInfoForItem_result();
15928
        try {
15995
        try {
15929
          result.success = iface.getWarrantyInfoForItem(args.itemId, args.itemCondition);
15996
          result.success = iface.getWarrantyInfoForItem(args.catalogItemId, args.itemCondition);
-
 
15997
        } catch (CatalogServiceException cex) {
-
 
15998
          result.cex = cex;
-
 
15999
        }
-
 
16000
        return result;
-
 
16001
      }
-
 
16002
    }
-
 
16003
 
-
 
16004
    private static class getWarrantyInfoForItemList<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarrantyInfoForItemList_args> {
-
 
16005
      public getWarrantyInfoForItemList() {
-
 
16006
        super("getWarrantyInfoForItemList");
-
 
16007
      }
-
 
16008
 
-
 
16009
      protected getWarrantyInfoForItemList_args getEmptyArgsInstance() {
-
 
16010
        return new getWarrantyInfoForItemList_args();
-
 
16011
      }
-
 
16012
 
-
 
16013
      protected getWarrantyInfoForItemList_result getResult(I iface, getWarrantyInfoForItemList_args args) throws org.apache.thrift.TException {
-
 
16014
        getWarrantyInfoForItemList_result result = new getWarrantyInfoForItemList_result();
-
 
16015
        try {
-
 
16016
          result.success = iface.getWarrantyInfoForItemList(args.catalogItemIds, args.itemCondition);
15930
        } catch (CatalogServiceException cex) {
16017
        } catch (CatalogServiceException cex) {
15931
          result.cex = cex;
16018
          result.cex = cex;
15932
        }
16019
        }
15933
        return result;
16020
        return result;
15934
      }
16021
      }
Line 57750... Line 57837...
57750
      }
57837
      }
57751
    }
57838
    }
57752
 
57839
 
57753
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57840
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57754
      try {
57841
      try {
57755
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
57756
        __isset_bit_vector = new BitSet(1);
-
 
57757
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57842
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57758
      } catch (org.apache.thrift.TException te) {
57843
      } catch (org.apache.thrift.TException te) {
57759
        throw new java.io.IOException(te);
57844
        throw new java.io.IOException(te);
57760
      }
57845
      }
57761
    }
57846
    }
Line 142528... Line 142613...
142528
  }
142613
  }
142529
 
142614
 
142530
  public static class getWarrantyInfoForItem_args implements org.apache.thrift.TBase<getWarrantyInfoForItem_args, getWarrantyInfoForItem_args._Fields>, java.io.Serializable, Cloneable   {
142615
  public static class getWarrantyInfoForItem_args implements org.apache.thrift.TBase<getWarrantyInfoForItem_args, getWarrantyInfoForItem_args._Fields>, java.io.Serializable, Cloneable   {
142531
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarrantyInfoForItem_args");
142616
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarrantyInfoForItem_args");
142532
 
142617
 
142533
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
142618
    private static final org.apache.thrift.protocol.TField CATALOG_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("catalogItemId", org.apache.thrift.protocol.TType.I64, (short)1);
142534
    private static final org.apache.thrift.protocol.TField ITEM_CONDITION_FIELD_DESC = new org.apache.thrift.protocol.TField("itemCondition", org.apache.thrift.protocol.TType.I32, (short)2);
142619
    private static final org.apache.thrift.protocol.TField ITEM_CONDITION_FIELD_DESC = new org.apache.thrift.protocol.TField("itemCondition", org.apache.thrift.protocol.TType.I32, (short)2);
142535
 
142620
 
142536
    private long itemId; // required
142621
    private long catalogItemId; // required
142537
    private ItemCondition itemCondition; // required
142622
    private ItemCondition itemCondition; // required
142538
 
142623
 
142539
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
142624
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
142540
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
142625
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
142541
      ITEM_ID((short)1, "itemId"),
142626
      CATALOG_ITEM_ID((short)1, "catalogItemId"),
142542
      /**
142627
      /**
142543
       * 
142628
       * 
142544
       * @see ItemCondition
142629
       * @see ItemCondition
142545
       */
142630
       */
142546
      ITEM_CONDITION((short)2, "itemCondition");
142631
      ITEM_CONDITION((short)2, "itemCondition");
Line 142556... Line 142641...
142556
      /**
142641
      /**
142557
       * Find the _Fields constant that matches fieldId, or null if its not found.
142642
       * Find the _Fields constant that matches fieldId, or null if its not found.
142558
       */
142643
       */
142559
      public static _Fields findByThriftId(int fieldId) {
142644
      public static _Fields findByThriftId(int fieldId) {
142560
        switch(fieldId) {
142645
        switch(fieldId) {
142561
          case 1: // ITEM_ID
142646
          case 1: // CATALOG_ITEM_ID
142562
            return ITEM_ID;
142647
            return CATALOG_ITEM_ID;
142563
          case 2: // ITEM_CONDITION
142648
          case 2: // ITEM_CONDITION
142564
            return ITEM_CONDITION;
142649
            return ITEM_CONDITION;
142565
          default:
142650
          default:
142566
            return null;
142651
            return null;
142567
        }
142652
        }
Line 142600... Line 142685...
142600
        return _fieldName;
142685
        return _fieldName;
142601
      }
142686
      }
142602
    }
142687
    }
142603
 
142688
 
142604
    // isset id assignments
142689
    // isset id assignments
142605
    private static final int __ITEMID_ISSET_ID = 0;
142690
    private static final int __CATALOGITEMID_ISSET_ID = 0;
142606
    private BitSet __isset_bit_vector = new BitSet(1);
142691
    private BitSet __isset_bit_vector = new BitSet(1);
142607
 
142692
 
142608
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
142693
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
142609
    static {
142694
    static {
142610
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
142695
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
142611
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
142696
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
142612
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
142697
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
142613
      tmpMap.put(_Fields.ITEM_CONDITION, new org.apache.thrift.meta_data.FieldMetaData("itemCondition", org.apache.thrift.TFieldRequirementType.DEFAULT, 
142698
      tmpMap.put(_Fields.ITEM_CONDITION, new org.apache.thrift.meta_data.FieldMetaData("itemCondition", org.apache.thrift.TFieldRequirementType.DEFAULT, 
142614
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ItemCondition.class)));
142699
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ItemCondition.class)));
142615
      metaDataMap = Collections.unmodifiableMap(tmpMap);
142700
      metaDataMap = Collections.unmodifiableMap(tmpMap);
142616
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarrantyInfoForItem_args.class, metaDataMap);
142701
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarrantyInfoForItem_args.class, metaDataMap);
Line 142618... Line 142703...
142618
 
142703
 
142619
    public getWarrantyInfoForItem_args() {
142704
    public getWarrantyInfoForItem_args() {
142620
    }
142705
    }
142621
 
142706
 
142622
    public getWarrantyInfoForItem_args(
142707
    public getWarrantyInfoForItem_args(
142623
      long itemId,
142708
      long catalogItemId,
142624
      ItemCondition itemCondition)
142709
      ItemCondition itemCondition)
142625
    {
142710
    {
142626
      this();
142711
      this();
142627
      this.itemId = itemId;
142712
      this.catalogItemId = catalogItemId;
142628
      setItemIdIsSet(true);
142713
      setCatalogItemIdIsSet(true);
142629
      this.itemCondition = itemCondition;
142714
      this.itemCondition = itemCondition;
142630
    }
142715
    }
142631
 
142716
 
142632
    /**
142717
    /**
142633
     * Performs a deep copy on <i>other</i>.
142718
     * Performs a deep copy on <i>other</i>.
142634
     */
142719
     */
142635
    public getWarrantyInfoForItem_args(getWarrantyInfoForItem_args other) {
142720
    public getWarrantyInfoForItem_args(getWarrantyInfoForItem_args other) {
142636
      __isset_bit_vector.clear();
142721
      __isset_bit_vector.clear();
142637
      __isset_bit_vector.or(other.__isset_bit_vector);
142722
      __isset_bit_vector.or(other.__isset_bit_vector);
142638
      this.itemId = other.itemId;
142723
      this.catalogItemId = other.catalogItemId;
142639
      if (other.isSetItemCondition()) {
142724
      if (other.isSetItemCondition()) {
142640
        this.itemCondition = other.itemCondition;
142725
        this.itemCondition = other.itemCondition;
142641
      }
142726
      }
142642
    }
142727
    }
142643
 
142728
 
Line 142645... Line 142730...
142645
      return new getWarrantyInfoForItem_args(this);
142730
      return new getWarrantyInfoForItem_args(this);
142646
    }
142731
    }
142647
 
142732
 
142648
    @Override
142733
    @Override
142649
    public void clear() {
142734
    public void clear() {
142650
      setItemIdIsSet(false);
142735
      setCatalogItemIdIsSet(false);
142651
      this.itemId = 0;
142736
      this.catalogItemId = 0;
142652
      this.itemCondition = null;
142737
      this.itemCondition = null;
142653
    }
142738
    }
142654
 
142739
 
142655
    public long getItemId() {
142740
    public long getCatalogItemId() {
142656
      return this.itemId;
142741
      return this.catalogItemId;
142657
    }
142742
    }
142658
 
142743
 
142659
    public void setItemId(long itemId) {
142744
    public void setCatalogItemId(long catalogItemId) {
142660
      this.itemId = itemId;
142745
      this.catalogItemId = catalogItemId;
142661
      setItemIdIsSet(true);
142746
      setCatalogItemIdIsSet(true);
142662
    }
142747
    }
142663
 
142748
 
142664
    public void unsetItemId() {
142749
    public void unsetCatalogItemId() {
142665
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
142750
      __isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
142666
    }
142751
    }
142667
 
142752
 
142668
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
142753
    /** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */
142669
    public boolean isSetItemId() {
142754
    public boolean isSetCatalogItemId() {
142670
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
142755
      return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
142671
    }
142756
    }
142672
 
142757
 
142673
    public void setItemIdIsSet(boolean value) {
142758
    public void setCatalogItemIdIsSet(boolean value) {
142674
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
142759
      __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
142675
    }
142760
    }
142676
 
142761
 
142677
    /**
142762
    /**
142678
     * 
142763
     * 
142679
     * @see ItemCondition
142764
     * @see ItemCondition
Line 142705... Line 142790...
142705
      }
142790
      }
142706
    }
142791
    }
142707
 
142792
 
142708
    public void setFieldValue(_Fields field, Object value) {
142793
    public void setFieldValue(_Fields field, Object value) {
142709
      switch (field) {
142794
      switch (field) {
142710
      case ITEM_ID:
142795
      case CATALOG_ITEM_ID:
142711
        if (value == null) {
142796
        if (value == null) {
142712
          unsetItemId();
142797
          unsetCatalogItemId();
142713
        } else {
142798
        } else {
142714
          setItemId((Long)value);
142799
          setCatalogItemId((Long)value);
142715
        }
142800
        }
142716
        break;
142801
        break;
142717
 
142802
 
142718
      case ITEM_CONDITION:
142803
      case ITEM_CONDITION:
142719
        if (value == null) {
142804
        if (value == null) {
Line 142726... Line 142811...
142726
      }
142811
      }
142727
    }
142812
    }
142728
 
142813
 
142729
    public Object getFieldValue(_Fields field) {
142814
    public Object getFieldValue(_Fields field) {
142730
      switch (field) {
142815
      switch (field) {
142731
      case ITEM_ID:
142816
      case CATALOG_ITEM_ID:
142732
        return Long.valueOf(getItemId());
142817
        return Long.valueOf(getCatalogItemId());
142733
 
142818
 
142734
      case ITEM_CONDITION:
142819
      case ITEM_CONDITION:
142735
        return getItemCondition();
142820
        return getItemCondition();
142736
 
142821
 
142737
      }
142822
      }
Line 142743... Line 142828...
142743
      if (field == null) {
142828
      if (field == null) {
142744
        throw new IllegalArgumentException();
142829
        throw new IllegalArgumentException();
142745
      }
142830
      }
142746
 
142831
 
142747
      switch (field) {
142832
      switch (field) {
142748
      case ITEM_ID:
142833
      case CATALOG_ITEM_ID:
142749
        return isSetItemId();
142834
        return isSetCatalogItemId();
142750
      case ITEM_CONDITION:
142835
      case ITEM_CONDITION:
142751
        return isSetItemCondition();
142836
        return isSetItemCondition();
142752
      }
142837
      }
142753
      throw new IllegalStateException();
142838
      throw new IllegalStateException();
142754
    }
142839
    }
Line 142764... Line 142849...
142764
 
142849
 
142765
    public boolean equals(getWarrantyInfoForItem_args that) {
142850
    public boolean equals(getWarrantyInfoForItem_args that) {
142766
      if (that == null)
142851
      if (that == null)
142767
        return false;
142852
        return false;
142768
 
142853
 
142769
      boolean this_present_itemId = true;
142854
      boolean this_present_catalogItemId = true;
142770
      boolean that_present_itemId = true;
142855
      boolean that_present_catalogItemId = true;
142771
      if (this_present_itemId || that_present_itemId) {
142856
      if (this_present_catalogItemId || that_present_catalogItemId) {
142772
        if (!(this_present_itemId && that_present_itemId))
142857
        if (!(this_present_catalogItemId && that_present_catalogItemId))
142773
          return false;
142858
          return false;
142774
        if (this.itemId != that.itemId)
142859
        if (this.catalogItemId != that.catalogItemId)
142775
          return false;
142860
          return false;
142776
      }
142861
      }
142777
 
142862
 
142778
      boolean this_present_itemCondition = true && this.isSetItemCondition();
142863
      boolean this_present_itemCondition = true && this.isSetItemCondition();
142779
      boolean that_present_itemCondition = true && that.isSetItemCondition();
142864
      boolean that_present_itemCondition = true && that.isSetItemCondition();
Line 142798... Line 142883...
142798
      }
142883
      }
142799
 
142884
 
142800
      int lastComparison = 0;
142885
      int lastComparison = 0;
142801
      getWarrantyInfoForItem_args typedOther = (getWarrantyInfoForItem_args)other;
142886
      getWarrantyInfoForItem_args typedOther = (getWarrantyInfoForItem_args)other;
142802
 
142887
 
142803
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
142888
      lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());
142804
      if (lastComparison != 0) {
142889
      if (lastComparison != 0) {
142805
        return lastComparison;
142890
        return lastComparison;
142806
      }
142891
      }
142807
      if (isSetItemId()) {
142892
      if (isSetCatalogItemId()) {
142808
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
142893
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);
142809
        if (lastComparison != 0) {
142894
        if (lastComparison != 0) {
142810
          return lastComparison;
142895
          return lastComparison;
142811
        }
142896
        }
142812
      }
142897
      }
142813
      lastComparison = Boolean.valueOf(isSetItemCondition()).compareTo(typedOther.isSetItemCondition());
142898
      lastComparison = Boolean.valueOf(isSetItemCondition()).compareTo(typedOther.isSetItemCondition());
Line 142835... Line 142920...
142835
        field = iprot.readFieldBegin();
142920
        field = iprot.readFieldBegin();
142836
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
142921
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
142837
          break;
142922
          break;
142838
        }
142923
        }
142839
        switch (field.id) {
142924
        switch (field.id) {
142840
          case 1: // ITEM_ID
142925
          case 1: // CATALOG_ITEM_ID
142841
            if (field.type == org.apache.thrift.protocol.TType.I64) {
142926
            if (field.type == org.apache.thrift.protocol.TType.I64) {
142842
              this.itemId = iprot.readI64();
142927
              this.catalogItemId = iprot.readI64();
142843
              setItemIdIsSet(true);
142928
              setCatalogItemIdIsSet(true);
142844
            } else { 
142929
            } else { 
142845
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
142930
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
142846
            }
142931
            }
142847
            break;
142932
            break;
142848
          case 2: // ITEM_CONDITION
142933
          case 2: // ITEM_CONDITION
Line 142863... Line 142948...
142863
 
142948
 
142864
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
142949
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
142865
      validate();
142950
      validate();
142866
 
142951
 
142867
      oprot.writeStructBegin(STRUCT_DESC);
142952
      oprot.writeStructBegin(STRUCT_DESC);
142868
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
142953
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
142869
      oprot.writeI64(this.itemId);
142954
      oprot.writeI64(this.catalogItemId);
142870
      oprot.writeFieldEnd();
142955
      oprot.writeFieldEnd();
142871
      if (this.itemCondition != null) {
142956
      if (this.itemCondition != null) {
142872
        oprot.writeFieldBegin(ITEM_CONDITION_FIELD_DESC);
142957
        oprot.writeFieldBegin(ITEM_CONDITION_FIELD_DESC);
142873
        oprot.writeI32(this.itemCondition.getValue());
142958
        oprot.writeI32(this.itemCondition.getValue());
142874
        oprot.writeFieldEnd();
142959
        oprot.writeFieldEnd();
Line 142880... Line 142965...
142880
    @Override
142965
    @Override
142881
    public String toString() {
142966
    public String toString() {
142882
      StringBuilder sb = new StringBuilder("getWarrantyInfoForItem_args(");
142967
      StringBuilder sb = new StringBuilder("getWarrantyInfoForItem_args(");
142883
      boolean first = true;
142968
      boolean first = true;
142884
 
142969
 
142885
      sb.append("itemId:");
142970
      sb.append("catalogItemId:");
142886
      sb.append(this.itemId);
142971
      sb.append(this.catalogItemId);
142887
      first = false;
142972
      first = false;
142888
      if (!first) sb.append(", ");
142973
      if (!first) sb.append(", ");
142889
      sb.append("itemCondition:");
142974
      sb.append("itemCondition:");
142890
      if (this.itemCondition == null) {
142975
      if (this.itemCondition == null) {
142891
        sb.append("null");
142976
        sb.append("null");
Line 143307... Line 143392...
143307
      boolean first = true;
143392
      boolean first = true;
143308
 
143393
 
143309
      sb.append("success:");
143394
      sb.append("success:");
143310
      if (this.success == null) {
143395
      if (this.success == null) {
143311
        sb.append("null");
143396
        sb.append("null");
-
 
143397
      } else {
-
 
143398
        sb.append(this.success);
-
 
143399
      }
-
 
143400
      first = false;
-
 
143401
      if (!first) sb.append(", ");
-
 
143402
      sb.append("cex:");
-
 
143403
      if (this.cex == null) {
-
 
143404
        sb.append("null");
-
 
143405
      } else {
-
 
143406
        sb.append(this.cex);
-
 
143407
      }
-
 
143408
      first = false;
-
 
143409
      sb.append(")");
-
 
143410
      return sb.toString();
-
 
143411
    }
-
 
143412
 
-
 
143413
    public void validate() throws org.apache.thrift.TException {
-
 
143414
      // check for required fields
-
 
143415
    }
-
 
143416
 
-
 
143417
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
143418
      try {
-
 
143419
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
143420
      } catch (org.apache.thrift.TException te) {
-
 
143421
        throw new java.io.IOException(te);
-
 
143422
      }
-
 
143423
    }
-
 
143424
 
-
 
143425
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
143426
      try {
-
 
143427
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
143428
      } catch (org.apache.thrift.TException te) {
-
 
143429
        throw new java.io.IOException(te);
-
 
143430
      }
-
 
143431
    }
-
 
143432
 
-
 
143433
  }
-
 
143434
 
-
 
143435
  public static class getWarrantyInfoForItemList_args implements org.apache.thrift.TBase<getWarrantyInfoForItemList_args, getWarrantyInfoForItemList_args._Fields>, java.io.Serializable, Cloneable   {
-
 
143436
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarrantyInfoForItemList_args");
-
 
143437
 
-
 
143438
    private static final org.apache.thrift.protocol.TField CATALOG_ITEM_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("catalogItemIds", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
143439
    private static final org.apache.thrift.protocol.TField ITEM_CONDITION_FIELD_DESC = new org.apache.thrift.protocol.TField("itemCondition", org.apache.thrift.protocol.TType.I32, (short)2);
-
 
143440
 
-
 
143441
    private List<Long> catalogItemIds; // required
-
 
143442
    private ItemCondition itemCondition; // required
-
 
143443
 
-
 
143444
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
143445
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
143446
      CATALOG_ITEM_IDS((short)1, "catalogItemIds"),
-
 
143447
      /**
-
 
143448
       * 
-
 
143449
       * @see ItemCondition
-
 
143450
       */
-
 
143451
      ITEM_CONDITION((short)2, "itemCondition");
-
 
143452
 
-
 
143453
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
143454
 
-
 
143455
      static {
-
 
143456
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
143457
          byName.put(field.getFieldName(), field);
-
 
143458
        }
-
 
143459
      }
-
 
143460
 
-
 
143461
      /**
-
 
143462
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
143463
       */
-
 
143464
      public static _Fields findByThriftId(int fieldId) {
-
 
143465
        switch(fieldId) {
-
 
143466
          case 1: // CATALOG_ITEM_IDS
-
 
143467
            return CATALOG_ITEM_IDS;
-
 
143468
          case 2: // ITEM_CONDITION
-
 
143469
            return ITEM_CONDITION;
-
 
143470
          default:
-
 
143471
            return null;
-
 
143472
        }
-
 
143473
      }
-
 
143474
 
-
 
143475
      /**
-
 
143476
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
143477
       * if it is not found.
-
 
143478
       */
-
 
143479
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
143480
        _Fields fields = findByThriftId(fieldId);
-
 
143481
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
143482
        return fields;
-
 
143483
      }
-
 
143484
 
-
 
143485
      /**
-
 
143486
       * Find the _Fields constant that matches name, or null if its not found.
-
 
143487
       */
-
 
143488
      public static _Fields findByName(String name) {
-
 
143489
        return byName.get(name);
-
 
143490
      }
-
 
143491
 
-
 
143492
      private final short _thriftId;
-
 
143493
      private final String _fieldName;
-
 
143494
 
-
 
143495
      _Fields(short thriftId, String fieldName) {
-
 
143496
        _thriftId = thriftId;
-
 
143497
        _fieldName = fieldName;
-
 
143498
      }
-
 
143499
 
-
 
143500
      public short getThriftFieldId() {
-
 
143501
        return _thriftId;
-
 
143502
      }
-
 
143503
 
-
 
143504
      public String getFieldName() {
-
 
143505
        return _fieldName;
-
 
143506
      }
-
 
143507
    }
-
 
143508
 
-
 
143509
    // isset id assignments
-
 
143510
 
-
 
143511
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
143512
    static {
-
 
143513
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
143514
      tmpMap.put(_Fields.CATALOG_ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("catalogItemIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
143515
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
143516
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
143517
      tmpMap.put(_Fields.ITEM_CONDITION, new org.apache.thrift.meta_data.FieldMetaData("itemCondition", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
143518
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ItemCondition.class)));
-
 
143519
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
143520
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarrantyInfoForItemList_args.class, metaDataMap);
-
 
143521
    }
-
 
143522
 
-
 
143523
    public getWarrantyInfoForItemList_args() {
-
 
143524
    }
-
 
143525
 
-
 
143526
    public getWarrantyInfoForItemList_args(
-
 
143527
      List<Long> catalogItemIds,
-
 
143528
      ItemCondition itemCondition)
-
 
143529
    {
-
 
143530
      this();
-
 
143531
      this.catalogItemIds = catalogItemIds;
-
 
143532
      this.itemCondition = itemCondition;
-
 
143533
    }
-
 
143534
 
-
 
143535
    /**
-
 
143536
     * Performs a deep copy on <i>other</i>.
-
 
143537
     */
-
 
143538
    public getWarrantyInfoForItemList_args(getWarrantyInfoForItemList_args other) {
-
 
143539
      if (other.isSetCatalogItemIds()) {
-
 
143540
        List<Long> __this__catalogItemIds = new ArrayList<Long>();
-
 
143541
        for (Long other_element : other.catalogItemIds) {
-
 
143542
          __this__catalogItemIds.add(other_element);
-
 
143543
        }
-
 
143544
        this.catalogItemIds = __this__catalogItemIds;
-
 
143545
      }
-
 
143546
      if (other.isSetItemCondition()) {
-
 
143547
        this.itemCondition = other.itemCondition;
-
 
143548
      }
-
 
143549
    }
-
 
143550
 
-
 
143551
    public getWarrantyInfoForItemList_args deepCopy() {
-
 
143552
      return new getWarrantyInfoForItemList_args(this);
-
 
143553
    }
-
 
143554
 
-
 
143555
    @Override
-
 
143556
    public void clear() {
-
 
143557
      this.catalogItemIds = null;
-
 
143558
      this.itemCondition = null;
-
 
143559
    }
-
 
143560
 
-
 
143561
    public int getCatalogItemIdsSize() {
-
 
143562
      return (this.catalogItemIds == null) ? 0 : this.catalogItemIds.size();
-
 
143563
    }
-
 
143564
 
-
 
143565
    public java.util.Iterator<Long> getCatalogItemIdsIterator() {
-
 
143566
      return (this.catalogItemIds == null) ? null : this.catalogItemIds.iterator();
-
 
143567
    }
-
 
143568
 
-
 
143569
    public void addToCatalogItemIds(long elem) {
-
 
143570
      if (this.catalogItemIds == null) {
-
 
143571
        this.catalogItemIds = new ArrayList<Long>();
-
 
143572
      }
-
 
143573
      this.catalogItemIds.add(elem);
-
 
143574
    }
-
 
143575
 
-
 
143576
    public List<Long> getCatalogItemIds() {
-
 
143577
      return this.catalogItemIds;
-
 
143578
    }
-
 
143579
 
-
 
143580
    public void setCatalogItemIds(List<Long> catalogItemIds) {
-
 
143581
      this.catalogItemIds = catalogItemIds;
-
 
143582
    }
-
 
143583
 
-
 
143584
    public void unsetCatalogItemIds() {
-
 
143585
      this.catalogItemIds = null;
-
 
143586
    }
-
 
143587
 
-
 
143588
    /** Returns true if field catalogItemIds is set (has been assigned a value) and false otherwise */
-
 
143589
    public boolean isSetCatalogItemIds() {
-
 
143590
      return this.catalogItemIds != null;
-
 
143591
    }
-
 
143592
 
-
 
143593
    public void setCatalogItemIdsIsSet(boolean value) {
-
 
143594
      if (!value) {
-
 
143595
        this.catalogItemIds = null;
-
 
143596
      }
-
 
143597
    }
-
 
143598
 
-
 
143599
    /**
-
 
143600
     * 
-
 
143601
     * @see ItemCondition
-
 
143602
     */
-
 
143603
    public ItemCondition getItemCondition() {
-
 
143604
      return this.itemCondition;
-
 
143605
    }
-
 
143606
 
-
 
143607
    /**
-
 
143608
     * 
-
 
143609
     * @see ItemCondition
-
 
143610
     */
-
 
143611
    public void setItemCondition(ItemCondition itemCondition) {
-
 
143612
      this.itemCondition = itemCondition;
-
 
143613
    }
-
 
143614
 
-
 
143615
    public void unsetItemCondition() {
-
 
143616
      this.itemCondition = null;
-
 
143617
    }
-
 
143618
 
-
 
143619
    /** Returns true if field itemCondition is set (has been assigned a value) and false otherwise */
-
 
143620
    public boolean isSetItemCondition() {
-
 
143621
      return this.itemCondition != null;
-
 
143622
    }
-
 
143623
 
-
 
143624
    public void setItemConditionIsSet(boolean value) {
-
 
143625
      if (!value) {
-
 
143626
        this.itemCondition = null;
-
 
143627
      }
-
 
143628
    }
-
 
143629
 
-
 
143630
    public void setFieldValue(_Fields field, Object value) {
-
 
143631
      switch (field) {
-
 
143632
      case CATALOG_ITEM_IDS:
-
 
143633
        if (value == null) {
-
 
143634
          unsetCatalogItemIds();
-
 
143635
        } else {
-
 
143636
          setCatalogItemIds((List<Long>)value);
-
 
143637
        }
-
 
143638
        break;
-
 
143639
 
-
 
143640
      case ITEM_CONDITION:
-
 
143641
        if (value == null) {
-
 
143642
          unsetItemCondition();
-
 
143643
        } else {
-
 
143644
          setItemCondition((ItemCondition)value);
-
 
143645
        }
-
 
143646
        break;
-
 
143647
 
-
 
143648
      }
-
 
143649
    }
-
 
143650
 
-
 
143651
    public Object getFieldValue(_Fields field) {
-
 
143652
      switch (field) {
-
 
143653
      case CATALOG_ITEM_IDS:
-
 
143654
        return getCatalogItemIds();
-
 
143655
 
-
 
143656
      case ITEM_CONDITION:
-
 
143657
        return getItemCondition();
-
 
143658
 
-
 
143659
      }
-
 
143660
      throw new IllegalStateException();
-
 
143661
    }
-
 
143662
 
-
 
143663
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
143664
    public boolean isSet(_Fields field) {
-
 
143665
      if (field == null) {
-
 
143666
        throw new IllegalArgumentException();
-
 
143667
      }
-
 
143668
 
-
 
143669
      switch (field) {
-
 
143670
      case CATALOG_ITEM_IDS:
-
 
143671
        return isSetCatalogItemIds();
-
 
143672
      case ITEM_CONDITION:
-
 
143673
        return isSetItemCondition();
-
 
143674
      }
-
 
143675
      throw new IllegalStateException();
-
 
143676
    }
-
 
143677
 
-
 
143678
    @Override
-
 
143679
    public boolean equals(Object that) {
-
 
143680
      if (that == null)
-
 
143681
        return false;
-
 
143682
      if (that instanceof getWarrantyInfoForItemList_args)
-
 
143683
        return this.equals((getWarrantyInfoForItemList_args)that);
-
 
143684
      return false;
-
 
143685
    }
-
 
143686
 
-
 
143687
    public boolean equals(getWarrantyInfoForItemList_args that) {
-
 
143688
      if (that == null)
-
 
143689
        return false;
-
 
143690
 
-
 
143691
      boolean this_present_catalogItemIds = true && this.isSetCatalogItemIds();
-
 
143692
      boolean that_present_catalogItemIds = true && that.isSetCatalogItemIds();
-
 
143693
      if (this_present_catalogItemIds || that_present_catalogItemIds) {
-
 
143694
        if (!(this_present_catalogItemIds && that_present_catalogItemIds))
-
 
143695
          return false;
-
 
143696
        if (!this.catalogItemIds.equals(that.catalogItemIds))
-
 
143697
          return false;
-
 
143698
      }
-
 
143699
 
-
 
143700
      boolean this_present_itemCondition = true && this.isSetItemCondition();
-
 
143701
      boolean that_present_itemCondition = true && that.isSetItemCondition();
-
 
143702
      if (this_present_itemCondition || that_present_itemCondition) {
-
 
143703
        if (!(this_present_itemCondition && that_present_itemCondition))
-
 
143704
          return false;
-
 
143705
        if (!this.itemCondition.equals(that.itemCondition))
-
 
143706
          return false;
-
 
143707
      }
-
 
143708
 
-
 
143709
      return true;
-
 
143710
    }
-
 
143711
 
-
 
143712
    @Override
-
 
143713
    public int hashCode() {
-
 
143714
      return 0;
-
 
143715
    }
-
 
143716
 
-
 
143717
    public int compareTo(getWarrantyInfoForItemList_args other) {
-
 
143718
      if (!getClass().equals(other.getClass())) {
-
 
143719
        return getClass().getName().compareTo(other.getClass().getName());
-
 
143720
      }
-
 
143721
 
-
 
143722
      int lastComparison = 0;
-
 
143723
      getWarrantyInfoForItemList_args typedOther = (getWarrantyInfoForItemList_args)other;
-
 
143724
 
-
 
143725
      lastComparison = Boolean.valueOf(isSetCatalogItemIds()).compareTo(typedOther.isSetCatalogItemIds());
-
 
143726
      if (lastComparison != 0) {
-
 
143727
        return lastComparison;
-
 
143728
      }
-
 
143729
      if (isSetCatalogItemIds()) {
-
 
143730
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemIds, typedOther.catalogItemIds);
-
 
143731
        if (lastComparison != 0) {
-
 
143732
          return lastComparison;
-
 
143733
        }
-
 
143734
      }
-
 
143735
      lastComparison = Boolean.valueOf(isSetItemCondition()).compareTo(typedOther.isSetItemCondition());
-
 
143736
      if (lastComparison != 0) {
-
 
143737
        return lastComparison;
-
 
143738
      }
-
 
143739
      if (isSetItemCondition()) {
-
 
143740
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemCondition, typedOther.itemCondition);
-
 
143741
        if (lastComparison != 0) {
-
 
143742
          return lastComparison;
-
 
143743
        }
-
 
143744
      }
-
 
143745
      return 0;
-
 
143746
    }
-
 
143747
 
-
 
143748
    public _Fields fieldForId(int fieldId) {
-
 
143749
      return _Fields.findByThriftId(fieldId);
-
 
143750
    }
-
 
143751
 
-
 
143752
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
143753
      org.apache.thrift.protocol.TField field;
-
 
143754
      iprot.readStructBegin();
-
 
143755
      while (true)
-
 
143756
      {
-
 
143757
        field = iprot.readFieldBegin();
-
 
143758
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
143759
          break;
-
 
143760
        }
-
 
143761
        switch (field.id) {
-
 
143762
          case 1: // CATALOG_ITEM_IDS
-
 
143763
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
143764
              {
-
 
143765
                org.apache.thrift.protocol.TList _list539 = iprot.readListBegin();
-
 
143766
                this.catalogItemIds = new ArrayList<Long>(_list539.size);
-
 
143767
                for (int _i540 = 0; _i540 < _list539.size; ++_i540)
-
 
143768
                {
-
 
143769
                  long _elem541; // required
-
 
143770
                  _elem541 = iprot.readI64();
-
 
143771
                  this.catalogItemIds.add(_elem541);
-
 
143772
                }
-
 
143773
                iprot.readListEnd();
-
 
143774
              }
-
 
143775
            } else { 
-
 
143776
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
143777
            }
-
 
143778
            break;
-
 
143779
          case 2: // ITEM_CONDITION
-
 
143780
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
143781
              this.itemCondition = ItemCondition.findByValue(iprot.readI32());
-
 
143782
            } else { 
-
 
143783
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
143784
            }
-
 
143785
            break;
-
 
143786
          default:
-
 
143787
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
143788
        }
-
 
143789
        iprot.readFieldEnd();
-
 
143790
      }
-
 
143791
      iprot.readStructEnd();
-
 
143792
      validate();
-
 
143793
    }
-
 
143794
 
-
 
143795
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
143796
      validate();
-
 
143797
 
-
 
143798
      oprot.writeStructBegin(STRUCT_DESC);
-
 
143799
      if (this.catalogItemIds != null) {
-
 
143800
        oprot.writeFieldBegin(CATALOG_ITEM_IDS_FIELD_DESC);
-
 
143801
        {
-
 
143802
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.catalogItemIds.size()));
-
 
143803
          for (long _iter542 : this.catalogItemIds)
-
 
143804
          {
-
 
143805
            oprot.writeI64(_iter542);
-
 
143806
          }
-
 
143807
          oprot.writeListEnd();
-
 
143808
        }
-
 
143809
        oprot.writeFieldEnd();
-
 
143810
      }
-
 
143811
      if (this.itemCondition != null) {
-
 
143812
        oprot.writeFieldBegin(ITEM_CONDITION_FIELD_DESC);
-
 
143813
        oprot.writeI32(this.itemCondition.getValue());
-
 
143814
        oprot.writeFieldEnd();
-
 
143815
      }
-
 
143816
      oprot.writeFieldStop();
-
 
143817
      oprot.writeStructEnd();
-
 
143818
    }
-
 
143819
 
-
 
143820
    @Override
-
 
143821
    public String toString() {
-
 
143822
      StringBuilder sb = new StringBuilder("getWarrantyInfoForItemList_args(");
-
 
143823
      boolean first = true;
-
 
143824
 
-
 
143825
      sb.append("catalogItemIds:");
-
 
143826
      if (this.catalogItemIds == null) {
-
 
143827
        sb.append("null");
-
 
143828
      } else {
-
 
143829
        sb.append(this.catalogItemIds);
-
 
143830
      }
-
 
143831
      first = false;
-
 
143832
      if (!first) sb.append(", ");
-
 
143833
      sb.append("itemCondition:");
-
 
143834
      if (this.itemCondition == null) {
-
 
143835
        sb.append("null");
-
 
143836
      } else {
-
 
143837
        sb.append(this.itemCondition);
-
 
143838
      }
-
 
143839
      first = false;
-
 
143840
      sb.append(")");
-
 
143841
      return sb.toString();
-
 
143842
    }
-
 
143843
 
-
 
143844
    public void validate() throws org.apache.thrift.TException {
-
 
143845
      // check for required fields
-
 
143846
    }
-
 
143847
 
-
 
143848
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
143849
      try {
-
 
143850
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
143851
      } catch (org.apache.thrift.TException te) {
-
 
143852
        throw new java.io.IOException(te);
-
 
143853
      }
-
 
143854
    }
-
 
143855
 
-
 
143856
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
143857
      try {
-
 
143858
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
143859
      } catch (org.apache.thrift.TException te) {
-
 
143860
        throw new java.io.IOException(te);
-
 
143861
      }
-
 
143862
    }
-
 
143863
 
-
 
143864
  }
-
 
143865
 
-
 
143866
  public static class getWarrantyInfoForItemList_result implements org.apache.thrift.TBase<getWarrantyInfoForItemList_result, getWarrantyInfoForItemList_result._Fields>, java.io.Serializable, Cloneable   {
-
 
143867
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarrantyInfoForItemList_result");
-
 
143868
 
-
 
143869
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
-
 
143870
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
143871
 
-
 
143872
    private Map<Long,Map<String,Long>> success; // required
-
 
143873
    private CatalogServiceException cex; // required
-
 
143874
 
-
 
143875
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
143876
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
143877
      SUCCESS((short)0, "success"),
-
 
143878
      CEX((short)1, "cex");
-
 
143879
 
-
 
143880
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
143881
 
-
 
143882
      static {
-
 
143883
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
143884
          byName.put(field.getFieldName(), field);
-
 
143885
        }
-
 
143886
      }
-
 
143887
 
-
 
143888
      /**
-
 
143889
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
143890
       */
-
 
143891
      public static _Fields findByThriftId(int fieldId) {
-
 
143892
        switch(fieldId) {
-
 
143893
          case 0: // SUCCESS
-
 
143894
            return SUCCESS;
-
 
143895
          case 1: // CEX
-
 
143896
            return CEX;
-
 
143897
          default:
-
 
143898
            return null;
-
 
143899
        }
-
 
143900
      }
-
 
143901
 
-
 
143902
      /**
-
 
143903
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
143904
       * if it is not found.
-
 
143905
       */
-
 
143906
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
143907
        _Fields fields = findByThriftId(fieldId);
-
 
143908
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
143909
        return fields;
-
 
143910
      }
-
 
143911
 
-
 
143912
      /**
-
 
143913
       * Find the _Fields constant that matches name, or null if its not found.
-
 
143914
       */
-
 
143915
      public static _Fields findByName(String name) {
-
 
143916
        return byName.get(name);
-
 
143917
      }
-
 
143918
 
-
 
143919
      private final short _thriftId;
-
 
143920
      private final String _fieldName;
-
 
143921
 
-
 
143922
      _Fields(short thriftId, String fieldName) {
-
 
143923
        _thriftId = thriftId;
-
 
143924
        _fieldName = fieldName;
-
 
143925
      }
-
 
143926
 
-
 
143927
      public short getThriftFieldId() {
-
 
143928
        return _thriftId;
-
 
143929
      }
-
 
143930
 
-
 
143931
      public String getFieldName() {
-
 
143932
        return _fieldName;
-
 
143933
      }
-
 
143934
    }
-
 
143935
 
-
 
143936
    // isset id assignments
-
 
143937
 
-
 
143938
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
143939
    static {
-
 
143940
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
143941
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
143942
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
143943
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
-
 
143944
              new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
143945
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
-
 
143946
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))));
-
 
143947
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
143948
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
143949
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
143950
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarrantyInfoForItemList_result.class, metaDataMap);
-
 
143951
    }
-
 
143952
 
-
 
143953
    public getWarrantyInfoForItemList_result() {
-
 
143954
    }
-
 
143955
 
-
 
143956
    public getWarrantyInfoForItemList_result(
-
 
143957
      Map<Long,Map<String,Long>> success,
-
 
143958
      CatalogServiceException cex)
-
 
143959
    {
-
 
143960
      this();
-
 
143961
      this.success = success;
-
 
143962
      this.cex = cex;
-
 
143963
    }
-
 
143964
 
-
 
143965
    /**
-
 
143966
     * Performs a deep copy on <i>other</i>.
-
 
143967
     */
-
 
143968
    public getWarrantyInfoForItemList_result(getWarrantyInfoForItemList_result other) {
-
 
143969
      if (other.isSetSuccess()) {
-
 
143970
        Map<Long,Map<String,Long>> __this__success = new HashMap<Long,Map<String,Long>>();
-
 
143971
        for (Map.Entry<Long, Map<String,Long>> other_element : other.success.entrySet()) {
-
 
143972
 
-
 
143973
          Long other_element_key = other_element.getKey();
-
 
143974
          Map<String,Long> other_element_value = other_element.getValue();
-
 
143975
 
-
 
143976
          Long __this__success_copy_key = other_element_key;
-
 
143977
 
-
 
143978
          Map<String,Long> __this__success_copy_value = new HashMap<String,Long>();
-
 
143979
          for (Map.Entry<String, Long> other_element_value_element : other_element_value.entrySet()) {
-
 
143980
 
-
 
143981
            String other_element_value_element_key = other_element_value_element.getKey();
-
 
143982
            Long other_element_value_element_value = other_element_value_element.getValue();
-
 
143983
 
-
 
143984
            String __this__success_copy_value_copy_key = other_element_value_element_key;
-
 
143985
 
-
 
143986
            Long __this__success_copy_value_copy_value = other_element_value_element_value;
-
 
143987
 
-
 
143988
            __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value);
-
 
143989
          }
-
 
143990
 
-
 
143991
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
-
 
143992
        }
-
 
143993
        this.success = __this__success;
-
 
143994
      }
-
 
143995
      if (other.isSetCex()) {
-
 
143996
        this.cex = new CatalogServiceException(other.cex);
-
 
143997
      }
-
 
143998
    }
-
 
143999
 
-
 
144000
    public getWarrantyInfoForItemList_result deepCopy() {
-
 
144001
      return new getWarrantyInfoForItemList_result(this);
-
 
144002
    }
-
 
144003
 
-
 
144004
    @Override
-
 
144005
    public void clear() {
-
 
144006
      this.success = null;
-
 
144007
      this.cex = null;
-
 
144008
    }
-
 
144009
 
-
 
144010
    public int getSuccessSize() {
-
 
144011
      return (this.success == null) ? 0 : this.success.size();
-
 
144012
    }
-
 
144013
 
-
 
144014
    public void putToSuccess(long key, Map<String,Long> val) {
-
 
144015
      if (this.success == null) {
-
 
144016
        this.success = new HashMap<Long,Map<String,Long>>();
-
 
144017
      }
-
 
144018
      this.success.put(key, val);
-
 
144019
    }
-
 
144020
 
-
 
144021
    public Map<Long,Map<String,Long>> getSuccess() {
-
 
144022
      return this.success;
-
 
144023
    }
-
 
144024
 
-
 
144025
    public void setSuccess(Map<Long,Map<String,Long>> success) {
-
 
144026
      this.success = success;
-
 
144027
    }
-
 
144028
 
-
 
144029
    public void unsetSuccess() {
-
 
144030
      this.success = null;
-
 
144031
    }
-
 
144032
 
-
 
144033
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
144034
    public boolean isSetSuccess() {
-
 
144035
      return this.success != null;
-
 
144036
    }
-
 
144037
 
-
 
144038
    public void setSuccessIsSet(boolean value) {
-
 
144039
      if (!value) {
-
 
144040
        this.success = null;
-
 
144041
      }
-
 
144042
    }
-
 
144043
 
-
 
144044
    public CatalogServiceException getCex() {
-
 
144045
      return this.cex;
-
 
144046
    }
-
 
144047
 
-
 
144048
    public void setCex(CatalogServiceException cex) {
-
 
144049
      this.cex = cex;
-
 
144050
    }
-
 
144051
 
-
 
144052
    public void unsetCex() {
-
 
144053
      this.cex = null;
-
 
144054
    }
-
 
144055
 
-
 
144056
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
-
 
144057
    public boolean isSetCex() {
-
 
144058
      return this.cex != null;
-
 
144059
    }
-
 
144060
 
-
 
144061
    public void setCexIsSet(boolean value) {
-
 
144062
      if (!value) {
-
 
144063
        this.cex = null;
-
 
144064
      }
-
 
144065
    }
-
 
144066
 
-
 
144067
    public void setFieldValue(_Fields field, Object value) {
-
 
144068
      switch (field) {
-
 
144069
      case SUCCESS:
-
 
144070
        if (value == null) {
-
 
144071
          unsetSuccess();
-
 
144072
        } else {
-
 
144073
          setSuccess((Map<Long,Map<String,Long>>)value);
-
 
144074
        }
-
 
144075
        break;
-
 
144076
 
-
 
144077
      case CEX:
-
 
144078
        if (value == null) {
-
 
144079
          unsetCex();
-
 
144080
        } else {
-
 
144081
          setCex((CatalogServiceException)value);
-
 
144082
        }
-
 
144083
        break;
-
 
144084
 
-
 
144085
      }
-
 
144086
    }
-
 
144087
 
-
 
144088
    public Object getFieldValue(_Fields field) {
-
 
144089
      switch (field) {
-
 
144090
      case SUCCESS:
-
 
144091
        return getSuccess();
-
 
144092
 
-
 
144093
      case CEX:
-
 
144094
        return getCex();
-
 
144095
 
-
 
144096
      }
-
 
144097
      throw new IllegalStateException();
-
 
144098
    }
-
 
144099
 
-
 
144100
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
144101
    public boolean isSet(_Fields field) {
-
 
144102
      if (field == null) {
-
 
144103
        throw new IllegalArgumentException();
-
 
144104
      }
-
 
144105
 
-
 
144106
      switch (field) {
-
 
144107
      case SUCCESS:
-
 
144108
        return isSetSuccess();
-
 
144109
      case CEX:
-
 
144110
        return isSetCex();
-
 
144111
      }
-
 
144112
      throw new IllegalStateException();
-
 
144113
    }
-
 
144114
 
-
 
144115
    @Override
-
 
144116
    public boolean equals(Object that) {
-
 
144117
      if (that == null)
-
 
144118
        return false;
-
 
144119
      if (that instanceof getWarrantyInfoForItemList_result)
-
 
144120
        return this.equals((getWarrantyInfoForItemList_result)that);
-
 
144121
      return false;
-
 
144122
    }
-
 
144123
 
-
 
144124
    public boolean equals(getWarrantyInfoForItemList_result that) {
-
 
144125
      if (that == null)
-
 
144126
        return false;
-
 
144127
 
-
 
144128
      boolean this_present_success = true && this.isSetSuccess();
-
 
144129
      boolean that_present_success = true && that.isSetSuccess();
-
 
144130
      if (this_present_success || that_present_success) {
-
 
144131
        if (!(this_present_success && that_present_success))
-
 
144132
          return false;
-
 
144133
        if (!this.success.equals(that.success))
-
 
144134
          return false;
-
 
144135
      }
-
 
144136
 
-
 
144137
      boolean this_present_cex = true && this.isSetCex();
-
 
144138
      boolean that_present_cex = true && that.isSetCex();
-
 
144139
      if (this_present_cex || that_present_cex) {
-
 
144140
        if (!(this_present_cex && that_present_cex))
-
 
144141
          return false;
-
 
144142
        if (!this.cex.equals(that.cex))
-
 
144143
          return false;
-
 
144144
      }
-
 
144145
 
-
 
144146
      return true;
-
 
144147
    }
-
 
144148
 
-
 
144149
    @Override
-
 
144150
    public int hashCode() {
-
 
144151
      return 0;
-
 
144152
    }
-
 
144153
 
-
 
144154
    public int compareTo(getWarrantyInfoForItemList_result other) {
-
 
144155
      if (!getClass().equals(other.getClass())) {
-
 
144156
        return getClass().getName().compareTo(other.getClass().getName());
-
 
144157
      }
-
 
144158
 
-
 
144159
      int lastComparison = 0;
-
 
144160
      getWarrantyInfoForItemList_result typedOther = (getWarrantyInfoForItemList_result)other;
-
 
144161
 
-
 
144162
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
144163
      if (lastComparison != 0) {
-
 
144164
        return lastComparison;
-
 
144165
      }
-
 
144166
      if (isSetSuccess()) {
-
 
144167
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
144168
        if (lastComparison != 0) {
-
 
144169
          return lastComparison;
-
 
144170
        }
-
 
144171
      }
-
 
144172
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
-
 
144173
      if (lastComparison != 0) {
-
 
144174
        return lastComparison;
-
 
144175
      }
-
 
144176
      if (isSetCex()) {
-
 
144177
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
-
 
144178
        if (lastComparison != 0) {
-
 
144179
          return lastComparison;
-
 
144180
        }
-
 
144181
      }
-
 
144182
      return 0;
-
 
144183
    }
-
 
144184
 
-
 
144185
    public _Fields fieldForId(int fieldId) {
-
 
144186
      return _Fields.findByThriftId(fieldId);
-
 
144187
    }
-
 
144188
 
-
 
144189
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
144190
      org.apache.thrift.protocol.TField field;
-
 
144191
      iprot.readStructBegin();
-
 
144192
      while (true)
-
 
144193
      {
-
 
144194
        field = iprot.readFieldBegin();
-
 
144195
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
144196
          break;
-
 
144197
        }
-
 
144198
        switch (field.id) {
-
 
144199
          case 0: // SUCCESS
-
 
144200
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
144201
              {
-
 
144202
                org.apache.thrift.protocol.TMap _map543 = iprot.readMapBegin();
-
 
144203
                this.success = new HashMap<Long,Map<String,Long>>(2*_map543.size);
-
 
144204
                for (int _i544 = 0; _i544 < _map543.size; ++_i544)
-
 
144205
                {
-
 
144206
                  long _key545; // required
-
 
144207
                  Map<String,Long> _val546; // required
-
 
144208
                  _key545 = iprot.readI64();
-
 
144209
                  {
-
 
144210
                    org.apache.thrift.protocol.TMap _map547 = iprot.readMapBegin();
-
 
144211
                    _val546 = new HashMap<String,Long>(2*_map547.size);
-
 
144212
                    for (int _i548 = 0; _i548 < _map547.size; ++_i548)
-
 
144213
                    {
-
 
144214
                      String _key549; // required
-
 
144215
                      long _val550; // required
-
 
144216
                      _key549 = iprot.readString();
-
 
144217
                      _val550 = iprot.readI64();
-
 
144218
                      _val546.put(_key549, _val550);
-
 
144219
                    }
-
 
144220
                    iprot.readMapEnd();
-
 
144221
                  }
-
 
144222
                  this.success.put(_key545, _val546);
-
 
144223
                }
-
 
144224
                iprot.readMapEnd();
-
 
144225
              }
-
 
144226
            } else { 
-
 
144227
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
144228
            }
-
 
144229
            break;
-
 
144230
          case 1: // CEX
-
 
144231
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
144232
              this.cex = new CatalogServiceException();
-
 
144233
              this.cex.read(iprot);
-
 
144234
            } else { 
-
 
144235
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
144236
            }
-
 
144237
            break;
-
 
144238
          default:
-
 
144239
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
144240
        }
-
 
144241
        iprot.readFieldEnd();
-
 
144242
      }
-
 
144243
      iprot.readStructEnd();
-
 
144244
      validate();
-
 
144245
    }
-
 
144246
 
-
 
144247
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
144248
      oprot.writeStructBegin(STRUCT_DESC);
-
 
144249
 
-
 
144250
      if (this.isSetSuccess()) {
-
 
144251
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
144252
        {
-
 
144253
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, this.success.size()));
-
 
144254
          for (Map.Entry<Long, Map<String,Long>> _iter551 : this.success.entrySet())
-
 
144255
          {
-
 
144256
            oprot.writeI64(_iter551.getKey());
-
 
144257
            {
-
 
144258
              oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, _iter551.getValue().size()));
-
 
144259
              for (Map.Entry<String, Long> _iter552 : _iter551.getValue().entrySet())
-
 
144260
              {
-
 
144261
                oprot.writeString(_iter552.getKey());
-
 
144262
                oprot.writeI64(_iter552.getValue());
-
 
144263
              }
-
 
144264
              oprot.writeMapEnd();
-
 
144265
            }
-
 
144266
          }
-
 
144267
          oprot.writeMapEnd();
-
 
144268
        }
-
 
144269
        oprot.writeFieldEnd();
-
 
144270
      } else if (this.isSetCex()) {
-
 
144271
        oprot.writeFieldBegin(CEX_FIELD_DESC);
-
 
144272
        this.cex.write(oprot);
-
 
144273
        oprot.writeFieldEnd();
-
 
144274
      }
-
 
144275
      oprot.writeFieldStop();
-
 
144276
      oprot.writeStructEnd();
-
 
144277
    }
-
 
144278
 
-
 
144279
    @Override
-
 
144280
    public String toString() {
-
 
144281
      StringBuilder sb = new StringBuilder("getWarrantyInfoForItemList_result(");
-
 
144282
      boolean first = true;
-
 
144283
 
-
 
144284
      sb.append("success:");
-
 
144285
      if (this.success == null) {
-
 
144286
        sb.append("null");
143312
      } else {
144287
      } else {
143313
        sb.append(this.success);
144288
        sb.append(this.success);
143314
      }
144289
      }
143315
      first = false;
144290
      first = false;
143316
      if (!first) sb.append(", ");
144291
      if (!first) sb.append(", ");