Subversion Repositories SmartDukaan

Rev

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

Rev 19686 Rev 19691
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;
-
 
622
 
621
  }
623
  }
622
 
624
 
623
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
625
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
624
 
626
 
625
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
627
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 1016... Line 1018...
1016
 
1018
 
1017
    public void updateItemPricing(List<ItemPricing> itemPricingList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemPricing_call> resultHandler) throws org.apache.thrift.TException;
1019
    public void updateItemPricing(List<ItemPricing> itemPricingList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemPricing_call> resultHandler) throws org.apache.thrift.TException;
1018
 
1020
 
1019
    public void bulkUpdateCatalog(List<BulkUploadCatalog> bulkUploadCatalog, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.bulkUpdateCatalog_call> resultHandler) throws org.apache.thrift.TException;
1021
    public void bulkUpdateCatalog(List<BulkUploadCatalog> bulkUploadCatalog, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.bulkUpdateCatalog_call> resultHandler) throws org.apache.thrift.TException;
1020
 
1022
 
-
 
1023
    public void getWarrantyInfoForItem(long itemId, ItemCondition itemCondition, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarrantyInfoForItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
1024
 
1021
  }
1025
  }
1022
 
1026
 
1023
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1027
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1024
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1028
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1025
      public Factory() {}
1029
      public Factory() {}
Line 5707... Line 5711...
5707
        throw result.cex;
5711
        throw result.cex;
5708
      }
5712
      }
5709
      return;
5713
      return;
5710
    }
5714
    }
5711
 
5715
 
-
 
5716
    public Map<String,Long> getWarrantyInfoForItem(long itemId, ItemCondition itemCondition) throws CatalogServiceException, org.apache.thrift.TException
-
 
5717
    {
-
 
5718
      send_getWarrantyInfoForItem(itemId, itemCondition);
-
 
5719
      return recv_getWarrantyInfoForItem();
-
 
5720
    }
-
 
5721
 
-
 
5722
    public void send_getWarrantyInfoForItem(long itemId, ItemCondition itemCondition) throws org.apache.thrift.TException
-
 
5723
    {
-
 
5724
      getWarrantyInfoForItem_args args = new getWarrantyInfoForItem_args();
-
 
5725
      args.setItemId(itemId);
-
 
5726
      args.setItemCondition(itemCondition);
-
 
5727
      sendBase("getWarrantyInfoForItem", args);
-
 
5728
    }
-
 
5729
 
-
 
5730
    public Map<String,Long> recv_getWarrantyInfoForItem() throws CatalogServiceException, org.apache.thrift.TException
-
 
5731
    {
-
 
5732
      getWarrantyInfoForItem_result result = new getWarrantyInfoForItem_result();
-
 
5733
      receiveBase(result, "getWarrantyInfoForItem");
-
 
5734
      if (result.isSetSuccess()) {
-
 
5735
        return result.success;
-
 
5736
      }
-
 
5737
      if (result.cex != null) {
-
 
5738
        throw result.cex;
-
 
5739
      }
-
 
5740
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarrantyInfoForItem failed: unknown result");
-
 
5741
    }
-
 
5742
 
5712
  }
5743
  }
5713
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5744
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5714
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5745
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5715
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5746
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5716
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
5747
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 12208... Line 12239...
12208
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12239
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12209
        (new Client(prot)).recv_bulkUpdateCatalog();
12240
        (new Client(prot)).recv_bulkUpdateCatalog();
12210
      }
12241
      }
12211
    }
12242
    }
12212
 
12243
 
-
 
12244
    public void getWarrantyInfoForItem(long itemId, ItemCondition itemCondition, org.apache.thrift.async.AsyncMethodCallback<getWarrantyInfoForItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
12245
      checkReady();
-
 
12246
      getWarrantyInfoForItem_call method_call = new getWarrantyInfoForItem_call(itemId, itemCondition, resultHandler, this, ___protocolFactory, ___transport);
-
 
12247
      this.___currentMethod = method_call;
-
 
12248
      ___manager.call(method_call);
-
 
12249
    }
-
 
12250
 
-
 
12251
    public static class getWarrantyInfoForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
12252
      private long itemId;
-
 
12253
      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 {
-
 
12255
        super(client, protocolFactory, transport, resultHandler, false);
-
 
12256
        this.itemId = itemId;
-
 
12257
        this.itemCondition = itemCondition;
-
 
12258
      }
-
 
12259
 
-
 
12260
      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));
-
 
12262
        getWarrantyInfoForItem_args args = new getWarrantyInfoForItem_args();
-
 
12263
        args.setItemId(itemId);
-
 
12264
        args.setItemCondition(itemCondition);
-
 
12265
        args.write(prot);
-
 
12266
        prot.writeMessageEnd();
-
 
12267
      }
-
 
12268
 
-
 
12269
      public Map<String,Long> getResult() throws CatalogServiceException, org.apache.thrift.TException {
-
 
12270
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
12271
          throw new IllegalStateException("Method call not finished!");
-
 
12272
        }
-
 
12273
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
12274
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
12275
        return (new Client(prot)).recv_getWarrantyInfoForItem();
-
 
12276
      }
-
 
12277
    }
-
 
12278
 
12213
  }
12279
  }
12214
 
12280
 
12215
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
12281
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
12216
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
12282
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
12217
    public Processor(I iface) {
12283
    public Processor(I iface) {
Line 12419... Line 12485...
12419
      processMap.put("getBulkPricingByItemId", new getBulkPricingByItemId());
12485
      processMap.put("getBulkPricingByItemId", new getBulkPricingByItemId());
12420
      processMap.put("updateBulkPricesOnProduction", new updateBulkPricesOnProduction());
12486
      processMap.put("updateBulkPricesOnProduction", new updateBulkPricesOnProduction());
12421
      processMap.put("getCartByValue", new getCartByValue());
12487
      processMap.put("getCartByValue", new getCartByValue());
12422
      processMap.put("updateItemPricing", new updateItemPricing());
12488
      processMap.put("updateItemPricing", new updateItemPricing());
12423
      processMap.put("bulkUpdateCatalog", new bulkUpdateCatalog());
12489
      processMap.put("bulkUpdateCatalog", new bulkUpdateCatalog());
-
 
12490
      processMap.put("getWarrantyInfoForItem", new getWarrantyInfoForItem());
12424
      return processMap;
12491
      return processMap;
12425
    }
12492
    }
12426
 
12493
 
12427
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
12494
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
12428
      public addItem() {
12495
      public addItem() {
Line 15845... Line 15912...
15845
        }
15912
        }
15846
        return result;
15913
        return result;
15847
      }
15914
      }
15848
    }
15915
    }
15849
 
15916
 
-
 
15917
    private static class getWarrantyInfoForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarrantyInfoForItem_args> {
-
 
15918
      public getWarrantyInfoForItem() {
-
 
15919
        super("getWarrantyInfoForItem");
-
 
15920
      }
-
 
15921
 
-
 
15922
      protected getWarrantyInfoForItem_args getEmptyArgsInstance() {
-
 
15923
        return new getWarrantyInfoForItem_args();
-
 
15924
      }
-
 
15925
 
-
 
15926
      protected getWarrantyInfoForItem_result getResult(I iface, getWarrantyInfoForItem_args args) throws org.apache.thrift.TException {
-
 
15927
        getWarrantyInfoForItem_result result = new getWarrantyInfoForItem_result();
-
 
15928
        try {
-
 
15929
          result.success = iface.getWarrantyInfoForItem(args.itemId, args.itemCondition);
-
 
15930
        } catch (CatalogServiceException cex) {
-
 
15931
          result.cex = cex;
-
 
15932
        }
-
 
15933
        return result;
-
 
15934
      }
-
 
15935
    }
-
 
15936
 
15850
  }
15937
  }
15851
 
15938
 
15852
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
15939
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
15853
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
15940
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
15854
 
15941
 
Line 57663... Line 57750...
57663
      }
57750
      }
57664
    }
57751
    }
57665
 
57752
 
57666
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57753
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57667
      try {
57754
      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);
57668
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57757
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57669
      } catch (org.apache.thrift.TException te) {
57758
      } catch (org.apache.thrift.TException te) {
57670
        throw new java.io.IOException(te);
57759
        throw new java.io.IOException(te);
57671
      }
57760
      }
57672
    }
57761
    }
Line 142408... Line 142497...
142408
      sb.append("cex:");
142497
      sb.append("cex:");
142409
      if (this.cex == null) {
142498
      if (this.cex == null) {
142410
        sb.append("null");
142499
        sb.append("null");
142411
      } else {
142500
      } else {
142412
        sb.append(this.cex);
142501
        sb.append(this.cex);
-
 
142502
      }
-
 
142503
      first = false;
-
 
142504
      sb.append(")");
-
 
142505
      return sb.toString();
-
 
142506
    }
-
 
142507
 
-
 
142508
    public void validate() throws org.apache.thrift.TException {
-
 
142509
      // check for required fields
-
 
142510
    }
-
 
142511
 
-
 
142512
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
142513
      try {
-
 
142514
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
142515
      } catch (org.apache.thrift.TException te) {
-
 
142516
        throw new java.io.IOException(te);
-
 
142517
      }
-
 
142518
    }
-
 
142519
 
-
 
142520
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
142521
      try {
-
 
142522
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
142523
      } catch (org.apache.thrift.TException te) {
-
 
142524
        throw new java.io.IOException(te);
-
 
142525
      }
-
 
142526
    }
-
 
142527
 
-
 
142528
  }
-
 
142529
 
-
 
142530
  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");
-
 
142532
 
-
 
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);
-
 
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);
-
 
142535
 
-
 
142536
    private long itemId; // required
-
 
142537
    private ItemCondition itemCondition; // required
-
 
142538
 
-
 
142539
    /** 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 {
-
 
142541
      ITEM_ID((short)1, "itemId"),
-
 
142542
      /**
-
 
142543
       * 
-
 
142544
       * @see ItemCondition
-
 
142545
       */
-
 
142546
      ITEM_CONDITION((short)2, "itemCondition");
-
 
142547
 
-
 
142548
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
142549
 
-
 
142550
      static {
-
 
142551
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
142552
          byName.put(field.getFieldName(), field);
-
 
142553
        }
-
 
142554
      }
-
 
142555
 
-
 
142556
      /**
-
 
142557
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
142558
       */
-
 
142559
      public static _Fields findByThriftId(int fieldId) {
-
 
142560
        switch(fieldId) {
-
 
142561
          case 1: // ITEM_ID
-
 
142562
            return ITEM_ID;
-
 
142563
          case 2: // ITEM_CONDITION
-
 
142564
            return ITEM_CONDITION;
-
 
142565
          default:
-
 
142566
            return null;
-
 
142567
        }
-
 
142568
      }
-
 
142569
 
-
 
142570
      /**
-
 
142571
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
142572
       * if it is not found.
-
 
142573
       */
-
 
142574
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
142575
        _Fields fields = findByThriftId(fieldId);
-
 
142576
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
142577
        return fields;
-
 
142578
      }
-
 
142579
 
-
 
142580
      /**
-
 
142581
       * Find the _Fields constant that matches name, or null if its not found.
-
 
142582
       */
-
 
142583
      public static _Fields findByName(String name) {
-
 
142584
        return byName.get(name);
-
 
142585
      }
-
 
142586
 
-
 
142587
      private final short _thriftId;
-
 
142588
      private final String _fieldName;
-
 
142589
 
-
 
142590
      _Fields(short thriftId, String fieldName) {
-
 
142591
        _thriftId = thriftId;
-
 
142592
        _fieldName = fieldName;
-
 
142593
      }
-
 
142594
 
-
 
142595
      public short getThriftFieldId() {
-
 
142596
        return _thriftId;
-
 
142597
      }
-
 
142598
 
-
 
142599
      public String getFieldName() {
-
 
142600
        return _fieldName;
-
 
142601
      }
-
 
142602
    }
-
 
142603
 
-
 
142604
    // isset id assignments
-
 
142605
    private static final int __ITEMID_ISSET_ID = 0;
-
 
142606
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
142607
 
-
 
142608
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
142609
    static {
-
 
142610
      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, 
-
 
142612
          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, 
-
 
142614
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ItemCondition.class)));
-
 
142615
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
142616
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarrantyInfoForItem_args.class, metaDataMap);
-
 
142617
    }
-
 
142618
 
-
 
142619
    public getWarrantyInfoForItem_args() {
-
 
142620
    }
-
 
142621
 
-
 
142622
    public getWarrantyInfoForItem_args(
-
 
142623
      long itemId,
-
 
142624
      ItemCondition itemCondition)
-
 
142625
    {
-
 
142626
      this();
-
 
142627
      this.itemId = itemId;
-
 
142628
      setItemIdIsSet(true);
-
 
142629
      this.itemCondition = itemCondition;
-
 
142630
    }
-
 
142631
 
-
 
142632
    /**
-
 
142633
     * Performs a deep copy on <i>other</i>.
-
 
142634
     */
-
 
142635
    public getWarrantyInfoForItem_args(getWarrantyInfoForItem_args other) {
-
 
142636
      __isset_bit_vector.clear();
-
 
142637
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
142638
      this.itemId = other.itemId;
-
 
142639
      if (other.isSetItemCondition()) {
-
 
142640
        this.itemCondition = other.itemCondition;
-
 
142641
      }
-
 
142642
    }
-
 
142643
 
-
 
142644
    public getWarrantyInfoForItem_args deepCopy() {
-
 
142645
      return new getWarrantyInfoForItem_args(this);
-
 
142646
    }
-
 
142647
 
-
 
142648
    @Override
-
 
142649
    public void clear() {
-
 
142650
      setItemIdIsSet(false);
-
 
142651
      this.itemId = 0;
-
 
142652
      this.itemCondition = null;
-
 
142653
    }
-
 
142654
 
-
 
142655
    public long getItemId() {
-
 
142656
      return this.itemId;
-
 
142657
    }
-
 
142658
 
-
 
142659
    public void setItemId(long itemId) {
-
 
142660
      this.itemId = itemId;
-
 
142661
      setItemIdIsSet(true);
-
 
142662
    }
-
 
142663
 
-
 
142664
    public void unsetItemId() {
-
 
142665
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
142666
    }
-
 
142667
 
-
 
142668
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
142669
    public boolean isSetItemId() {
-
 
142670
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
142671
    }
-
 
142672
 
-
 
142673
    public void setItemIdIsSet(boolean value) {
-
 
142674
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
142675
    }
-
 
142676
 
-
 
142677
    /**
-
 
142678
     * 
-
 
142679
     * @see ItemCondition
-
 
142680
     */
-
 
142681
    public ItemCondition getItemCondition() {
-
 
142682
      return this.itemCondition;
-
 
142683
    }
-
 
142684
 
-
 
142685
    /**
-
 
142686
     * 
-
 
142687
     * @see ItemCondition
-
 
142688
     */
-
 
142689
    public void setItemCondition(ItemCondition itemCondition) {
-
 
142690
      this.itemCondition = itemCondition;
-
 
142691
    }
-
 
142692
 
-
 
142693
    public void unsetItemCondition() {
-
 
142694
      this.itemCondition = null;
-
 
142695
    }
-
 
142696
 
-
 
142697
    /** Returns true if field itemCondition is set (has been assigned a value) and false otherwise */
-
 
142698
    public boolean isSetItemCondition() {
-
 
142699
      return this.itemCondition != null;
-
 
142700
    }
-
 
142701
 
-
 
142702
    public void setItemConditionIsSet(boolean value) {
-
 
142703
      if (!value) {
-
 
142704
        this.itemCondition = null;
-
 
142705
      }
-
 
142706
    }
-
 
142707
 
-
 
142708
    public void setFieldValue(_Fields field, Object value) {
-
 
142709
      switch (field) {
-
 
142710
      case ITEM_ID:
-
 
142711
        if (value == null) {
-
 
142712
          unsetItemId();
-
 
142713
        } else {
-
 
142714
          setItemId((Long)value);
-
 
142715
        }
-
 
142716
        break;
-
 
142717
 
-
 
142718
      case ITEM_CONDITION:
-
 
142719
        if (value == null) {
-
 
142720
          unsetItemCondition();
-
 
142721
        } else {
-
 
142722
          setItemCondition((ItemCondition)value);
-
 
142723
        }
-
 
142724
        break;
-
 
142725
 
-
 
142726
      }
-
 
142727
    }
-
 
142728
 
-
 
142729
    public Object getFieldValue(_Fields field) {
-
 
142730
      switch (field) {
-
 
142731
      case ITEM_ID:
-
 
142732
        return Long.valueOf(getItemId());
-
 
142733
 
-
 
142734
      case ITEM_CONDITION:
-
 
142735
        return getItemCondition();
-
 
142736
 
-
 
142737
      }
-
 
142738
      throw new IllegalStateException();
-
 
142739
    }
-
 
142740
 
-
 
142741
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
142742
    public boolean isSet(_Fields field) {
-
 
142743
      if (field == null) {
-
 
142744
        throw new IllegalArgumentException();
-
 
142745
      }
-
 
142746
 
-
 
142747
      switch (field) {
-
 
142748
      case ITEM_ID:
-
 
142749
        return isSetItemId();
-
 
142750
      case ITEM_CONDITION:
-
 
142751
        return isSetItemCondition();
-
 
142752
      }
-
 
142753
      throw new IllegalStateException();
-
 
142754
    }
-
 
142755
 
-
 
142756
    @Override
-
 
142757
    public boolean equals(Object that) {
-
 
142758
      if (that == null)
-
 
142759
        return false;
-
 
142760
      if (that instanceof getWarrantyInfoForItem_args)
-
 
142761
        return this.equals((getWarrantyInfoForItem_args)that);
-
 
142762
      return false;
-
 
142763
    }
-
 
142764
 
-
 
142765
    public boolean equals(getWarrantyInfoForItem_args that) {
-
 
142766
      if (that == null)
-
 
142767
        return false;
-
 
142768
 
-
 
142769
      boolean this_present_itemId = true;
-
 
142770
      boolean that_present_itemId = true;
-
 
142771
      if (this_present_itemId || that_present_itemId) {
-
 
142772
        if (!(this_present_itemId && that_present_itemId))
-
 
142773
          return false;
-
 
142774
        if (this.itemId != that.itemId)
-
 
142775
          return false;
-
 
142776
      }
-
 
142777
 
-
 
142778
      boolean this_present_itemCondition = true && this.isSetItemCondition();
-
 
142779
      boolean that_present_itemCondition = true && that.isSetItemCondition();
-
 
142780
      if (this_present_itemCondition || that_present_itemCondition) {
-
 
142781
        if (!(this_present_itemCondition && that_present_itemCondition))
-
 
142782
          return false;
-
 
142783
        if (!this.itemCondition.equals(that.itemCondition))
-
 
142784
          return false;
-
 
142785
      }
-
 
142786
 
-
 
142787
      return true;
-
 
142788
    }
-
 
142789
 
-
 
142790
    @Override
-
 
142791
    public int hashCode() {
-
 
142792
      return 0;
-
 
142793
    }
-
 
142794
 
-
 
142795
    public int compareTo(getWarrantyInfoForItem_args other) {
-
 
142796
      if (!getClass().equals(other.getClass())) {
-
 
142797
        return getClass().getName().compareTo(other.getClass().getName());
-
 
142798
      }
-
 
142799
 
-
 
142800
      int lastComparison = 0;
-
 
142801
      getWarrantyInfoForItem_args typedOther = (getWarrantyInfoForItem_args)other;
-
 
142802
 
-
 
142803
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
142804
      if (lastComparison != 0) {
-
 
142805
        return lastComparison;
-
 
142806
      }
-
 
142807
      if (isSetItemId()) {
-
 
142808
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
142809
        if (lastComparison != 0) {
-
 
142810
          return lastComparison;
-
 
142811
        }
-
 
142812
      }
-
 
142813
      lastComparison = Boolean.valueOf(isSetItemCondition()).compareTo(typedOther.isSetItemCondition());
-
 
142814
      if (lastComparison != 0) {
-
 
142815
        return lastComparison;
-
 
142816
      }
-
 
142817
      if (isSetItemCondition()) {
-
 
142818
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemCondition, typedOther.itemCondition);
-
 
142819
        if (lastComparison != 0) {
-
 
142820
          return lastComparison;
-
 
142821
        }
-
 
142822
      }
-
 
142823
      return 0;
-
 
142824
    }
-
 
142825
 
-
 
142826
    public _Fields fieldForId(int fieldId) {
-
 
142827
      return _Fields.findByThriftId(fieldId);
-
 
142828
    }
-
 
142829
 
-
 
142830
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
142831
      org.apache.thrift.protocol.TField field;
-
 
142832
      iprot.readStructBegin();
-
 
142833
      while (true)
-
 
142834
      {
-
 
142835
        field = iprot.readFieldBegin();
-
 
142836
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
142837
          break;
-
 
142838
        }
-
 
142839
        switch (field.id) {
-
 
142840
          case 1: // ITEM_ID
-
 
142841
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
142842
              this.itemId = iprot.readI64();
-
 
142843
              setItemIdIsSet(true);
-
 
142844
            } else { 
-
 
142845
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
142846
            }
-
 
142847
            break;
-
 
142848
          case 2: // ITEM_CONDITION
-
 
142849
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
142850
              this.itemCondition = ItemCondition.findByValue(iprot.readI32());
-
 
142851
            } else { 
-
 
142852
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
142853
            }
-
 
142854
            break;
-
 
142855
          default:
-
 
142856
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
142857
        }
-
 
142858
        iprot.readFieldEnd();
-
 
142859
      }
-
 
142860
      iprot.readStructEnd();
-
 
142861
      validate();
-
 
142862
    }
-
 
142863
 
-
 
142864
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
142865
      validate();
-
 
142866
 
-
 
142867
      oprot.writeStructBegin(STRUCT_DESC);
-
 
142868
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
142869
      oprot.writeI64(this.itemId);
-
 
142870
      oprot.writeFieldEnd();
-
 
142871
      if (this.itemCondition != null) {
-
 
142872
        oprot.writeFieldBegin(ITEM_CONDITION_FIELD_DESC);
-
 
142873
        oprot.writeI32(this.itemCondition.getValue());
-
 
142874
        oprot.writeFieldEnd();
-
 
142875
      }
-
 
142876
      oprot.writeFieldStop();
-
 
142877
      oprot.writeStructEnd();
-
 
142878
    }
-
 
142879
 
-
 
142880
    @Override
-
 
142881
    public String toString() {
-
 
142882
      StringBuilder sb = new StringBuilder("getWarrantyInfoForItem_args(");
-
 
142883
      boolean first = true;
-
 
142884
 
-
 
142885
      sb.append("itemId:");
-
 
142886
      sb.append(this.itemId);
-
 
142887
      first = false;
-
 
142888
      if (!first) sb.append(", ");
-
 
142889
      sb.append("itemCondition:");
-
 
142890
      if (this.itemCondition == null) {
-
 
142891
        sb.append("null");
-
 
142892
      } else {
-
 
142893
        sb.append(this.itemCondition);
-
 
142894
      }
-
 
142895
      first = false;
-
 
142896
      sb.append(")");
-
 
142897
      return sb.toString();
-
 
142898
    }
-
 
142899
 
-
 
142900
    public void validate() throws org.apache.thrift.TException {
-
 
142901
      // check for required fields
-
 
142902
    }
-
 
142903
 
-
 
142904
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
142905
      try {
-
 
142906
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
142907
      } catch (org.apache.thrift.TException te) {
-
 
142908
        throw new java.io.IOException(te);
-
 
142909
      }
-
 
142910
    }
-
 
142911
 
-
 
142912
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
142913
      try {
-
 
142914
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
142915
        __isset_bit_vector = new BitSet(1);
-
 
142916
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
142917
      } catch (org.apache.thrift.TException te) {
-
 
142918
        throw new java.io.IOException(te);
-
 
142919
      }
-
 
142920
    }
-
 
142921
 
-
 
142922
  }
-
 
142923
 
-
 
142924
  public static class getWarrantyInfoForItem_result implements org.apache.thrift.TBase<getWarrantyInfoForItem_result, getWarrantyInfoForItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
142925
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarrantyInfoForItem_result");
-
 
142926
 
-
 
142927
    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);
-
 
142928
    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);
-
 
142929
 
-
 
142930
    private Map<String,Long> success; // required
-
 
142931
    private CatalogServiceException cex; // required
-
 
142932
 
-
 
142933
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
142934
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
142935
      SUCCESS((short)0, "success"),
-
 
142936
      CEX((short)1, "cex");
-
 
142937
 
-
 
142938
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
142939
 
-
 
142940
      static {
-
 
142941
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
142942
          byName.put(field.getFieldName(), field);
-
 
142943
        }
-
 
142944
      }
-
 
142945
 
-
 
142946
      /**
-
 
142947
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
142948
       */
-
 
142949
      public static _Fields findByThriftId(int fieldId) {
-
 
142950
        switch(fieldId) {
-
 
142951
          case 0: // SUCCESS
-
 
142952
            return SUCCESS;
-
 
142953
          case 1: // CEX
-
 
142954
            return CEX;
-
 
142955
          default:
-
 
142956
            return null;
-
 
142957
        }
-
 
142958
      }
-
 
142959
 
-
 
142960
      /**
-
 
142961
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
142962
       * if it is not found.
-
 
142963
       */
-
 
142964
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
142965
        _Fields fields = findByThriftId(fieldId);
-
 
142966
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
142967
        return fields;
-
 
142968
      }
-
 
142969
 
-
 
142970
      /**
-
 
142971
       * Find the _Fields constant that matches name, or null if its not found.
-
 
142972
       */
-
 
142973
      public static _Fields findByName(String name) {
-
 
142974
        return byName.get(name);
-
 
142975
      }
-
 
142976
 
-
 
142977
      private final short _thriftId;
-
 
142978
      private final String _fieldName;
-
 
142979
 
-
 
142980
      _Fields(short thriftId, String fieldName) {
-
 
142981
        _thriftId = thriftId;
-
 
142982
        _fieldName = fieldName;
-
 
142983
      }
-
 
142984
 
-
 
142985
      public short getThriftFieldId() {
-
 
142986
        return _thriftId;
-
 
142987
      }
-
 
142988
 
-
 
142989
      public String getFieldName() {
-
 
142990
        return _fieldName;
-
 
142991
      }
-
 
142992
    }
-
 
142993
 
-
 
142994
    // isset id assignments
-
 
142995
 
-
 
142996
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
142997
    static {
-
 
142998
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
142999
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
143000
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
143001
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
-
 
143002
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
143003
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
143004
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
143005
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
143006
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarrantyInfoForItem_result.class, metaDataMap);
-
 
143007
    }
-
 
143008
 
-
 
143009
    public getWarrantyInfoForItem_result() {
-
 
143010
    }
-
 
143011
 
-
 
143012
    public getWarrantyInfoForItem_result(
-
 
143013
      Map<String,Long> success,
-
 
143014
      CatalogServiceException cex)
-
 
143015
    {
-
 
143016
      this();
-
 
143017
      this.success = success;
-
 
143018
      this.cex = cex;
-
 
143019
    }
-
 
143020
 
-
 
143021
    /**
-
 
143022
     * Performs a deep copy on <i>other</i>.
-
 
143023
     */
-
 
143024
    public getWarrantyInfoForItem_result(getWarrantyInfoForItem_result other) {
-
 
143025
      if (other.isSetSuccess()) {
-
 
143026
        Map<String,Long> __this__success = new HashMap<String,Long>();
-
 
143027
        for (Map.Entry<String, Long> other_element : other.success.entrySet()) {
-
 
143028
 
-
 
143029
          String other_element_key = other_element.getKey();
-
 
143030
          Long other_element_value = other_element.getValue();
-
 
143031
 
-
 
143032
          String __this__success_copy_key = other_element_key;
-
 
143033
 
-
 
143034
          Long __this__success_copy_value = other_element_value;
-
 
143035
 
-
 
143036
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
-
 
143037
        }
-
 
143038
        this.success = __this__success;
-
 
143039
      }
-
 
143040
      if (other.isSetCex()) {
-
 
143041
        this.cex = new CatalogServiceException(other.cex);
-
 
143042
      }
-
 
143043
    }
-
 
143044
 
-
 
143045
    public getWarrantyInfoForItem_result deepCopy() {
-
 
143046
      return new getWarrantyInfoForItem_result(this);
-
 
143047
    }
-
 
143048
 
-
 
143049
    @Override
-
 
143050
    public void clear() {
-
 
143051
      this.success = null;
-
 
143052
      this.cex = null;
-
 
143053
    }
-
 
143054
 
-
 
143055
    public int getSuccessSize() {
-
 
143056
      return (this.success == null) ? 0 : this.success.size();
-
 
143057
    }
-
 
143058
 
-
 
143059
    public void putToSuccess(String key, long val) {
-
 
143060
      if (this.success == null) {
-
 
143061
        this.success = new HashMap<String,Long>();
-
 
143062
      }
-
 
143063
      this.success.put(key, val);
-
 
143064
    }
-
 
143065
 
-
 
143066
    public Map<String,Long> getSuccess() {
-
 
143067
      return this.success;
-
 
143068
    }
-
 
143069
 
-
 
143070
    public void setSuccess(Map<String,Long> success) {
-
 
143071
      this.success = success;
-
 
143072
    }
-
 
143073
 
-
 
143074
    public void unsetSuccess() {
-
 
143075
      this.success = null;
-
 
143076
    }
-
 
143077
 
-
 
143078
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
143079
    public boolean isSetSuccess() {
-
 
143080
      return this.success != null;
-
 
143081
    }
-
 
143082
 
-
 
143083
    public void setSuccessIsSet(boolean value) {
-
 
143084
      if (!value) {
-
 
143085
        this.success = null;
-
 
143086
      }
-
 
143087
    }
-
 
143088
 
-
 
143089
    public CatalogServiceException getCex() {
-
 
143090
      return this.cex;
-
 
143091
    }
-
 
143092
 
-
 
143093
    public void setCex(CatalogServiceException cex) {
-
 
143094
      this.cex = cex;
-
 
143095
    }
-
 
143096
 
-
 
143097
    public void unsetCex() {
-
 
143098
      this.cex = null;
-
 
143099
    }
-
 
143100
 
-
 
143101
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
-
 
143102
    public boolean isSetCex() {
-
 
143103
      return this.cex != null;
-
 
143104
    }
-
 
143105
 
-
 
143106
    public void setCexIsSet(boolean value) {
-
 
143107
      if (!value) {
-
 
143108
        this.cex = null;
-
 
143109
      }
-
 
143110
    }
-
 
143111
 
-
 
143112
    public void setFieldValue(_Fields field, Object value) {
-
 
143113
      switch (field) {
-
 
143114
      case SUCCESS:
-
 
143115
        if (value == null) {
-
 
143116
          unsetSuccess();
-
 
143117
        } else {
-
 
143118
          setSuccess((Map<String,Long>)value);
-
 
143119
        }
-
 
143120
        break;
-
 
143121
 
-
 
143122
      case CEX:
-
 
143123
        if (value == null) {
-
 
143124
          unsetCex();
-
 
143125
        } else {
-
 
143126
          setCex((CatalogServiceException)value);
-
 
143127
        }
-
 
143128
        break;
-
 
143129
 
-
 
143130
      }
-
 
143131
    }
-
 
143132
 
-
 
143133
    public Object getFieldValue(_Fields field) {
-
 
143134
      switch (field) {
-
 
143135
      case SUCCESS:
-
 
143136
        return getSuccess();
-
 
143137
 
-
 
143138
      case CEX:
-
 
143139
        return getCex();
-
 
143140
 
-
 
143141
      }
-
 
143142
      throw new IllegalStateException();
-
 
143143
    }
-
 
143144
 
-
 
143145
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
143146
    public boolean isSet(_Fields field) {
-
 
143147
      if (field == null) {
-
 
143148
        throw new IllegalArgumentException();
-
 
143149
      }
-
 
143150
 
-
 
143151
      switch (field) {
-
 
143152
      case SUCCESS:
-
 
143153
        return isSetSuccess();
-
 
143154
      case CEX:
-
 
143155
        return isSetCex();
-
 
143156
      }
-
 
143157
      throw new IllegalStateException();
-
 
143158
    }
-
 
143159
 
-
 
143160
    @Override
-
 
143161
    public boolean equals(Object that) {
-
 
143162
      if (that == null)
-
 
143163
        return false;
-
 
143164
      if (that instanceof getWarrantyInfoForItem_result)
-
 
143165
        return this.equals((getWarrantyInfoForItem_result)that);
-
 
143166
      return false;
-
 
143167
    }
-
 
143168
 
-
 
143169
    public boolean equals(getWarrantyInfoForItem_result that) {
-
 
143170
      if (that == null)
-
 
143171
        return false;
-
 
143172
 
-
 
143173
      boolean this_present_success = true && this.isSetSuccess();
-
 
143174
      boolean that_present_success = true && that.isSetSuccess();
-
 
143175
      if (this_present_success || that_present_success) {
-
 
143176
        if (!(this_present_success && that_present_success))
-
 
143177
          return false;
-
 
143178
        if (!this.success.equals(that.success))
-
 
143179
          return false;
-
 
143180
      }
-
 
143181
 
-
 
143182
      boolean this_present_cex = true && this.isSetCex();
-
 
143183
      boolean that_present_cex = true && that.isSetCex();
-
 
143184
      if (this_present_cex || that_present_cex) {
-
 
143185
        if (!(this_present_cex && that_present_cex))
-
 
143186
          return false;
-
 
143187
        if (!this.cex.equals(that.cex))
-
 
143188
          return false;
-
 
143189
      }
-
 
143190
 
-
 
143191
      return true;
-
 
143192
    }
-
 
143193
 
-
 
143194
    @Override
-
 
143195
    public int hashCode() {
-
 
143196
      return 0;
-
 
143197
    }
-
 
143198
 
-
 
143199
    public int compareTo(getWarrantyInfoForItem_result other) {
-
 
143200
      if (!getClass().equals(other.getClass())) {
-
 
143201
        return getClass().getName().compareTo(other.getClass().getName());
-
 
143202
      }
-
 
143203
 
-
 
143204
      int lastComparison = 0;
-
 
143205
      getWarrantyInfoForItem_result typedOther = (getWarrantyInfoForItem_result)other;
-
 
143206
 
-
 
143207
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
143208
      if (lastComparison != 0) {
-
 
143209
        return lastComparison;
-
 
143210
      }
-
 
143211
      if (isSetSuccess()) {
-
 
143212
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
143213
        if (lastComparison != 0) {
-
 
143214
          return lastComparison;
-
 
143215
        }
-
 
143216
      }
-
 
143217
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
-
 
143218
      if (lastComparison != 0) {
-
 
143219
        return lastComparison;
-
 
143220
      }
-
 
143221
      if (isSetCex()) {
-
 
143222
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
-
 
143223
        if (lastComparison != 0) {
-
 
143224
          return lastComparison;
-
 
143225
        }
-
 
143226
      }
-
 
143227
      return 0;
-
 
143228
    }
-
 
143229
 
-
 
143230
    public _Fields fieldForId(int fieldId) {
-
 
143231
      return _Fields.findByThriftId(fieldId);
-
 
143232
    }
-
 
143233
 
-
 
143234
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
143235
      org.apache.thrift.protocol.TField field;
-
 
143236
      iprot.readStructBegin();
-
 
143237
      while (true)
-
 
143238
      {
-
 
143239
        field = iprot.readFieldBegin();
-
 
143240
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
143241
          break;
-
 
143242
        }
-
 
143243
        switch (field.id) {
-
 
143244
          case 0: // SUCCESS
-
 
143245
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
143246
              {
-
 
143247
                org.apache.thrift.protocol.TMap _map534 = iprot.readMapBegin();
-
 
143248
                this.success = new HashMap<String,Long>(2*_map534.size);
-
 
143249
                for (int _i535 = 0; _i535 < _map534.size; ++_i535)
-
 
143250
                {
-
 
143251
                  String _key536; // required
-
 
143252
                  long _val537; // required
-
 
143253
                  _key536 = iprot.readString();
-
 
143254
                  _val537 = iprot.readI64();
-
 
143255
                  this.success.put(_key536, _val537);
-
 
143256
                }
-
 
143257
                iprot.readMapEnd();
-
 
143258
              }
-
 
143259
            } else { 
-
 
143260
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
143261
            }
-
 
143262
            break;
-
 
143263
          case 1: // CEX
-
 
143264
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
143265
              this.cex = new CatalogServiceException();
-
 
143266
              this.cex.read(iprot);
-
 
143267
            } else { 
-
 
143268
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
143269
            }
-
 
143270
            break;
-
 
143271
          default:
-
 
143272
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
143273
        }
-
 
143274
        iprot.readFieldEnd();
-
 
143275
      }
-
 
143276
      iprot.readStructEnd();
-
 
143277
      validate();
-
 
143278
    }
-
 
143279
 
-
 
143280
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
143281
      oprot.writeStructBegin(STRUCT_DESC);
-
 
143282
 
-
 
143283
      if (this.isSetSuccess()) {
-
 
143284
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
143285
        {
-
 
143286
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.success.size()));
-
 
143287
          for (Map.Entry<String, Long> _iter538 : this.success.entrySet())
-
 
143288
          {
-
 
143289
            oprot.writeString(_iter538.getKey());
-
 
143290
            oprot.writeI64(_iter538.getValue());
-
 
143291
          }
-
 
143292
          oprot.writeMapEnd();
-
 
143293
        }
-
 
143294
        oprot.writeFieldEnd();
-
 
143295
      } else if (this.isSetCex()) {
-
 
143296
        oprot.writeFieldBegin(CEX_FIELD_DESC);
-
 
143297
        this.cex.write(oprot);
-
 
143298
        oprot.writeFieldEnd();
-
 
143299
      }
-
 
143300
      oprot.writeFieldStop();
-
 
143301
      oprot.writeStructEnd();
-
 
143302
    }
-
 
143303
 
-
 
143304
    @Override
-
 
143305
    public String toString() {
-
 
143306
      StringBuilder sb = new StringBuilder("getWarrantyInfoForItem_result(");
-
 
143307
      boolean first = true;
-
 
143308
 
-
 
143309
      sb.append("success:");
-
 
143310
      if (this.success == null) {
-
 
143311
        sb.append("null");
-
 
143312
      } else {
-
 
143313
        sb.append(this.success);
-
 
143314
      }
-
 
143315
      first = false;
-
 
143316
      if (!first) sb.append(", ");
-
 
143317
      sb.append("cex:");
-
 
143318
      if (this.cex == null) {
-
 
143319
        sb.append("null");
-
 
143320
      } else {
-
 
143321
        sb.append(this.cex);
142413
      }
143322
      }
142414
      first = false;
143323
      first = false;
142415
      sb.append(")");
143324
      sb.append(")");
142416
      return sb.toString();
143325
      return sb.toString();
142417
    }
143326
    }