Subversion Repositories SmartDukaan

Rev

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

Rev 11653 Rev 11905
Line 550... Line 550...
550
 
550
 
551
    public List<Long> getPrivateDealsCatalogIds(long beginIndex, long totalItems) throws CatalogServiceException, org.apache.thrift.TException;
551
    public List<Long> getPrivateDealsCatalogIds(long beginIndex, long totalItems) throws CatalogServiceException, org.apache.thrift.TException;
552
 
552
 
553
    public int getPrivateDealsCount() throws org.apache.thrift.TException;
553
    public int getPrivateDealsCount() throws org.apache.thrift.TException;
554
 
554
 
-
 
555
    public AmazonOutOfSync getAmazonOutSyncItems(long item_id) throws org.apache.thrift.TException;
-
 
556
 
-
 
557
    public List<PdPriceComp> getAllPrivateDealsComparison() throws org.apache.thrift.TException;
-
 
558
 
555
  }
559
  }
556
 
560
 
557
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
561
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
558
 
562
 
559
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
563
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 884... Line 888...
884
 
888
 
885
    public void getPrivateDealsCatalogIds(long beginIndex, long totalItems, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrivateDealsCatalogIds_call> resultHandler) throws org.apache.thrift.TException;
889
    public void getPrivateDealsCatalogIds(long beginIndex, long totalItems, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrivateDealsCatalogIds_call> resultHandler) throws org.apache.thrift.TException;
886
 
890
 
887
    public void getPrivateDealsCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrivateDealsCount_call> resultHandler) throws org.apache.thrift.TException;
891
    public void getPrivateDealsCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrivateDealsCount_call> resultHandler) throws org.apache.thrift.TException;
888
 
892
 
-
 
893
    public void getAmazonOutSyncItems(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonOutSyncItems_call> resultHandler) throws org.apache.thrift.TException;
-
 
894
 
-
 
895
    public void getAllPrivateDealsComparison(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllPrivateDealsComparison_call> resultHandler) throws org.apache.thrift.TException;
-
 
896
 
889
  }
897
  }
890
 
898
 
891
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
899
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
892
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
900
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
893
      public Factory() {}
901
      public Factory() {}
Line 4816... Line 4824...
4816
        return result.success;
4824
        return result.success;
4817
      }
4825
      }
4818
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPrivateDealsCount failed: unknown result");
4826
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPrivateDealsCount failed: unknown result");
4819
    }
4827
    }
4820
 
4828
 
-
 
4829
    public AmazonOutOfSync getAmazonOutSyncItems(long item_id) throws org.apache.thrift.TException
-
 
4830
    {
-
 
4831
      send_getAmazonOutSyncItems(item_id);
-
 
4832
      return recv_getAmazonOutSyncItems();
-
 
4833
    }
-
 
4834
 
-
 
4835
    public void send_getAmazonOutSyncItems(long item_id) throws org.apache.thrift.TException
-
 
4836
    {
-
 
4837
      getAmazonOutSyncItems_args args = new getAmazonOutSyncItems_args();
-
 
4838
      args.setItem_id(item_id);
-
 
4839
      sendBase("getAmazonOutSyncItems", args);
-
 
4840
    }
-
 
4841
 
-
 
4842
    public AmazonOutOfSync recv_getAmazonOutSyncItems() throws org.apache.thrift.TException
-
 
4843
    {
-
 
4844
      getAmazonOutSyncItems_result result = new getAmazonOutSyncItems_result();
-
 
4845
      receiveBase(result, "getAmazonOutSyncItems");
-
 
4846
      if (result.isSetSuccess()) {
-
 
4847
        return result.success;
-
 
4848
      }
-
 
4849
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAmazonOutSyncItems failed: unknown result");
-
 
4850
    }
-
 
4851
 
-
 
4852
    public List<PdPriceComp> getAllPrivateDealsComparison() throws org.apache.thrift.TException
-
 
4853
    {
-
 
4854
      send_getAllPrivateDealsComparison();
-
 
4855
      return recv_getAllPrivateDealsComparison();
-
 
4856
    }
-
 
4857
 
-
 
4858
    public void send_getAllPrivateDealsComparison() throws org.apache.thrift.TException
-
 
4859
    {
-
 
4860
      getAllPrivateDealsComparison_args args = new getAllPrivateDealsComparison_args();
-
 
4861
      sendBase("getAllPrivateDealsComparison", args);
-
 
4862
    }
-
 
4863
 
-
 
4864
    public List<PdPriceComp> recv_getAllPrivateDealsComparison() throws org.apache.thrift.TException
-
 
4865
    {
-
 
4866
      getAllPrivateDealsComparison_result result = new getAllPrivateDealsComparison_result();
-
 
4867
      receiveBase(result, "getAllPrivateDealsComparison");
-
 
4868
      if (result.isSetSuccess()) {
-
 
4869
        return result.success;
-
 
4870
      }
-
 
4871
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllPrivateDealsComparison failed: unknown result");
-
 
4872
    }
-
 
4873
 
4821
  }
4874
  }
4822
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4875
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4823
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4876
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4824
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4877
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4825
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
4878
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 10270... Line 10323...
10270
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10323
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10271
        return (new Client(prot)).recv_getPrivateDealsCount();
10324
        return (new Client(prot)).recv_getPrivateDealsCount();
10272
      }
10325
      }
10273
    }
10326
    }
10274
 
10327
 
-
 
10328
    public void getAmazonOutSyncItems(long item_id, org.apache.thrift.async.AsyncMethodCallback<getAmazonOutSyncItems_call> resultHandler) throws org.apache.thrift.TException {
-
 
10329
      checkReady();
-
 
10330
      getAmazonOutSyncItems_call method_call = new getAmazonOutSyncItems_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
-
 
10331
      this.___currentMethod = method_call;
-
 
10332
      ___manager.call(method_call);
-
 
10333
    }
-
 
10334
 
-
 
10335
    public static class getAmazonOutSyncItems_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
10336
      private long item_id;
-
 
10337
      public getAmazonOutSyncItems_call(long item_id, org.apache.thrift.async.AsyncMethodCallback<getAmazonOutSyncItems_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 {
-
 
10338
        super(client, protocolFactory, transport, resultHandler, false);
-
 
10339
        this.item_id = item_id;
-
 
10340
      }
-
 
10341
 
-
 
10342
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
10343
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAmazonOutSyncItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
10344
        getAmazonOutSyncItems_args args = new getAmazonOutSyncItems_args();
-
 
10345
        args.setItem_id(item_id);
-
 
10346
        args.write(prot);
-
 
10347
        prot.writeMessageEnd();
-
 
10348
      }
-
 
10349
 
-
 
10350
      public AmazonOutOfSync getResult() throws org.apache.thrift.TException {
-
 
10351
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
10352
          throw new IllegalStateException("Method call not finished!");
-
 
10353
        }
-
 
10354
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
10355
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
10356
        return (new Client(prot)).recv_getAmazonOutSyncItems();
-
 
10357
      }
-
 
10358
    }
-
 
10359
 
-
 
10360
    public void getAllPrivateDealsComparison(org.apache.thrift.async.AsyncMethodCallback<getAllPrivateDealsComparison_call> resultHandler) throws org.apache.thrift.TException {
-
 
10361
      checkReady();
-
 
10362
      getAllPrivateDealsComparison_call method_call = new getAllPrivateDealsComparison_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
10363
      this.___currentMethod = method_call;
-
 
10364
      ___manager.call(method_call);
-
 
10365
    }
-
 
10366
 
-
 
10367
    public static class getAllPrivateDealsComparison_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
10368
      public getAllPrivateDealsComparison_call(org.apache.thrift.async.AsyncMethodCallback<getAllPrivateDealsComparison_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 {
-
 
10369
        super(client, protocolFactory, transport, resultHandler, false);
-
 
10370
      }
-
 
10371
 
-
 
10372
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
10373
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllPrivateDealsComparison", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
10374
        getAllPrivateDealsComparison_args args = new getAllPrivateDealsComparison_args();
-
 
10375
        args.write(prot);
-
 
10376
        prot.writeMessageEnd();
-
 
10377
      }
-
 
10378
 
-
 
10379
      public List<PdPriceComp> getResult() throws org.apache.thrift.TException {
-
 
10380
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
10381
          throw new IllegalStateException("Method call not finished!");
-
 
10382
        }
-
 
10383
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
10384
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
10385
        return (new Client(prot)).recv_getAllPrivateDealsComparison();
-
 
10386
      }
-
 
10387
    }
-
 
10388
 
10275
  }
10389
  }
10276
 
10390
 
10277
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
10391
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
10278
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
10392
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
10279
    public Processor(I iface) {
10393
    public Processor(I iface) {
Line 10448... Line 10562...
10448
      processMap.put("getPrivateDealItems", new getPrivateDealItems());
10562
      processMap.put("getPrivateDealItems", new getPrivateDealItems());
10449
      processMap.put("getAllActivePrivateDeals", new getAllActivePrivateDeals());
10563
      processMap.put("getAllActivePrivateDeals", new getAllActivePrivateDeals());
10450
      processMap.put("addOrUpdatePrivateDeal", new addOrUpdatePrivateDeal());
10564
      processMap.put("addOrUpdatePrivateDeal", new addOrUpdatePrivateDeal());
10451
      processMap.put("getPrivateDealsCatalogIds", new getPrivateDealsCatalogIds());
10565
      processMap.put("getPrivateDealsCatalogIds", new getPrivateDealsCatalogIds());
10452
      processMap.put("getPrivateDealsCount", new getPrivateDealsCount());
10566
      processMap.put("getPrivateDealsCount", new getPrivateDealsCount());
-
 
10567
      processMap.put("getAmazonOutSyncItems", new getAmazonOutSyncItems());
-
 
10568
      processMap.put("getAllPrivateDealsComparison", new getAllPrivateDealsComparison());
10453
      return processMap;
10569
      return processMap;
10454
    }
10570
    }
10455
 
10571
 
10456
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
10572
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
10457
      public addItem() {
10573
      public addItem() {
Line 13319... Line 13435...
13319
        result.setSuccessIsSet(true);
13435
        result.setSuccessIsSet(true);
13320
        return result;
13436
        return result;
13321
      }
13437
      }
13322
    }
13438
    }
13323
 
13439
 
-
 
13440
    private static class getAmazonOutSyncItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAmazonOutSyncItems_args> {
-
 
13441
      public getAmazonOutSyncItems() {
-
 
13442
        super("getAmazonOutSyncItems");
-
 
13443
      }
-
 
13444
 
-
 
13445
      protected getAmazonOutSyncItems_args getEmptyArgsInstance() {
-
 
13446
        return new getAmazonOutSyncItems_args();
-
 
13447
      }
-
 
13448
 
-
 
13449
      protected getAmazonOutSyncItems_result getResult(I iface, getAmazonOutSyncItems_args args) throws org.apache.thrift.TException {
-
 
13450
        getAmazonOutSyncItems_result result = new getAmazonOutSyncItems_result();
-
 
13451
        result.success = iface.getAmazonOutSyncItems(args.item_id);
-
 
13452
        return result;
-
 
13453
      }
-
 
13454
    }
-
 
13455
 
-
 
13456
    private static class getAllPrivateDealsComparison<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllPrivateDealsComparison_args> {
-
 
13457
      public getAllPrivateDealsComparison() {
-
 
13458
        super("getAllPrivateDealsComparison");
-
 
13459
      }
-
 
13460
 
-
 
13461
      protected getAllPrivateDealsComparison_args getEmptyArgsInstance() {
-
 
13462
        return new getAllPrivateDealsComparison_args();
-
 
13463
      }
-
 
13464
 
-
 
13465
      protected getAllPrivateDealsComparison_result getResult(I iface, getAllPrivateDealsComparison_args args) throws org.apache.thrift.TException {
-
 
13466
        getAllPrivateDealsComparison_result result = new getAllPrivateDealsComparison_result();
-
 
13467
        result.success = iface.getAllPrivateDealsComparison();
-
 
13468
        return result;
-
 
13469
      }
-
 
13470
    }
-
 
13471
 
13324
  }
13472
  }
13325
 
13473
 
13326
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
13474
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
13327
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
13475
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
13328
 
13476
 
Line 119477... Line 119625...
119477
      first = false;
119625
      first = false;
119478
      sb.append(")");
119626
      sb.append(")");
119479
      return sb.toString();
119627
      return sb.toString();
119480
    }
119628
    }
119481
 
119629
 
-
 
119630
    public void validate() throws org.apache.thrift.TException {
-
 
119631
      // check for required fields
-
 
119632
    }
-
 
119633
 
-
 
119634
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
119635
      try {
-
 
119636
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
119637
      } catch (org.apache.thrift.TException te) {
-
 
119638
        throw new java.io.IOException(te);
-
 
119639
      }
-
 
119640
    }
-
 
119641
 
-
 
119642
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
119643
      try {
-
 
119644
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
119645
      } catch (org.apache.thrift.TException te) {
-
 
119646
        throw new java.io.IOException(te);
-
 
119647
      }
-
 
119648
    }
-
 
119649
 
-
 
119650
  }
-
 
119651
 
-
 
119652
  public static class getAmazonOutSyncItems_args implements org.apache.thrift.TBase<getAmazonOutSyncItems_args, getAmazonOutSyncItems_args._Fields>, java.io.Serializable, Cloneable   {
-
 
119653
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonOutSyncItems_args");
-
 
119654
 
-
 
119655
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
119656
 
-
 
119657
    private long item_id; // required
-
 
119658
 
-
 
119659
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
119660
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
119661
      ITEM_ID((short)1, "item_id");
-
 
119662
 
-
 
119663
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
119664
 
-
 
119665
      static {
-
 
119666
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
119667
          byName.put(field.getFieldName(), field);
-
 
119668
        }
-
 
119669
      }
-
 
119670
 
-
 
119671
      /**
-
 
119672
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
119673
       */
-
 
119674
      public static _Fields findByThriftId(int fieldId) {
-
 
119675
        switch(fieldId) {
-
 
119676
          case 1: // ITEM_ID
-
 
119677
            return ITEM_ID;
-
 
119678
          default:
-
 
119679
            return null;
-
 
119680
        }
-
 
119681
      }
-
 
119682
 
-
 
119683
      /**
-
 
119684
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
119685
       * if it is not found.
-
 
119686
       */
-
 
119687
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
119688
        _Fields fields = findByThriftId(fieldId);
-
 
119689
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
119690
        return fields;
-
 
119691
      }
-
 
119692
 
-
 
119693
      /**
-
 
119694
       * Find the _Fields constant that matches name, or null if its not found.
-
 
119695
       */
-
 
119696
      public static _Fields findByName(String name) {
-
 
119697
        return byName.get(name);
-
 
119698
      }
-
 
119699
 
-
 
119700
      private final short _thriftId;
-
 
119701
      private final String _fieldName;
-
 
119702
 
-
 
119703
      _Fields(short thriftId, String fieldName) {
-
 
119704
        _thriftId = thriftId;
-
 
119705
        _fieldName = fieldName;
-
 
119706
      }
-
 
119707
 
-
 
119708
      public short getThriftFieldId() {
-
 
119709
        return _thriftId;
-
 
119710
      }
-
 
119711
 
-
 
119712
      public String getFieldName() {
-
 
119713
        return _fieldName;
-
 
119714
      }
-
 
119715
    }
-
 
119716
 
-
 
119717
    // isset id assignments
-
 
119718
    private static final int __ITEM_ID_ISSET_ID = 0;
-
 
119719
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
119720
 
-
 
119721
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
119722
    static {
-
 
119723
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
119724
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
119725
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
119726
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
119727
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonOutSyncItems_args.class, metaDataMap);
-
 
119728
    }
-
 
119729
 
-
 
119730
    public getAmazonOutSyncItems_args() {
-
 
119731
    }
-
 
119732
 
-
 
119733
    public getAmazonOutSyncItems_args(
-
 
119734
      long item_id)
-
 
119735
    {
-
 
119736
      this();
-
 
119737
      this.item_id = item_id;
-
 
119738
      setItem_idIsSet(true);
-
 
119739
    }
-
 
119740
 
-
 
119741
    /**
-
 
119742
     * Performs a deep copy on <i>other</i>.
-
 
119743
     */
-
 
119744
    public getAmazonOutSyncItems_args(getAmazonOutSyncItems_args other) {
-
 
119745
      __isset_bit_vector.clear();
-
 
119746
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
119747
      this.item_id = other.item_id;
-
 
119748
    }
-
 
119749
 
-
 
119750
    public getAmazonOutSyncItems_args deepCopy() {
-
 
119751
      return new getAmazonOutSyncItems_args(this);
-
 
119752
    }
-
 
119753
 
-
 
119754
    @Override
-
 
119755
    public void clear() {
-
 
119756
      setItem_idIsSet(false);
-
 
119757
      this.item_id = 0;
-
 
119758
    }
-
 
119759
 
-
 
119760
    public long getItem_id() {
-
 
119761
      return this.item_id;
-
 
119762
    }
-
 
119763
 
-
 
119764
    public void setItem_id(long item_id) {
-
 
119765
      this.item_id = item_id;
-
 
119766
      setItem_idIsSet(true);
-
 
119767
    }
-
 
119768
 
-
 
119769
    public void unsetItem_id() {
-
 
119770
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
-
 
119771
    }
-
 
119772
 
-
 
119773
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
-
 
119774
    public boolean isSetItem_id() {
-
 
119775
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
-
 
119776
    }
-
 
119777
 
-
 
119778
    public void setItem_idIsSet(boolean value) {
-
 
119779
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
-
 
119780
    }
-
 
119781
 
-
 
119782
    public void setFieldValue(_Fields field, Object value) {
-
 
119783
      switch (field) {
-
 
119784
      case ITEM_ID:
-
 
119785
        if (value == null) {
-
 
119786
          unsetItem_id();
-
 
119787
        } else {
-
 
119788
          setItem_id((Long)value);
-
 
119789
        }
-
 
119790
        break;
-
 
119791
 
-
 
119792
      }
-
 
119793
    }
-
 
119794
 
-
 
119795
    public Object getFieldValue(_Fields field) {
-
 
119796
      switch (field) {
-
 
119797
      case ITEM_ID:
-
 
119798
        return Long.valueOf(getItem_id());
-
 
119799
 
-
 
119800
      }
-
 
119801
      throw new IllegalStateException();
-
 
119802
    }
-
 
119803
 
-
 
119804
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
119805
    public boolean isSet(_Fields field) {
-
 
119806
      if (field == null) {
-
 
119807
        throw new IllegalArgumentException();
-
 
119808
      }
-
 
119809
 
-
 
119810
      switch (field) {
-
 
119811
      case ITEM_ID:
-
 
119812
        return isSetItem_id();
-
 
119813
      }
-
 
119814
      throw new IllegalStateException();
-
 
119815
    }
-
 
119816
 
-
 
119817
    @Override
-
 
119818
    public boolean equals(Object that) {
-
 
119819
      if (that == null)
-
 
119820
        return false;
-
 
119821
      if (that instanceof getAmazonOutSyncItems_args)
-
 
119822
        return this.equals((getAmazonOutSyncItems_args)that);
-
 
119823
      return false;
-
 
119824
    }
-
 
119825
 
-
 
119826
    public boolean equals(getAmazonOutSyncItems_args that) {
-
 
119827
      if (that == null)
-
 
119828
        return false;
-
 
119829
 
-
 
119830
      boolean this_present_item_id = true;
-
 
119831
      boolean that_present_item_id = true;
-
 
119832
      if (this_present_item_id || that_present_item_id) {
-
 
119833
        if (!(this_present_item_id && that_present_item_id))
-
 
119834
          return false;
-
 
119835
        if (this.item_id != that.item_id)
-
 
119836
          return false;
-
 
119837
      }
-
 
119838
 
-
 
119839
      return true;
-
 
119840
    }
-
 
119841
 
-
 
119842
    @Override
-
 
119843
    public int hashCode() {
-
 
119844
      return 0;
-
 
119845
    }
-
 
119846
 
-
 
119847
    public int compareTo(getAmazonOutSyncItems_args other) {
-
 
119848
      if (!getClass().equals(other.getClass())) {
-
 
119849
        return getClass().getName().compareTo(other.getClass().getName());
-
 
119850
      }
-
 
119851
 
-
 
119852
      int lastComparison = 0;
-
 
119853
      getAmazonOutSyncItems_args typedOther = (getAmazonOutSyncItems_args)other;
-
 
119854
 
-
 
119855
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
-
 
119856
      if (lastComparison != 0) {
-
 
119857
        return lastComparison;
-
 
119858
      }
-
 
119859
      if (isSetItem_id()) {
-
 
119860
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
-
 
119861
        if (lastComparison != 0) {
-
 
119862
          return lastComparison;
-
 
119863
        }
-
 
119864
      }
-
 
119865
      return 0;
-
 
119866
    }
-
 
119867
 
-
 
119868
    public _Fields fieldForId(int fieldId) {
-
 
119869
      return _Fields.findByThriftId(fieldId);
-
 
119870
    }
-
 
119871
 
-
 
119872
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
119873
      org.apache.thrift.protocol.TField field;
-
 
119874
      iprot.readStructBegin();
-
 
119875
      while (true)
-
 
119876
      {
-
 
119877
        field = iprot.readFieldBegin();
-
 
119878
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
119879
          break;
-
 
119880
        }
-
 
119881
        switch (field.id) {
-
 
119882
          case 1: // ITEM_ID
-
 
119883
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
119884
              this.item_id = iprot.readI64();
-
 
119885
              setItem_idIsSet(true);
-
 
119886
            } else { 
-
 
119887
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
119888
            }
-
 
119889
            break;
-
 
119890
          default:
-
 
119891
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
119892
        }
-
 
119893
        iprot.readFieldEnd();
-
 
119894
      }
-
 
119895
      iprot.readStructEnd();
-
 
119896
      validate();
-
 
119897
    }
-
 
119898
 
-
 
119899
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
119900
      validate();
-
 
119901
 
-
 
119902
      oprot.writeStructBegin(STRUCT_DESC);
-
 
119903
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
119904
      oprot.writeI64(this.item_id);
-
 
119905
      oprot.writeFieldEnd();
-
 
119906
      oprot.writeFieldStop();
-
 
119907
      oprot.writeStructEnd();
-
 
119908
    }
-
 
119909
 
-
 
119910
    @Override
-
 
119911
    public String toString() {
-
 
119912
      StringBuilder sb = new StringBuilder("getAmazonOutSyncItems_args(");
-
 
119913
      boolean first = true;
-
 
119914
 
-
 
119915
      sb.append("item_id:");
-
 
119916
      sb.append(this.item_id);
-
 
119917
      first = false;
-
 
119918
      sb.append(")");
-
 
119919
      return sb.toString();
-
 
119920
    }
-
 
119921
 
-
 
119922
    public void validate() throws org.apache.thrift.TException {
-
 
119923
      // check for required fields
-
 
119924
    }
-
 
119925
 
-
 
119926
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
119927
      try {
-
 
119928
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
119929
      } catch (org.apache.thrift.TException te) {
-
 
119930
        throw new java.io.IOException(te);
-
 
119931
      }
-
 
119932
    }
-
 
119933
 
-
 
119934
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
119935
      try {
-
 
119936
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
119937
        __isset_bit_vector = new BitSet(1);
-
 
119938
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
119939
      } catch (org.apache.thrift.TException te) {
-
 
119940
        throw new java.io.IOException(te);
-
 
119941
      }
-
 
119942
    }
-
 
119943
 
-
 
119944
  }
-
 
119945
 
-
 
119946
  public static class getAmazonOutSyncItems_result implements org.apache.thrift.TBase<getAmazonOutSyncItems_result, getAmazonOutSyncItems_result._Fields>, java.io.Serializable, Cloneable   {
-
 
119947
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonOutSyncItems_result");
-
 
119948
 
-
 
119949
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
119950
 
-
 
119951
    private AmazonOutOfSync success; // required
-
 
119952
 
-
 
119953
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
119954
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
119955
      SUCCESS((short)0, "success");
-
 
119956
 
-
 
119957
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
119958
 
-
 
119959
      static {
-
 
119960
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
119961
          byName.put(field.getFieldName(), field);
-
 
119962
        }
-
 
119963
      }
-
 
119964
 
-
 
119965
      /**
-
 
119966
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
119967
       */
-
 
119968
      public static _Fields findByThriftId(int fieldId) {
-
 
119969
        switch(fieldId) {
-
 
119970
          case 0: // SUCCESS
-
 
119971
            return SUCCESS;
-
 
119972
          default:
-
 
119973
            return null;
-
 
119974
        }
-
 
119975
      }
-
 
119976
 
-
 
119977
      /**
-
 
119978
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
119979
       * if it is not found.
-
 
119980
       */
-
 
119981
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
119982
        _Fields fields = findByThriftId(fieldId);
-
 
119983
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
119984
        return fields;
-
 
119985
      }
-
 
119986
 
-
 
119987
      /**
-
 
119988
       * Find the _Fields constant that matches name, or null if its not found.
-
 
119989
       */
-
 
119990
      public static _Fields findByName(String name) {
-
 
119991
        return byName.get(name);
-
 
119992
      }
-
 
119993
 
-
 
119994
      private final short _thriftId;
-
 
119995
      private final String _fieldName;
-
 
119996
 
-
 
119997
      _Fields(short thriftId, String fieldName) {
-
 
119998
        _thriftId = thriftId;
-
 
119999
        _fieldName = fieldName;
-
 
120000
      }
-
 
120001
 
-
 
120002
      public short getThriftFieldId() {
-
 
120003
        return _thriftId;
-
 
120004
      }
-
 
120005
 
-
 
120006
      public String getFieldName() {
-
 
120007
        return _fieldName;
-
 
120008
      }
-
 
120009
    }
-
 
120010
 
-
 
120011
    // isset id assignments
-
 
120012
 
-
 
120013
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
120014
    static {
-
 
120015
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
120016
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
120017
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonOutOfSync.class)));
-
 
120018
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
120019
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonOutSyncItems_result.class, metaDataMap);
-
 
120020
    }
-
 
120021
 
-
 
120022
    public getAmazonOutSyncItems_result() {
-
 
120023
    }
-
 
120024
 
-
 
120025
    public getAmazonOutSyncItems_result(
-
 
120026
      AmazonOutOfSync success)
-
 
120027
    {
-
 
120028
      this();
-
 
120029
      this.success = success;
-
 
120030
    }
-
 
120031
 
-
 
120032
    /**
-
 
120033
     * Performs a deep copy on <i>other</i>.
-
 
120034
     */
-
 
120035
    public getAmazonOutSyncItems_result(getAmazonOutSyncItems_result other) {
-
 
120036
      if (other.isSetSuccess()) {
-
 
120037
        this.success = new AmazonOutOfSync(other.success);
-
 
120038
      }
-
 
120039
    }
-
 
120040
 
-
 
120041
    public getAmazonOutSyncItems_result deepCopy() {
-
 
120042
      return new getAmazonOutSyncItems_result(this);
-
 
120043
    }
-
 
120044
 
-
 
120045
    @Override
-
 
120046
    public void clear() {
-
 
120047
      this.success = null;
-
 
120048
    }
-
 
120049
 
-
 
120050
    public AmazonOutOfSync getSuccess() {
-
 
120051
      return this.success;
-
 
120052
    }
-
 
120053
 
-
 
120054
    public void setSuccess(AmazonOutOfSync success) {
-
 
120055
      this.success = success;
-
 
120056
    }
-
 
120057
 
-
 
120058
    public void unsetSuccess() {
-
 
120059
      this.success = null;
-
 
120060
    }
-
 
120061
 
-
 
120062
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
120063
    public boolean isSetSuccess() {
-
 
120064
      return this.success != null;
-
 
120065
    }
-
 
120066
 
-
 
120067
    public void setSuccessIsSet(boolean value) {
-
 
120068
      if (!value) {
-
 
120069
        this.success = null;
-
 
120070
      }
-
 
120071
    }
-
 
120072
 
-
 
120073
    public void setFieldValue(_Fields field, Object value) {
-
 
120074
      switch (field) {
-
 
120075
      case SUCCESS:
-
 
120076
        if (value == null) {
-
 
120077
          unsetSuccess();
-
 
120078
        } else {
-
 
120079
          setSuccess((AmazonOutOfSync)value);
-
 
120080
        }
-
 
120081
        break;
-
 
120082
 
-
 
120083
      }
-
 
120084
    }
-
 
120085
 
-
 
120086
    public Object getFieldValue(_Fields field) {
-
 
120087
      switch (field) {
-
 
120088
      case SUCCESS:
-
 
120089
        return getSuccess();
-
 
120090
 
-
 
120091
      }
-
 
120092
      throw new IllegalStateException();
-
 
120093
    }
-
 
120094
 
-
 
120095
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
120096
    public boolean isSet(_Fields field) {
-
 
120097
      if (field == null) {
-
 
120098
        throw new IllegalArgumentException();
-
 
120099
      }
-
 
120100
 
-
 
120101
      switch (field) {
-
 
120102
      case SUCCESS:
-
 
120103
        return isSetSuccess();
-
 
120104
      }
-
 
120105
      throw new IllegalStateException();
-
 
120106
    }
-
 
120107
 
-
 
120108
    @Override
-
 
120109
    public boolean equals(Object that) {
-
 
120110
      if (that == null)
-
 
120111
        return false;
-
 
120112
      if (that instanceof getAmazonOutSyncItems_result)
-
 
120113
        return this.equals((getAmazonOutSyncItems_result)that);
-
 
120114
      return false;
-
 
120115
    }
-
 
120116
 
-
 
120117
    public boolean equals(getAmazonOutSyncItems_result that) {
-
 
120118
      if (that == null)
-
 
120119
        return false;
-
 
120120
 
-
 
120121
      boolean this_present_success = true && this.isSetSuccess();
-
 
120122
      boolean that_present_success = true && that.isSetSuccess();
-
 
120123
      if (this_present_success || that_present_success) {
-
 
120124
        if (!(this_present_success && that_present_success))
-
 
120125
          return false;
-
 
120126
        if (!this.success.equals(that.success))
-
 
120127
          return false;
-
 
120128
      }
-
 
120129
 
-
 
120130
      return true;
-
 
120131
    }
-
 
120132
 
-
 
120133
    @Override
-
 
120134
    public int hashCode() {
-
 
120135
      return 0;
-
 
120136
    }
-
 
120137
 
-
 
120138
    public int compareTo(getAmazonOutSyncItems_result other) {
-
 
120139
      if (!getClass().equals(other.getClass())) {
-
 
120140
        return getClass().getName().compareTo(other.getClass().getName());
-
 
120141
      }
-
 
120142
 
-
 
120143
      int lastComparison = 0;
-
 
120144
      getAmazonOutSyncItems_result typedOther = (getAmazonOutSyncItems_result)other;
-
 
120145
 
-
 
120146
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
120147
      if (lastComparison != 0) {
-
 
120148
        return lastComparison;
-
 
120149
      }
-
 
120150
      if (isSetSuccess()) {
-
 
120151
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
120152
        if (lastComparison != 0) {
-
 
120153
          return lastComparison;
-
 
120154
        }
-
 
120155
      }
-
 
120156
      return 0;
-
 
120157
    }
-
 
120158
 
-
 
120159
    public _Fields fieldForId(int fieldId) {
-
 
120160
      return _Fields.findByThriftId(fieldId);
-
 
120161
    }
-
 
120162
 
-
 
120163
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
120164
      org.apache.thrift.protocol.TField field;
-
 
120165
      iprot.readStructBegin();
-
 
120166
      while (true)
-
 
120167
      {
-
 
120168
        field = iprot.readFieldBegin();
-
 
120169
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
120170
          break;
-
 
120171
        }
-
 
120172
        switch (field.id) {
-
 
120173
          case 0: // SUCCESS
-
 
120174
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
120175
              this.success = new AmazonOutOfSync();
-
 
120176
              this.success.read(iprot);
-
 
120177
            } else { 
-
 
120178
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
120179
            }
-
 
120180
            break;
-
 
120181
          default:
-
 
120182
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
120183
        }
-
 
120184
        iprot.readFieldEnd();
-
 
120185
      }
-
 
120186
      iprot.readStructEnd();
-
 
120187
      validate();
-
 
120188
    }
-
 
120189
 
-
 
120190
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
120191
      oprot.writeStructBegin(STRUCT_DESC);
-
 
120192
 
-
 
120193
      if (this.isSetSuccess()) {
-
 
120194
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
120195
        this.success.write(oprot);
-
 
120196
        oprot.writeFieldEnd();
-
 
120197
      }
-
 
120198
      oprot.writeFieldStop();
-
 
120199
      oprot.writeStructEnd();
-
 
120200
    }
-
 
120201
 
-
 
120202
    @Override
-
 
120203
    public String toString() {
-
 
120204
      StringBuilder sb = new StringBuilder("getAmazonOutSyncItems_result(");
-
 
120205
      boolean first = true;
-
 
120206
 
-
 
120207
      sb.append("success:");
-
 
120208
      if (this.success == null) {
-
 
120209
        sb.append("null");
-
 
120210
      } else {
-
 
120211
        sb.append(this.success);
-
 
120212
      }
-
 
120213
      first = false;
-
 
120214
      sb.append(")");
-
 
120215
      return sb.toString();
-
 
120216
    }
-
 
120217
 
-
 
120218
    public void validate() throws org.apache.thrift.TException {
-
 
120219
      // check for required fields
-
 
120220
    }
-
 
120221
 
-
 
120222
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
120223
      try {
-
 
120224
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
120225
      } catch (org.apache.thrift.TException te) {
-
 
120226
        throw new java.io.IOException(te);
-
 
120227
      }
-
 
120228
    }
-
 
120229
 
-
 
120230
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
120231
      try {
-
 
120232
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
120233
      } catch (org.apache.thrift.TException te) {
-
 
120234
        throw new java.io.IOException(te);
-
 
120235
      }
-
 
120236
    }
-
 
120237
 
-
 
120238
  }
-
 
120239
 
-
 
120240
  public static class getAllPrivateDealsComparison_args implements org.apache.thrift.TBase<getAllPrivateDealsComparison_args, getAllPrivateDealsComparison_args._Fields>, java.io.Serializable, Cloneable   {
-
 
120241
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPrivateDealsComparison_args");
-
 
120242
 
-
 
120243
 
-
 
120244
 
-
 
120245
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
120246
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
120247
;
-
 
120248
 
-
 
120249
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
120250
 
-
 
120251
      static {
-
 
120252
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
120253
          byName.put(field.getFieldName(), field);
-
 
120254
        }
-
 
120255
      }
-
 
120256
 
-
 
120257
      /**
-
 
120258
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
120259
       */
-
 
120260
      public static _Fields findByThriftId(int fieldId) {
-
 
120261
        switch(fieldId) {
-
 
120262
          default:
-
 
120263
            return null;
-
 
120264
        }
-
 
120265
      }
-
 
120266
 
-
 
120267
      /**
-
 
120268
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
120269
       * if it is not found.
-
 
120270
       */
-
 
120271
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
120272
        _Fields fields = findByThriftId(fieldId);
-
 
120273
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
120274
        return fields;
-
 
120275
      }
-
 
120276
 
-
 
120277
      /**
-
 
120278
       * Find the _Fields constant that matches name, or null if its not found.
-
 
120279
       */
-
 
120280
      public static _Fields findByName(String name) {
-
 
120281
        return byName.get(name);
-
 
120282
      }
-
 
120283
 
-
 
120284
      private final short _thriftId;
-
 
120285
      private final String _fieldName;
-
 
120286
 
-
 
120287
      _Fields(short thriftId, String fieldName) {
-
 
120288
        _thriftId = thriftId;
-
 
120289
        _fieldName = fieldName;
-
 
120290
      }
-
 
120291
 
-
 
120292
      public short getThriftFieldId() {
-
 
120293
        return _thriftId;
-
 
120294
      }
-
 
120295
 
-
 
120296
      public String getFieldName() {
-
 
120297
        return _fieldName;
-
 
120298
      }
-
 
120299
    }
-
 
120300
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
120301
    static {
-
 
120302
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
120303
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
120304
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPrivateDealsComparison_args.class, metaDataMap);
-
 
120305
    }
-
 
120306
 
-
 
120307
    public getAllPrivateDealsComparison_args() {
-
 
120308
    }
-
 
120309
 
-
 
120310
    /**
-
 
120311
     * Performs a deep copy on <i>other</i>.
-
 
120312
     */
-
 
120313
    public getAllPrivateDealsComparison_args(getAllPrivateDealsComparison_args other) {
-
 
120314
    }
-
 
120315
 
-
 
120316
    public getAllPrivateDealsComparison_args deepCopy() {
-
 
120317
      return new getAllPrivateDealsComparison_args(this);
-
 
120318
    }
-
 
120319
 
-
 
120320
    @Override
-
 
120321
    public void clear() {
-
 
120322
    }
-
 
120323
 
-
 
120324
    public void setFieldValue(_Fields field, Object value) {
-
 
120325
      switch (field) {
-
 
120326
      }
-
 
120327
    }
-
 
120328
 
-
 
120329
    public Object getFieldValue(_Fields field) {
-
 
120330
      switch (field) {
-
 
120331
      }
-
 
120332
      throw new IllegalStateException();
-
 
120333
    }
-
 
120334
 
-
 
120335
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
120336
    public boolean isSet(_Fields field) {
-
 
120337
      if (field == null) {
-
 
120338
        throw new IllegalArgumentException();
-
 
120339
      }
-
 
120340
 
-
 
120341
      switch (field) {
-
 
120342
      }
-
 
120343
      throw new IllegalStateException();
-
 
120344
    }
-
 
120345
 
-
 
120346
    @Override
-
 
120347
    public boolean equals(Object that) {
-
 
120348
      if (that == null)
-
 
120349
        return false;
-
 
120350
      if (that instanceof getAllPrivateDealsComparison_args)
-
 
120351
        return this.equals((getAllPrivateDealsComparison_args)that);
-
 
120352
      return false;
-
 
120353
    }
-
 
120354
 
-
 
120355
    public boolean equals(getAllPrivateDealsComparison_args that) {
-
 
120356
      if (that == null)
-
 
120357
        return false;
-
 
120358
 
-
 
120359
      return true;
-
 
120360
    }
-
 
120361
 
-
 
120362
    @Override
-
 
120363
    public int hashCode() {
-
 
120364
      return 0;
-
 
120365
    }
-
 
120366
 
-
 
120367
    public int compareTo(getAllPrivateDealsComparison_args other) {
-
 
120368
      if (!getClass().equals(other.getClass())) {
-
 
120369
        return getClass().getName().compareTo(other.getClass().getName());
-
 
120370
      }
-
 
120371
 
-
 
120372
      int lastComparison = 0;
-
 
120373
      getAllPrivateDealsComparison_args typedOther = (getAllPrivateDealsComparison_args)other;
-
 
120374
 
-
 
120375
      return 0;
-
 
120376
    }
-
 
120377
 
-
 
120378
    public _Fields fieldForId(int fieldId) {
-
 
120379
      return _Fields.findByThriftId(fieldId);
-
 
120380
    }
-
 
120381
 
-
 
120382
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
120383
      org.apache.thrift.protocol.TField field;
-
 
120384
      iprot.readStructBegin();
-
 
120385
      while (true)
-
 
120386
      {
-
 
120387
        field = iprot.readFieldBegin();
-
 
120388
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
120389
          break;
-
 
120390
        }
-
 
120391
        switch (field.id) {
-
 
120392
          default:
-
 
120393
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
120394
        }
-
 
120395
        iprot.readFieldEnd();
-
 
120396
      }
-
 
120397
      iprot.readStructEnd();
-
 
120398
      validate();
-
 
120399
    }
-
 
120400
 
-
 
120401
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
120402
      validate();
-
 
120403
 
-
 
120404
      oprot.writeStructBegin(STRUCT_DESC);
-
 
120405
      oprot.writeFieldStop();
-
 
120406
      oprot.writeStructEnd();
-
 
120407
    }
-
 
120408
 
-
 
120409
    @Override
-
 
120410
    public String toString() {
-
 
120411
      StringBuilder sb = new StringBuilder("getAllPrivateDealsComparison_args(");
-
 
120412
      boolean first = true;
-
 
120413
 
-
 
120414
      sb.append(")");
-
 
120415
      return sb.toString();
-
 
120416
    }
-
 
120417
 
-
 
120418
    public void validate() throws org.apache.thrift.TException {
-
 
120419
      // check for required fields
-
 
120420
    }
-
 
120421
 
-
 
120422
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
120423
      try {
-
 
120424
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
120425
      } catch (org.apache.thrift.TException te) {
-
 
120426
        throw new java.io.IOException(te);
-
 
120427
      }
-
 
120428
    }
-
 
120429
 
-
 
120430
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
120431
      try {
-
 
120432
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
120433
      } catch (org.apache.thrift.TException te) {
-
 
120434
        throw new java.io.IOException(te);
-
 
120435
      }
-
 
120436
    }
-
 
120437
 
-
 
120438
  }
-
 
120439
 
-
 
120440
  public static class getAllPrivateDealsComparison_result implements org.apache.thrift.TBase<getAllPrivateDealsComparison_result, getAllPrivateDealsComparison_result._Fields>, java.io.Serializable, Cloneable   {
-
 
120441
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPrivateDealsComparison_result");
-
 
120442
 
-
 
120443
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
120444
 
-
 
120445
    private List<PdPriceComp> success; // required
-
 
120446
 
-
 
120447
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
120448
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
120449
      SUCCESS((short)0, "success");
-
 
120450
 
-
 
120451
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
120452
 
-
 
120453
      static {
-
 
120454
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
120455
          byName.put(field.getFieldName(), field);
-
 
120456
        }
-
 
120457
      }
-
 
120458
 
-
 
120459
      /**
-
 
120460
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
120461
       */
-
 
120462
      public static _Fields findByThriftId(int fieldId) {
-
 
120463
        switch(fieldId) {
-
 
120464
          case 0: // SUCCESS
-
 
120465
            return SUCCESS;
-
 
120466
          default:
-
 
120467
            return null;
-
 
120468
        }
-
 
120469
      }
-
 
120470
 
-
 
120471
      /**
-
 
120472
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
120473
       * if it is not found.
-
 
120474
       */
-
 
120475
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
120476
        _Fields fields = findByThriftId(fieldId);
-
 
120477
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
120478
        return fields;
-
 
120479
      }
-
 
120480
 
-
 
120481
      /**
-
 
120482
       * Find the _Fields constant that matches name, or null if its not found.
-
 
120483
       */
-
 
120484
      public static _Fields findByName(String name) {
-
 
120485
        return byName.get(name);
-
 
120486
      }
-
 
120487
 
-
 
120488
      private final short _thriftId;
-
 
120489
      private final String _fieldName;
-
 
120490
 
-
 
120491
      _Fields(short thriftId, String fieldName) {
-
 
120492
        _thriftId = thriftId;
-
 
120493
        _fieldName = fieldName;
-
 
120494
      }
-
 
120495
 
-
 
120496
      public short getThriftFieldId() {
-
 
120497
        return _thriftId;
-
 
120498
      }
-
 
120499
 
-
 
120500
      public String getFieldName() {
-
 
120501
        return _fieldName;
-
 
120502
      }
-
 
120503
    }
-
 
120504
 
-
 
120505
    // isset id assignments
-
 
120506
 
-
 
120507
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
120508
    static {
-
 
120509
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
120510
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
120511
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
120512
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PdPriceComp.class))));
-
 
120513
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
120514
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPrivateDealsComparison_result.class, metaDataMap);
-
 
120515
    }
-
 
120516
 
-
 
120517
    public getAllPrivateDealsComparison_result() {
-
 
120518
    }
-
 
120519
 
-
 
120520
    public getAllPrivateDealsComparison_result(
-
 
120521
      List<PdPriceComp> success)
-
 
120522
    {
-
 
120523
      this();
-
 
120524
      this.success = success;
-
 
120525
    }
-
 
120526
 
-
 
120527
    /**
-
 
120528
     * Performs a deep copy on <i>other</i>.
-
 
120529
     */
-
 
120530
    public getAllPrivateDealsComparison_result(getAllPrivateDealsComparison_result other) {
-
 
120531
      if (other.isSetSuccess()) {
-
 
120532
        List<PdPriceComp> __this__success = new ArrayList<PdPriceComp>();
-
 
120533
        for (PdPriceComp other_element : other.success) {
-
 
120534
          __this__success.add(new PdPriceComp(other_element));
-
 
120535
        }
-
 
120536
        this.success = __this__success;
-
 
120537
      }
-
 
120538
    }
-
 
120539
 
-
 
120540
    public getAllPrivateDealsComparison_result deepCopy() {
-
 
120541
      return new getAllPrivateDealsComparison_result(this);
-
 
120542
    }
-
 
120543
 
-
 
120544
    @Override
-
 
120545
    public void clear() {
-
 
120546
      this.success = null;
-
 
120547
    }
-
 
120548
 
-
 
120549
    public int getSuccessSize() {
-
 
120550
      return (this.success == null) ? 0 : this.success.size();
-
 
120551
    }
-
 
120552
 
-
 
120553
    public java.util.Iterator<PdPriceComp> getSuccessIterator() {
-
 
120554
      return (this.success == null) ? null : this.success.iterator();
-
 
120555
    }
-
 
120556
 
-
 
120557
    public void addToSuccess(PdPriceComp elem) {
-
 
120558
      if (this.success == null) {
-
 
120559
        this.success = new ArrayList<PdPriceComp>();
-
 
120560
      }
-
 
120561
      this.success.add(elem);
-
 
120562
    }
-
 
120563
 
-
 
120564
    public List<PdPriceComp> getSuccess() {
-
 
120565
      return this.success;
-
 
120566
    }
-
 
120567
 
-
 
120568
    public void setSuccess(List<PdPriceComp> success) {
-
 
120569
      this.success = success;
-
 
120570
    }
-
 
120571
 
-
 
120572
    public void unsetSuccess() {
-
 
120573
      this.success = null;
-
 
120574
    }
-
 
120575
 
-
 
120576
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
120577
    public boolean isSetSuccess() {
-
 
120578
      return this.success != null;
-
 
120579
    }
-
 
120580
 
-
 
120581
    public void setSuccessIsSet(boolean value) {
-
 
120582
      if (!value) {
-
 
120583
        this.success = null;
-
 
120584
      }
-
 
120585
    }
-
 
120586
 
-
 
120587
    public void setFieldValue(_Fields field, Object value) {
-
 
120588
      switch (field) {
-
 
120589
      case SUCCESS:
-
 
120590
        if (value == null) {
-
 
120591
          unsetSuccess();
-
 
120592
        } else {
-
 
120593
          setSuccess((List<PdPriceComp>)value);
-
 
120594
        }
-
 
120595
        break;
-
 
120596
 
-
 
120597
      }
-
 
120598
    }
-
 
120599
 
-
 
120600
    public Object getFieldValue(_Fields field) {
-
 
120601
      switch (field) {
-
 
120602
      case SUCCESS:
-
 
120603
        return getSuccess();
-
 
120604
 
-
 
120605
      }
-
 
120606
      throw new IllegalStateException();
-
 
120607
    }
-
 
120608
 
-
 
120609
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
120610
    public boolean isSet(_Fields field) {
-
 
120611
      if (field == null) {
-
 
120612
        throw new IllegalArgumentException();
-
 
120613
      }
-
 
120614
 
-
 
120615
      switch (field) {
-
 
120616
      case SUCCESS:
-
 
120617
        return isSetSuccess();
-
 
120618
      }
-
 
120619
      throw new IllegalStateException();
-
 
120620
    }
-
 
120621
 
-
 
120622
    @Override
-
 
120623
    public boolean equals(Object that) {
-
 
120624
      if (that == null)
-
 
120625
        return false;
-
 
120626
      if (that instanceof getAllPrivateDealsComparison_result)
-
 
120627
        return this.equals((getAllPrivateDealsComparison_result)that);
-
 
120628
      return false;
-
 
120629
    }
-
 
120630
 
-
 
120631
    public boolean equals(getAllPrivateDealsComparison_result that) {
-
 
120632
      if (that == null)
-
 
120633
        return false;
-
 
120634
 
-
 
120635
      boolean this_present_success = true && this.isSetSuccess();
-
 
120636
      boolean that_present_success = true && that.isSetSuccess();
-
 
120637
      if (this_present_success || that_present_success) {
-
 
120638
        if (!(this_present_success && that_present_success))
-
 
120639
          return false;
-
 
120640
        if (!this.success.equals(that.success))
-
 
120641
          return false;
-
 
120642
      }
-
 
120643
 
-
 
120644
      return true;
-
 
120645
    }
-
 
120646
 
-
 
120647
    @Override
-
 
120648
    public int hashCode() {
-
 
120649
      return 0;
-
 
120650
    }
-
 
120651
 
-
 
120652
    public int compareTo(getAllPrivateDealsComparison_result other) {
-
 
120653
      if (!getClass().equals(other.getClass())) {
-
 
120654
        return getClass().getName().compareTo(other.getClass().getName());
-
 
120655
      }
-
 
120656
 
-
 
120657
      int lastComparison = 0;
-
 
120658
      getAllPrivateDealsComparison_result typedOther = (getAllPrivateDealsComparison_result)other;
-
 
120659
 
-
 
120660
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
120661
      if (lastComparison != 0) {
-
 
120662
        return lastComparison;
-
 
120663
      }
-
 
120664
      if (isSetSuccess()) {
-
 
120665
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
120666
        if (lastComparison != 0) {
-
 
120667
          return lastComparison;
-
 
120668
        }
-
 
120669
      }
-
 
120670
      return 0;
-
 
120671
    }
-
 
120672
 
-
 
120673
    public _Fields fieldForId(int fieldId) {
-
 
120674
      return _Fields.findByThriftId(fieldId);
-
 
120675
    }
-
 
120676
 
-
 
120677
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
120678
      org.apache.thrift.protocol.TField field;
-
 
120679
      iprot.readStructBegin();
-
 
120680
      while (true)
-
 
120681
      {
-
 
120682
        field = iprot.readFieldBegin();
-
 
120683
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
120684
          break;
-
 
120685
        }
-
 
120686
        switch (field.id) {
-
 
120687
          case 0: // SUCCESS
-
 
120688
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
120689
              {
-
 
120690
                org.apache.thrift.protocol.TList _list386 = iprot.readListBegin();
-
 
120691
                this.success = new ArrayList<PdPriceComp>(_list386.size);
-
 
120692
                for (int _i387 = 0; _i387 < _list386.size; ++_i387)
-
 
120693
                {
-
 
120694
                  PdPriceComp _elem388; // required
-
 
120695
                  _elem388 = new PdPriceComp();
-
 
120696
                  _elem388.read(iprot);
-
 
120697
                  this.success.add(_elem388);
-
 
120698
                }
-
 
120699
                iprot.readListEnd();
-
 
120700
              }
-
 
120701
            } else { 
-
 
120702
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
120703
            }
-
 
120704
            break;
-
 
120705
          default:
-
 
120706
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
120707
        }
-
 
120708
        iprot.readFieldEnd();
-
 
120709
      }
-
 
120710
      iprot.readStructEnd();
-
 
120711
      validate();
-
 
120712
    }
-
 
120713
 
-
 
120714
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
120715
      oprot.writeStructBegin(STRUCT_DESC);
-
 
120716
 
-
 
120717
      if (this.isSetSuccess()) {
-
 
120718
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
120719
        {
-
 
120720
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
120721
          for (PdPriceComp _iter389 : this.success)
-
 
120722
          {
-
 
120723
            _iter389.write(oprot);
-
 
120724
          }
-
 
120725
          oprot.writeListEnd();
-
 
120726
        }
-
 
120727
        oprot.writeFieldEnd();
-
 
120728
      }
-
 
120729
      oprot.writeFieldStop();
-
 
120730
      oprot.writeStructEnd();
-
 
120731
    }
-
 
120732
 
-
 
120733
    @Override
-
 
120734
    public String toString() {
-
 
120735
      StringBuilder sb = new StringBuilder("getAllPrivateDealsComparison_result(");
-
 
120736
      boolean first = true;
-
 
120737
 
-
 
120738
      sb.append("success:");
-
 
120739
      if (this.success == null) {
-
 
120740
        sb.append("null");
-
 
120741
      } else {
-
 
120742
        sb.append(this.success);
-
 
120743
      }
-
 
120744
      first = false;
-
 
120745
      sb.append(")");
-
 
120746
      return sb.toString();
-
 
120747
    }
-
 
120748
 
119482
    public void validate() throws org.apache.thrift.TException {
120749
    public void validate() throws org.apache.thrift.TException {
119483
      // check for required fields
120750
      // check for required fields
119484
    }
120751
    }
119485
 
120752
 
119486
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
120753
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {