Subversion Repositories SmartDukaan

Rev

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

Rev 10909 Rev 10924
Line 530... Line 530...
530
 
530
 
531
    public FlipkartItem getFlipkartItemBySkyAtFlipkart(String sku) throws org.apache.thrift.TException;
531
    public FlipkartItem getFlipkartItemBySkyAtFlipkart(String sku) throws org.apache.thrift.TException;
532
 
532
 
533
    public List<Amazonlisted> getAllFbbListedItems() throws org.apache.thrift.TException;
533
    public List<Amazonlisted> getAllFbbListedItems() throws org.apache.thrift.TException;
534
 
534
 
-
 
535
    public List<Amazonlisted> getAllFbbPricingItems() throws org.apache.thrift.TException;
-
 
536
 
535
  }
537
  }
536
 
538
 
537
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
539
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
538
 
540
 
539
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
541
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 844... Line 846...
844
 
846
 
845
    public void getFlipkartItemBySkyAtFlipkart(String sku, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartItemBySkyAtFlipkart_call> resultHandler) throws org.apache.thrift.TException;
847
    public void getFlipkartItemBySkyAtFlipkart(String sku, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartItemBySkyAtFlipkart_call> resultHandler) throws org.apache.thrift.TException;
846
 
848
 
847
    public void getAllFbbListedItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFbbListedItems_call> resultHandler) throws org.apache.thrift.TException;
849
    public void getAllFbbListedItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFbbListedItems_call> resultHandler) throws org.apache.thrift.TException;
848
 
850
 
-
 
851
    public void getAllFbbPricingItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFbbPricingItems_call> resultHandler) throws org.apache.thrift.TException;
-
 
852
 
849
  }
853
  }
850
 
854
 
851
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
855
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
852
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
856
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
853
      public Factory() {}
857
      public Factory() {}
Line 4534... Line 4538...
4534
        return result.success;
4538
        return result.success;
4535
      }
4539
      }
4536
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllFbbListedItems failed: unknown result");
4540
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllFbbListedItems failed: unknown result");
4537
    }
4541
    }
4538
 
4542
 
-
 
4543
    public List<Amazonlisted> getAllFbbPricingItems() throws org.apache.thrift.TException
-
 
4544
    {
-
 
4545
      send_getAllFbbPricingItems();
-
 
4546
      return recv_getAllFbbPricingItems();
-
 
4547
    }
-
 
4548
 
-
 
4549
    public void send_getAllFbbPricingItems() throws org.apache.thrift.TException
-
 
4550
    {
-
 
4551
      getAllFbbPricingItems_args args = new getAllFbbPricingItems_args();
-
 
4552
      sendBase("getAllFbbPricingItems", args);
-
 
4553
    }
-
 
4554
 
-
 
4555
    public List<Amazonlisted> recv_getAllFbbPricingItems() throws org.apache.thrift.TException
-
 
4556
    {
-
 
4557
      getAllFbbPricingItems_result result = new getAllFbbPricingItems_result();
-
 
4558
      receiveBase(result, "getAllFbbPricingItems");
-
 
4559
      if (result.isSetSuccess()) {
-
 
4560
        return result.success;
-
 
4561
      }
-
 
4562
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllFbbPricingItems failed: unknown result");
-
 
4563
    }
-
 
4564
 
4539
  }
4565
  }
4540
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4566
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4541
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4567
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4542
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4568
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4543
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
4569
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 9641... Line 9667...
9641
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9667
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9642
        return (new Client(prot)).recv_getAllFbbListedItems();
9668
        return (new Client(prot)).recv_getAllFbbListedItems();
9643
      }
9669
      }
9644
    }
9670
    }
9645
 
9671
 
-
 
9672
    public void getAllFbbPricingItems(org.apache.thrift.async.AsyncMethodCallback<getAllFbbPricingItems_call> resultHandler) throws org.apache.thrift.TException {
-
 
9673
      checkReady();
-
 
9674
      getAllFbbPricingItems_call method_call = new getAllFbbPricingItems_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
9675
      this.___currentMethod = method_call;
-
 
9676
      ___manager.call(method_call);
-
 
9677
    }
-
 
9678
 
-
 
9679
    public static class getAllFbbPricingItems_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
9680
      public getAllFbbPricingItems_call(org.apache.thrift.async.AsyncMethodCallback<getAllFbbPricingItems_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 {
-
 
9681
        super(client, protocolFactory, transport, resultHandler, false);
-
 
9682
      }
-
 
9683
 
-
 
9684
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
9685
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllFbbPricingItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
9686
        getAllFbbPricingItems_args args = new getAllFbbPricingItems_args();
-
 
9687
        args.write(prot);
-
 
9688
        prot.writeMessageEnd();
-
 
9689
      }
-
 
9690
 
-
 
9691
      public List<Amazonlisted> getResult() throws org.apache.thrift.TException {
-
 
9692
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
9693
          throw new IllegalStateException("Method call not finished!");
-
 
9694
        }
-
 
9695
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
9696
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
9697
        return (new Client(prot)).recv_getAllFbbPricingItems();
-
 
9698
      }
-
 
9699
    }
-
 
9700
 
9646
  }
9701
  }
9647
 
9702
 
9648
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
9703
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
9649
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
9704
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
9650
    public Processor(I iface) {
9705
    public Processor(I iface) {
Line 9809... Line 9864...
9809
      processMap.put("getCountForFlipkartItems", new getCountForFlipkartItems());
9864
      processMap.put("getCountForFlipkartItems", new getCountForFlipkartItems());
9810
      processMap.put("getFlipkartSearchResultCount", new getFlipkartSearchResultCount());
9865
      processMap.put("getFlipkartSearchResultCount", new getFlipkartSearchResultCount());
9811
      processMap.put("getAllFkItems", new getAllFkItems());
9866
      processMap.put("getAllFkItems", new getAllFkItems());
9812
      processMap.put("getFlipkartItemBySkyAtFlipkart", new getFlipkartItemBySkyAtFlipkart());
9867
      processMap.put("getFlipkartItemBySkyAtFlipkart", new getFlipkartItemBySkyAtFlipkart());
9813
      processMap.put("getAllFbbListedItems", new getAllFbbListedItems());
9868
      processMap.put("getAllFbbListedItems", new getAllFbbListedItems());
-
 
9869
      processMap.put("getAllFbbPricingItems", new getAllFbbPricingItems());
9814
      return processMap;
9870
      return processMap;
9815
    }
9871
    }
9816
 
9872
 
9817
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
9873
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
9818
      public addItem() {
9874
      public addItem() {
Line 12513... Line 12569...
12513
        result.success = iface.getAllFbbListedItems();
12569
        result.success = iface.getAllFbbListedItems();
12514
        return result;
12570
        return result;
12515
      }
12571
      }
12516
    }
12572
    }
12517
 
12573
 
-
 
12574
    private static class getAllFbbPricingItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllFbbPricingItems_args> {
-
 
12575
      public getAllFbbPricingItems() {
-
 
12576
        super("getAllFbbPricingItems");
-
 
12577
      }
-
 
12578
 
-
 
12579
      protected getAllFbbPricingItems_args getEmptyArgsInstance() {
-
 
12580
        return new getAllFbbPricingItems_args();
-
 
12581
      }
-
 
12582
 
-
 
12583
      protected getAllFbbPricingItems_result getResult(I iface, getAllFbbPricingItems_args args) throws org.apache.thrift.TException {
-
 
12584
        getAllFbbPricingItems_result result = new getAllFbbPricingItems_result();
-
 
12585
        result.success = iface.getAllFbbPricingItems();
-
 
12586
        return result;
-
 
12587
      }
-
 
12588
    }
-
 
12589
 
12518
  }
12590
  }
12519
 
12591
 
12520
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
12592
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
12521
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
12593
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
12522
 
12594
 
Line 111701... Line 111773...
111701
      boolean first = true;
111773
      boolean first = true;
111702
 
111774
 
111703
      sb.append("success:");
111775
      sb.append("success:");
111704
      if (this.success == null) {
111776
      if (this.success == null) {
111705
        sb.append("null");
111777
        sb.append("null");
-
 
111778
      } else {
-
 
111779
        sb.append(this.success);
-
 
111780
      }
-
 
111781
      first = false;
-
 
111782
      sb.append(")");
-
 
111783
      return sb.toString();
-
 
111784
    }
-
 
111785
 
-
 
111786
    public void validate() throws org.apache.thrift.TException {
-
 
111787
      // check for required fields
-
 
111788
    }
-
 
111789
 
-
 
111790
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
111791
      try {
-
 
111792
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
111793
      } catch (org.apache.thrift.TException te) {
-
 
111794
        throw new java.io.IOException(te);
-
 
111795
      }
-
 
111796
    }
-
 
111797
 
-
 
111798
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
111799
      try {
-
 
111800
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
111801
      } catch (org.apache.thrift.TException te) {
-
 
111802
        throw new java.io.IOException(te);
-
 
111803
      }
-
 
111804
    }
-
 
111805
 
-
 
111806
  }
-
 
111807
 
-
 
111808
  public static class getAllFbbPricingItems_args implements org.apache.thrift.TBase<getAllFbbPricingItems_args, getAllFbbPricingItems_args._Fields>, java.io.Serializable, Cloneable   {
-
 
111809
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFbbPricingItems_args");
-
 
111810
 
-
 
111811
 
-
 
111812
 
-
 
111813
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
111814
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
111815
;
-
 
111816
 
-
 
111817
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
111818
 
-
 
111819
      static {
-
 
111820
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
111821
          byName.put(field.getFieldName(), field);
-
 
111822
        }
-
 
111823
      }
-
 
111824
 
-
 
111825
      /**
-
 
111826
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
111827
       */
-
 
111828
      public static _Fields findByThriftId(int fieldId) {
-
 
111829
        switch(fieldId) {
-
 
111830
          default:
-
 
111831
            return null;
-
 
111832
        }
-
 
111833
      }
-
 
111834
 
-
 
111835
      /**
-
 
111836
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
111837
       * if it is not found.
-
 
111838
       */
-
 
111839
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
111840
        _Fields fields = findByThriftId(fieldId);
-
 
111841
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
111842
        return fields;
-
 
111843
      }
-
 
111844
 
-
 
111845
      /**
-
 
111846
       * Find the _Fields constant that matches name, or null if its not found.
-
 
111847
       */
-
 
111848
      public static _Fields findByName(String name) {
-
 
111849
        return byName.get(name);
-
 
111850
      }
-
 
111851
 
-
 
111852
      private final short _thriftId;
-
 
111853
      private final String _fieldName;
-
 
111854
 
-
 
111855
      _Fields(short thriftId, String fieldName) {
-
 
111856
        _thriftId = thriftId;
-
 
111857
        _fieldName = fieldName;
-
 
111858
      }
-
 
111859
 
-
 
111860
      public short getThriftFieldId() {
-
 
111861
        return _thriftId;
-
 
111862
      }
-
 
111863
 
-
 
111864
      public String getFieldName() {
-
 
111865
        return _fieldName;
-
 
111866
      }
-
 
111867
    }
-
 
111868
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
111869
    static {
-
 
111870
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
111871
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
111872
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFbbPricingItems_args.class, metaDataMap);
-
 
111873
    }
-
 
111874
 
-
 
111875
    public getAllFbbPricingItems_args() {
-
 
111876
    }
-
 
111877
 
-
 
111878
    /**
-
 
111879
     * Performs a deep copy on <i>other</i>.
-
 
111880
     */
-
 
111881
    public getAllFbbPricingItems_args(getAllFbbPricingItems_args other) {
-
 
111882
    }
-
 
111883
 
-
 
111884
    public getAllFbbPricingItems_args deepCopy() {
-
 
111885
      return new getAllFbbPricingItems_args(this);
-
 
111886
    }
-
 
111887
 
-
 
111888
    @Override
-
 
111889
    public void clear() {
-
 
111890
    }
-
 
111891
 
-
 
111892
    public void setFieldValue(_Fields field, Object value) {
-
 
111893
      switch (field) {
-
 
111894
      }
-
 
111895
    }
-
 
111896
 
-
 
111897
    public Object getFieldValue(_Fields field) {
-
 
111898
      switch (field) {
-
 
111899
      }
-
 
111900
      throw new IllegalStateException();
-
 
111901
    }
-
 
111902
 
-
 
111903
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
111904
    public boolean isSet(_Fields field) {
-
 
111905
      if (field == null) {
-
 
111906
        throw new IllegalArgumentException();
-
 
111907
      }
-
 
111908
 
-
 
111909
      switch (field) {
-
 
111910
      }
-
 
111911
      throw new IllegalStateException();
-
 
111912
    }
-
 
111913
 
-
 
111914
    @Override
-
 
111915
    public boolean equals(Object that) {
-
 
111916
      if (that == null)
-
 
111917
        return false;
-
 
111918
      if (that instanceof getAllFbbPricingItems_args)
-
 
111919
        return this.equals((getAllFbbPricingItems_args)that);
-
 
111920
      return false;
-
 
111921
    }
-
 
111922
 
-
 
111923
    public boolean equals(getAllFbbPricingItems_args that) {
-
 
111924
      if (that == null)
-
 
111925
        return false;
-
 
111926
 
-
 
111927
      return true;
-
 
111928
    }
-
 
111929
 
-
 
111930
    @Override
-
 
111931
    public int hashCode() {
-
 
111932
      return 0;
-
 
111933
    }
-
 
111934
 
-
 
111935
    public int compareTo(getAllFbbPricingItems_args other) {
-
 
111936
      if (!getClass().equals(other.getClass())) {
-
 
111937
        return getClass().getName().compareTo(other.getClass().getName());
-
 
111938
      }
-
 
111939
 
-
 
111940
      int lastComparison = 0;
-
 
111941
      getAllFbbPricingItems_args typedOther = (getAllFbbPricingItems_args)other;
-
 
111942
 
-
 
111943
      return 0;
-
 
111944
    }
-
 
111945
 
-
 
111946
    public _Fields fieldForId(int fieldId) {
-
 
111947
      return _Fields.findByThriftId(fieldId);
-
 
111948
    }
-
 
111949
 
-
 
111950
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
111951
      org.apache.thrift.protocol.TField field;
-
 
111952
      iprot.readStructBegin();
-
 
111953
      while (true)
-
 
111954
      {
-
 
111955
        field = iprot.readFieldBegin();
-
 
111956
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
111957
          break;
-
 
111958
        }
-
 
111959
        switch (field.id) {
-
 
111960
          default:
-
 
111961
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
111962
        }
-
 
111963
        iprot.readFieldEnd();
-
 
111964
      }
-
 
111965
      iprot.readStructEnd();
-
 
111966
      validate();
-
 
111967
    }
-
 
111968
 
-
 
111969
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
111970
      validate();
-
 
111971
 
-
 
111972
      oprot.writeStructBegin(STRUCT_DESC);
-
 
111973
      oprot.writeFieldStop();
-
 
111974
      oprot.writeStructEnd();
-
 
111975
    }
-
 
111976
 
-
 
111977
    @Override
-
 
111978
    public String toString() {
-
 
111979
      StringBuilder sb = new StringBuilder("getAllFbbPricingItems_args(");
-
 
111980
      boolean first = true;
-
 
111981
 
-
 
111982
      sb.append(")");
-
 
111983
      return sb.toString();
-
 
111984
    }
-
 
111985
 
-
 
111986
    public void validate() throws org.apache.thrift.TException {
-
 
111987
      // check for required fields
-
 
111988
    }
-
 
111989
 
-
 
111990
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
111991
      try {
-
 
111992
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
111993
      } catch (org.apache.thrift.TException te) {
-
 
111994
        throw new java.io.IOException(te);
-
 
111995
      }
-
 
111996
    }
-
 
111997
 
-
 
111998
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
111999
      try {
-
 
112000
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
112001
      } catch (org.apache.thrift.TException te) {
-
 
112002
        throw new java.io.IOException(te);
-
 
112003
      }
-
 
112004
    }
-
 
112005
 
-
 
112006
  }
-
 
112007
 
-
 
112008
  public static class getAllFbbPricingItems_result implements org.apache.thrift.TBase<getAllFbbPricingItems_result, getAllFbbPricingItems_result._Fields>, java.io.Serializable, Cloneable   {
-
 
112009
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFbbPricingItems_result");
-
 
112010
 
-
 
112011
    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);
-
 
112012
 
-
 
112013
    private List<Amazonlisted> success; // required
-
 
112014
 
-
 
112015
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
112016
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
112017
      SUCCESS((short)0, "success");
-
 
112018
 
-
 
112019
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
112020
 
-
 
112021
      static {
-
 
112022
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
112023
          byName.put(field.getFieldName(), field);
-
 
112024
        }
-
 
112025
      }
-
 
112026
 
-
 
112027
      /**
-
 
112028
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
112029
       */
-
 
112030
      public static _Fields findByThriftId(int fieldId) {
-
 
112031
        switch(fieldId) {
-
 
112032
          case 0: // SUCCESS
-
 
112033
            return SUCCESS;
-
 
112034
          default:
-
 
112035
            return null;
-
 
112036
        }
-
 
112037
      }
-
 
112038
 
-
 
112039
      /**
-
 
112040
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
112041
       * if it is not found.
-
 
112042
       */
-
 
112043
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
112044
        _Fields fields = findByThriftId(fieldId);
-
 
112045
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
112046
        return fields;
-
 
112047
      }
-
 
112048
 
-
 
112049
      /**
-
 
112050
       * Find the _Fields constant that matches name, or null if its not found.
-
 
112051
       */
-
 
112052
      public static _Fields findByName(String name) {
-
 
112053
        return byName.get(name);
-
 
112054
      }
-
 
112055
 
-
 
112056
      private final short _thriftId;
-
 
112057
      private final String _fieldName;
-
 
112058
 
-
 
112059
      _Fields(short thriftId, String fieldName) {
-
 
112060
        _thriftId = thriftId;
-
 
112061
        _fieldName = fieldName;
-
 
112062
      }
-
 
112063
 
-
 
112064
      public short getThriftFieldId() {
-
 
112065
        return _thriftId;
-
 
112066
      }
-
 
112067
 
-
 
112068
      public String getFieldName() {
-
 
112069
        return _fieldName;
-
 
112070
      }
-
 
112071
    }
-
 
112072
 
-
 
112073
    // isset id assignments
-
 
112074
 
-
 
112075
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
112076
    static {
-
 
112077
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
112078
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
112079
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
112080
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Amazonlisted.class))));
-
 
112081
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
112082
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFbbPricingItems_result.class, metaDataMap);
-
 
112083
    }
-
 
112084
 
-
 
112085
    public getAllFbbPricingItems_result() {
-
 
112086
    }
-
 
112087
 
-
 
112088
    public getAllFbbPricingItems_result(
-
 
112089
      List<Amazonlisted> success)
-
 
112090
    {
-
 
112091
      this();
-
 
112092
      this.success = success;
-
 
112093
    }
-
 
112094
 
-
 
112095
    /**
-
 
112096
     * Performs a deep copy on <i>other</i>.
-
 
112097
     */
-
 
112098
    public getAllFbbPricingItems_result(getAllFbbPricingItems_result other) {
-
 
112099
      if (other.isSetSuccess()) {
-
 
112100
        List<Amazonlisted> __this__success = new ArrayList<Amazonlisted>();
-
 
112101
        for (Amazonlisted other_element : other.success) {
-
 
112102
          __this__success.add(new Amazonlisted(other_element));
-
 
112103
        }
-
 
112104
        this.success = __this__success;
-
 
112105
      }
-
 
112106
    }
-
 
112107
 
-
 
112108
    public getAllFbbPricingItems_result deepCopy() {
-
 
112109
      return new getAllFbbPricingItems_result(this);
-
 
112110
    }
-
 
112111
 
-
 
112112
    @Override
-
 
112113
    public void clear() {
-
 
112114
      this.success = null;
-
 
112115
    }
-
 
112116
 
-
 
112117
    public int getSuccessSize() {
-
 
112118
      return (this.success == null) ? 0 : this.success.size();
-
 
112119
    }
-
 
112120
 
-
 
112121
    public java.util.Iterator<Amazonlisted> getSuccessIterator() {
-
 
112122
      return (this.success == null) ? null : this.success.iterator();
-
 
112123
    }
-
 
112124
 
-
 
112125
    public void addToSuccess(Amazonlisted elem) {
-
 
112126
      if (this.success == null) {
-
 
112127
        this.success = new ArrayList<Amazonlisted>();
-
 
112128
      }
-
 
112129
      this.success.add(elem);
-
 
112130
    }
-
 
112131
 
-
 
112132
    public List<Amazonlisted> getSuccess() {
-
 
112133
      return this.success;
-
 
112134
    }
-
 
112135
 
-
 
112136
    public void setSuccess(List<Amazonlisted> success) {
-
 
112137
      this.success = success;
-
 
112138
    }
-
 
112139
 
-
 
112140
    public void unsetSuccess() {
-
 
112141
      this.success = null;
-
 
112142
    }
-
 
112143
 
-
 
112144
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
112145
    public boolean isSetSuccess() {
-
 
112146
      return this.success != null;
-
 
112147
    }
-
 
112148
 
-
 
112149
    public void setSuccessIsSet(boolean value) {
-
 
112150
      if (!value) {
-
 
112151
        this.success = null;
-
 
112152
      }
-
 
112153
    }
-
 
112154
 
-
 
112155
    public void setFieldValue(_Fields field, Object value) {
-
 
112156
      switch (field) {
-
 
112157
      case SUCCESS:
-
 
112158
        if (value == null) {
-
 
112159
          unsetSuccess();
-
 
112160
        } else {
-
 
112161
          setSuccess((List<Amazonlisted>)value);
-
 
112162
        }
-
 
112163
        break;
-
 
112164
 
-
 
112165
      }
-
 
112166
    }
-
 
112167
 
-
 
112168
    public Object getFieldValue(_Fields field) {
-
 
112169
      switch (field) {
-
 
112170
      case SUCCESS:
-
 
112171
        return getSuccess();
-
 
112172
 
-
 
112173
      }
-
 
112174
      throw new IllegalStateException();
-
 
112175
    }
-
 
112176
 
-
 
112177
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
112178
    public boolean isSet(_Fields field) {
-
 
112179
      if (field == null) {
-
 
112180
        throw new IllegalArgumentException();
-
 
112181
      }
-
 
112182
 
-
 
112183
      switch (field) {
-
 
112184
      case SUCCESS:
-
 
112185
        return isSetSuccess();
-
 
112186
      }
-
 
112187
      throw new IllegalStateException();
-
 
112188
    }
-
 
112189
 
-
 
112190
    @Override
-
 
112191
    public boolean equals(Object that) {
-
 
112192
      if (that == null)
-
 
112193
        return false;
-
 
112194
      if (that instanceof getAllFbbPricingItems_result)
-
 
112195
        return this.equals((getAllFbbPricingItems_result)that);
-
 
112196
      return false;
-
 
112197
    }
-
 
112198
 
-
 
112199
    public boolean equals(getAllFbbPricingItems_result that) {
-
 
112200
      if (that == null)
-
 
112201
        return false;
-
 
112202
 
-
 
112203
      boolean this_present_success = true && this.isSetSuccess();
-
 
112204
      boolean that_present_success = true && that.isSetSuccess();
-
 
112205
      if (this_present_success || that_present_success) {
-
 
112206
        if (!(this_present_success && that_present_success))
-
 
112207
          return false;
-
 
112208
        if (!this.success.equals(that.success))
-
 
112209
          return false;
-
 
112210
      }
-
 
112211
 
-
 
112212
      return true;
-
 
112213
    }
-
 
112214
 
-
 
112215
    @Override
-
 
112216
    public int hashCode() {
-
 
112217
      return 0;
-
 
112218
    }
-
 
112219
 
-
 
112220
    public int compareTo(getAllFbbPricingItems_result other) {
-
 
112221
      if (!getClass().equals(other.getClass())) {
-
 
112222
        return getClass().getName().compareTo(other.getClass().getName());
-
 
112223
      }
-
 
112224
 
-
 
112225
      int lastComparison = 0;
-
 
112226
      getAllFbbPricingItems_result typedOther = (getAllFbbPricingItems_result)other;
-
 
112227
 
-
 
112228
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
112229
      if (lastComparison != 0) {
-
 
112230
        return lastComparison;
-
 
112231
      }
-
 
112232
      if (isSetSuccess()) {
-
 
112233
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
112234
        if (lastComparison != 0) {
-
 
112235
          return lastComparison;
-
 
112236
        }
-
 
112237
      }
-
 
112238
      return 0;
-
 
112239
    }
-
 
112240
 
-
 
112241
    public _Fields fieldForId(int fieldId) {
-
 
112242
      return _Fields.findByThriftId(fieldId);
-
 
112243
    }
-
 
112244
 
-
 
112245
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
112246
      org.apache.thrift.protocol.TField field;
-
 
112247
      iprot.readStructBegin();
-
 
112248
      while (true)
-
 
112249
      {
-
 
112250
        field = iprot.readFieldBegin();
-
 
112251
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
112252
          break;
-
 
112253
        }
-
 
112254
        switch (field.id) {
-
 
112255
          case 0: // SUCCESS
-
 
112256
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
112257
              {
-
 
112258
                org.apache.thrift.protocol.TList _list357 = iprot.readListBegin();
-
 
112259
                this.success = new ArrayList<Amazonlisted>(_list357.size);
-
 
112260
                for (int _i358 = 0; _i358 < _list357.size; ++_i358)
-
 
112261
                {
-
 
112262
                  Amazonlisted _elem359; // required
-
 
112263
                  _elem359 = new Amazonlisted();
-
 
112264
                  _elem359.read(iprot);
-
 
112265
                  this.success.add(_elem359);
-
 
112266
                }
-
 
112267
                iprot.readListEnd();
-
 
112268
              }
-
 
112269
            } else { 
-
 
112270
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
112271
            }
-
 
112272
            break;
-
 
112273
          default:
-
 
112274
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
112275
        }
-
 
112276
        iprot.readFieldEnd();
-
 
112277
      }
-
 
112278
      iprot.readStructEnd();
-
 
112279
      validate();
-
 
112280
    }
-
 
112281
 
-
 
112282
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
112283
      oprot.writeStructBegin(STRUCT_DESC);
-
 
112284
 
-
 
112285
      if (this.isSetSuccess()) {
-
 
112286
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
112287
        {
-
 
112288
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
112289
          for (Amazonlisted _iter360 : this.success)
-
 
112290
          {
-
 
112291
            _iter360.write(oprot);
-
 
112292
          }
-
 
112293
          oprot.writeListEnd();
-
 
112294
        }
-
 
112295
        oprot.writeFieldEnd();
-
 
112296
      }
-
 
112297
      oprot.writeFieldStop();
-
 
112298
      oprot.writeStructEnd();
-
 
112299
    }
-
 
112300
 
-
 
112301
    @Override
-
 
112302
    public String toString() {
-
 
112303
      StringBuilder sb = new StringBuilder("getAllFbbPricingItems_result(");
-
 
112304
      boolean first = true;
-
 
112305
 
-
 
112306
      sb.append("success:");
-
 
112307
      if (this.success == null) {
-
 
112308
        sb.append("null");
111706
      } else {
112309
      } else {
111707
        sb.append(this.success);
112310
        sb.append(this.success);
111708
      }
112311
      }
111709
      first = false;
112312
      first = false;
111710
      sb.append(")");
112313
      sb.append(")");