Subversion Repositories SmartDukaan

Rev

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

Rev 14862 Rev 15702
Line 594... Line 594...
594
 
594
 
595
    public void updateHsItem(HsItem hsItem) throws org.apache.thrift.TException;
595
    public void updateHsItem(HsItem hsItem) throws org.apache.thrift.TException;
596
 
596
 
597
    public Item getPricingForDtr(long catalogItemId) throws org.apache.thrift.TException;
597
    public Item getPricingForDtr(long catalogItemId) throws org.apache.thrift.TException;
598
 
598
 
-
 
599
    public List<Amazonlisted> getAllItemstoListOnFbd() throws org.apache.thrift.TException;
-
 
600
 
599
  }
601
  }
600
 
602
 
601
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
603
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
602
 
604
 
603
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
605
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 972... Line 974...
972
 
974
 
973
    public void updateHsItem(HsItem hsItem, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateHsItem_call> resultHandler) throws org.apache.thrift.TException;
975
    public void updateHsItem(HsItem hsItem, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateHsItem_call> resultHandler) throws org.apache.thrift.TException;
974
 
976
 
975
    public void getPricingForDtr(long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPricingForDtr_call> resultHandler) throws org.apache.thrift.TException;
977
    public void getPricingForDtr(long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPricingForDtr_call> resultHandler) throws org.apache.thrift.TException;
976
 
978
 
-
 
979
    public void getAllItemstoListOnFbd(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemstoListOnFbd_call> resultHandler) throws org.apache.thrift.TException;
-
 
980
 
977
  }
981
  }
978
 
982
 
979
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
983
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
980
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
984
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
981
      public Factory() {}
985
      public Factory() {}
Line 5411... Line 5415...
5411
        return result.success;
5415
        return result.success;
5412
      }
5416
      }
5413
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPricingForDtr failed: unknown result");
5417
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPricingForDtr failed: unknown result");
5414
    }
5418
    }
5415
 
5419
 
-
 
5420
    public List<Amazonlisted> getAllItemstoListOnFbd() throws org.apache.thrift.TException
-
 
5421
    {
-
 
5422
      send_getAllItemstoListOnFbd();
-
 
5423
      return recv_getAllItemstoListOnFbd();
-
 
5424
    }
-
 
5425
 
-
 
5426
    public void send_getAllItemstoListOnFbd() throws org.apache.thrift.TException
-
 
5427
    {
-
 
5428
      getAllItemstoListOnFbd_args args = new getAllItemstoListOnFbd_args();
-
 
5429
      sendBase("getAllItemstoListOnFbd", args);
-
 
5430
    }
-
 
5431
 
-
 
5432
    public List<Amazonlisted> recv_getAllItemstoListOnFbd() throws org.apache.thrift.TException
-
 
5433
    {
-
 
5434
      getAllItemstoListOnFbd_result result = new getAllItemstoListOnFbd_result();
-
 
5435
      receiveBase(result, "getAllItemstoListOnFbd");
-
 
5436
      if (result.isSetSuccess()) {
-
 
5437
        return result.success;
-
 
5438
      }
-
 
5439
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemstoListOnFbd failed: unknown result");
-
 
5440
    }
-
 
5441
 
5416
  }
5442
  }
5417
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5443
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5418
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5444
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5419
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5445
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5420
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
5446
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 11563... Line 11589...
11563
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11589
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11564
        return (new Client(prot)).recv_getPricingForDtr();
11590
        return (new Client(prot)).recv_getPricingForDtr();
11565
      }
11591
      }
11566
    }
11592
    }
11567
 
11593
 
-
 
11594
    public void getAllItemstoListOnFbd(org.apache.thrift.async.AsyncMethodCallback<getAllItemstoListOnFbd_call> resultHandler) throws org.apache.thrift.TException {
-
 
11595
      checkReady();
-
 
11596
      getAllItemstoListOnFbd_call method_call = new getAllItemstoListOnFbd_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
11597
      this.___currentMethod = method_call;
-
 
11598
      ___manager.call(method_call);
-
 
11599
    }
-
 
11600
 
-
 
11601
    public static class getAllItemstoListOnFbd_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
11602
      public getAllItemstoListOnFbd_call(org.apache.thrift.async.AsyncMethodCallback<getAllItemstoListOnFbd_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 {
-
 
11603
        super(client, protocolFactory, transport, resultHandler, false);
-
 
11604
      }
-
 
11605
 
-
 
11606
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
11607
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemstoListOnFbd", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
11608
        getAllItemstoListOnFbd_args args = new getAllItemstoListOnFbd_args();
-
 
11609
        args.write(prot);
-
 
11610
        prot.writeMessageEnd();
-
 
11611
      }
-
 
11612
 
-
 
11613
      public List<Amazonlisted> getResult() throws org.apache.thrift.TException {
-
 
11614
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
11615
          throw new IllegalStateException("Method call not finished!");
-
 
11616
        }
-
 
11617
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
11618
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
11619
        return (new Client(prot)).recv_getAllItemstoListOnFbd();
-
 
11620
      }
-
 
11621
    }
-
 
11622
 
11568
  }
11623
  }
11569
 
11624
 
11570
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
11625
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
11571
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
11626
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
11572
    public Processor(I iface) {
11627
    public Processor(I iface) {
Line 11763... Line 11818...
11763
      processMap.put("checkServices", new checkServices());
11818
      processMap.put("checkServices", new checkServices());
11764
      processMap.put("addHsItem", new addHsItem());
11819
      processMap.put("addHsItem", new addHsItem());
11765
      processMap.put("getHsItem", new getHsItem());
11820
      processMap.put("getHsItem", new getHsItem());
11766
      processMap.put("updateHsItem", new updateHsItem());
11821
      processMap.put("updateHsItem", new updateHsItem());
11767
      processMap.put("getPricingForDtr", new getPricingForDtr());
11822
      processMap.put("getPricingForDtr", new getPricingForDtr());
-
 
11823
      processMap.put("getAllItemstoListOnFbd", new getAllItemstoListOnFbd());
11768
      return processMap;
11824
      return processMap;
11769
    }
11825
    }
11770
 
11826
 
11771
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
11827
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
11772
      public addItem() {
11828
      public addItem() {
Line 15005... Line 15061...
15005
        result.success = iface.getPricingForDtr(args.catalogItemId);
15061
        result.success = iface.getPricingForDtr(args.catalogItemId);
15006
        return result;
15062
        return result;
15007
      }
15063
      }
15008
    }
15064
    }
15009
 
15065
 
-
 
15066
    private static class getAllItemstoListOnFbd<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemstoListOnFbd_args> {
-
 
15067
      public getAllItemstoListOnFbd() {
-
 
15068
        super("getAllItemstoListOnFbd");
-
 
15069
      }
-
 
15070
 
-
 
15071
      protected getAllItemstoListOnFbd_args getEmptyArgsInstance() {
-
 
15072
        return new getAllItemstoListOnFbd_args();
-
 
15073
      }
-
 
15074
 
-
 
15075
      protected getAllItemstoListOnFbd_result getResult(I iface, getAllItemstoListOnFbd_args args) throws org.apache.thrift.TException {
-
 
15076
        getAllItemstoListOnFbd_result result = new getAllItemstoListOnFbd_result();
-
 
15077
        result.success = iface.getAllItemstoListOnFbd();
-
 
15078
        return result;
-
 
15079
      }
-
 
15080
    }
-
 
15081
 
15010
  }
15082
  }
15011
 
15083
 
15012
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
15084
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
15013
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
15085
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
15014
 
15086
 
Line 134800... Line 134872...
134800
      boolean first = true;
134872
      boolean first = true;
134801
 
134873
 
134802
      sb.append("success:");
134874
      sb.append("success:");
134803
      if (this.success == null) {
134875
      if (this.success == null) {
134804
        sb.append("null");
134876
        sb.append("null");
-
 
134877
      } else {
-
 
134878
        sb.append(this.success);
-
 
134879
      }
-
 
134880
      first = false;
-
 
134881
      sb.append(")");
-
 
134882
      return sb.toString();
-
 
134883
    }
-
 
134884
 
-
 
134885
    public void validate() throws org.apache.thrift.TException {
-
 
134886
      // check for required fields
-
 
134887
    }
-
 
134888
 
-
 
134889
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
134890
      try {
-
 
134891
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
134892
      } catch (org.apache.thrift.TException te) {
-
 
134893
        throw new java.io.IOException(te);
-
 
134894
      }
-
 
134895
    }
-
 
134896
 
-
 
134897
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
134898
      try {
-
 
134899
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
134900
      } catch (org.apache.thrift.TException te) {
-
 
134901
        throw new java.io.IOException(te);
-
 
134902
      }
-
 
134903
    }
-
 
134904
 
-
 
134905
  }
-
 
134906
 
-
 
134907
  public static class getAllItemstoListOnFbd_args implements org.apache.thrift.TBase<getAllItemstoListOnFbd_args, getAllItemstoListOnFbd_args._Fields>, java.io.Serializable, Cloneable   {
-
 
134908
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemstoListOnFbd_args");
-
 
134909
 
-
 
134910
 
-
 
134911
 
-
 
134912
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
134913
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
134914
;
-
 
134915
 
-
 
134916
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
134917
 
-
 
134918
      static {
-
 
134919
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
134920
          byName.put(field.getFieldName(), field);
-
 
134921
        }
-
 
134922
      }
-
 
134923
 
-
 
134924
      /**
-
 
134925
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
134926
       */
-
 
134927
      public static _Fields findByThriftId(int fieldId) {
-
 
134928
        switch(fieldId) {
-
 
134929
          default:
-
 
134930
            return null;
-
 
134931
        }
-
 
134932
      }
-
 
134933
 
-
 
134934
      /**
-
 
134935
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
134936
       * if it is not found.
-
 
134937
       */
-
 
134938
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
134939
        _Fields fields = findByThriftId(fieldId);
-
 
134940
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
134941
        return fields;
-
 
134942
      }
-
 
134943
 
-
 
134944
      /**
-
 
134945
       * Find the _Fields constant that matches name, or null if its not found.
-
 
134946
       */
-
 
134947
      public static _Fields findByName(String name) {
-
 
134948
        return byName.get(name);
-
 
134949
      }
-
 
134950
 
-
 
134951
      private final short _thriftId;
-
 
134952
      private final String _fieldName;
-
 
134953
 
-
 
134954
      _Fields(short thriftId, String fieldName) {
-
 
134955
        _thriftId = thriftId;
-
 
134956
        _fieldName = fieldName;
-
 
134957
      }
-
 
134958
 
-
 
134959
      public short getThriftFieldId() {
-
 
134960
        return _thriftId;
-
 
134961
      }
-
 
134962
 
-
 
134963
      public String getFieldName() {
-
 
134964
        return _fieldName;
-
 
134965
      }
-
 
134966
    }
-
 
134967
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
134968
    static {
-
 
134969
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
134970
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
134971
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemstoListOnFbd_args.class, metaDataMap);
-
 
134972
    }
-
 
134973
 
-
 
134974
    public getAllItemstoListOnFbd_args() {
-
 
134975
    }
-
 
134976
 
-
 
134977
    /**
-
 
134978
     * Performs a deep copy on <i>other</i>.
-
 
134979
     */
-
 
134980
    public getAllItemstoListOnFbd_args(getAllItemstoListOnFbd_args other) {
-
 
134981
    }
-
 
134982
 
-
 
134983
    public getAllItemstoListOnFbd_args deepCopy() {
-
 
134984
      return new getAllItemstoListOnFbd_args(this);
-
 
134985
    }
-
 
134986
 
-
 
134987
    @Override
-
 
134988
    public void clear() {
-
 
134989
    }
-
 
134990
 
-
 
134991
    public void setFieldValue(_Fields field, Object value) {
-
 
134992
      switch (field) {
-
 
134993
      }
-
 
134994
    }
-
 
134995
 
-
 
134996
    public Object getFieldValue(_Fields field) {
-
 
134997
      switch (field) {
-
 
134998
      }
-
 
134999
      throw new IllegalStateException();
-
 
135000
    }
-
 
135001
 
-
 
135002
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
135003
    public boolean isSet(_Fields field) {
-
 
135004
      if (field == null) {
-
 
135005
        throw new IllegalArgumentException();
-
 
135006
      }
-
 
135007
 
-
 
135008
      switch (field) {
-
 
135009
      }
-
 
135010
      throw new IllegalStateException();
-
 
135011
    }
-
 
135012
 
-
 
135013
    @Override
-
 
135014
    public boolean equals(Object that) {
-
 
135015
      if (that == null)
-
 
135016
        return false;
-
 
135017
      if (that instanceof getAllItemstoListOnFbd_args)
-
 
135018
        return this.equals((getAllItemstoListOnFbd_args)that);
-
 
135019
      return false;
-
 
135020
    }
-
 
135021
 
-
 
135022
    public boolean equals(getAllItemstoListOnFbd_args that) {
-
 
135023
      if (that == null)
-
 
135024
        return false;
-
 
135025
 
-
 
135026
      return true;
-
 
135027
    }
-
 
135028
 
-
 
135029
    @Override
-
 
135030
    public int hashCode() {
-
 
135031
      return 0;
-
 
135032
    }
-
 
135033
 
-
 
135034
    public int compareTo(getAllItemstoListOnFbd_args other) {
-
 
135035
      if (!getClass().equals(other.getClass())) {
-
 
135036
        return getClass().getName().compareTo(other.getClass().getName());
-
 
135037
      }
-
 
135038
 
-
 
135039
      int lastComparison = 0;
-
 
135040
      getAllItemstoListOnFbd_args typedOther = (getAllItemstoListOnFbd_args)other;
-
 
135041
 
-
 
135042
      return 0;
-
 
135043
    }
-
 
135044
 
-
 
135045
    public _Fields fieldForId(int fieldId) {
-
 
135046
      return _Fields.findByThriftId(fieldId);
-
 
135047
    }
-
 
135048
 
-
 
135049
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
135050
      org.apache.thrift.protocol.TField field;
-
 
135051
      iprot.readStructBegin();
-
 
135052
      while (true)
-
 
135053
      {
-
 
135054
        field = iprot.readFieldBegin();
-
 
135055
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
135056
          break;
-
 
135057
        }
-
 
135058
        switch (field.id) {
-
 
135059
          default:
-
 
135060
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
135061
        }
-
 
135062
        iprot.readFieldEnd();
-
 
135063
      }
-
 
135064
      iprot.readStructEnd();
-
 
135065
      validate();
-
 
135066
    }
-
 
135067
 
-
 
135068
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
135069
      validate();
-
 
135070
 
-
 
135071
      oprot.writeStructBegin(STRUCT_DESC);
-
 
135072
      oprot.writeFieldStop();
-
 
135073
      oprot.writeStructEnd();
-
 
135074
    }
-
 
135075
 
-
 
135076
    @Override
-
 
135077
    public String toString() {
-
 
135078
      StringBuilder sb = new StringBuilder("getAllItemstoListOnFbd_args(");
-
 
135079
      boolean first = true;
-
 
135080
 
-
 
135081
      sb.append(")");
-
 
135082
      return sb.toString();
-
 
135083
    }
-
 
135084
 
-
 
135085
    public void validate() throws org.apache.thrift.TException {
-
 
135086
      // check for required fields
-
 
135087
    }
-
 
135088
 
-
 
135089
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
135090
      try {
-
 
135091
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
135092
      } catch (org.apache.thrift.TException te) {
-
 
135093
        throw new java.io.IOException(te);
-
 
135094
      }
-
 
135095
    }
-
 
135096
 
-
 
135097
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
135098
      try {
-
 
135099
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
135100
      } catch (org.apache.thrift.TException te) {
-
 
135101
        throw new java.io.IOException(te);
-
 
135102
      }
-
 
135103
    }
-
 
135104
 
-
 
135105
  }
-
 
135106
 
-
 
135107
  public static class getAllItemstoListOnFbd_result implements org.apache.thrift.TBase<getAllItemstoListOnFbd_result, getAllItemstoListOnFbd_result._Fields>, java.io.Serializable, Cloneable   {
-
 
135108
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemstoListOnFbd_result");
-
 
135109
 
-
 
135110
    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);
-
 
135111
 
-
 
135112
    private List<Amazonlisted> success; // required
-
 
135113
 
-
 
135114
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
135115
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
135116
      SUCCESS((short)0, "success");
-
 
135117
 
-
 
135118
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
135119
 
-
 
135120
      static {
-
 
135121
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
135122
          byName.put(field.getFieldName(), field);
-
 
135123
        }
-
 
135124
      }
-
 
135125
 
-
 
135126
      /**
-
 
135127
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
135128
       */
-
 
135129
      public static _Fields findByThriftId(int fieldId) {
-
 
135130
        switch(fieldId) {
-
 
135131
          case 0: // SUCCESS
-
 
135132
            return SUCCESS;
-
 
135133
          default:
-
 
135134
            return null;
-
 
135135
        }
-
 
135136
      }
-
 
135137
 
-
 
135138
      /**
-
 
135139
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
135140
       * if it is not found.
-
 
135141
       */
-
 
135142
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
135143
        _Fields fields = findByThriftId(fieldId);
-
 
135144
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
135145
        return fields;
-
 
135146
      }
-
 
135147
 
-
 
135148
      /**
-
 
135149
       * Find the _Fields constant that matches name, or null if its not found.
-
 
135150
       */
-
 
135151
      public static _Fields findByName(String name) {
-
 
135152
        return byName.get(name);
-
 
135153
      }
-
 
135154
 
-
 
135155
      private final short _thriftId;
-
 
135156
      private final String _fieldName;
-
 
135157
 
-
 
135158
      _Fields(short thriftId, String fieldName) {
-
 
135159
        _thriftId = thriftId;
-
 
135160
        _fieldName = fieldName;
-
 
135161
      }
-
 
135162
 
-
 
135163
      public short getThriftFieldId() {
-
 
135164
        return _thriftId;
-
 
135165
      }
-
 
135166
 
-
 
135167
      public String getFieldName() {
-
 
135168
        return _fieldName;
-
 
135169
      }
-
 
135170
    }
-
 
135171
 
-
 
135172
    // isset id assignments
-
 
135173
 
-
 
135174
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
135175
    static {
-
 
135176
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
135177
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
135178
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
135179
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Amazonlisted.class))));
-
 
135180
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
135181
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemstoListOnFbd_result.class, metaDataMap);
-
 
135182
    }
-
 
135183
 
-
 
135184
    public getAllItemstoListOnFbd_result() {
-
 
135185
    }
-
 
135186
 
-
 
135187
    public getAllItemstoListOnFbd_result(
-
 
135188
      List<Amazonlisted> success)
-
 
135189
    {
-
 
135190
      this();
-
 
135191
      this.success = success;
-
 
135192
    }
-
 
135193
 
-
 
135194
    /**
-
 
135195
     * Performs a deep copy on <i>other</i>.
-
 
135196
     */
-
 
135197
    public getAllItemstoListOnFbd_result(getAllItemstoListOnFbd_result other) {
-
 
135198
      if (other.isSetSuccess()) {
-
 
135199
        List<Amazonlisted> __this__success = new ArrayList<Amazonlisted>();
-
 
135200
        for (Amazonlisted other_element : other.success) {
-
 
135201
          __this__success.add(new Amazonlisted(other_element));
-
 
135202
        }
-
 
135203
        this.success = __this__success;
-
 
135204
      }
-
 
135205
    }
-
 
135206
 
-
 
135207
    public getAllItemstoListOnFbd_result deepCopy() {
-
 
135208
      return new getAllItemstoListOnFbd_result(this);
-
 
135209
    }
-
 
135210
 
-
 
135211
    @Override
-
 
135212
    public void clear() {
-
 
135213
      this.success = null;
-
 
135214
    }
-
 
135215
 
-
 
135216
    public int getSuccessSize() {
-
 
135217
      return (this.success == null) ? 0 : this.success.size();
-
 
135218
    }
-
 
135219
 
-
 
135220
    public java.util.Iterator<Amazonlisted> getSuccessIterator() {
-
 
135221
      return (this.success == null) ? null : this.success.iterator();
-
 
135222
    }
-
 
135223
 
-
 
135224
    public void addToSuccess(Amazonlisted elem) {
-
 
135225
      if (this.success == null) {
-
 
135226
        this.success = new ArrayList<Amazonlisted>();
-
 
135227
      }
-
 
135228
      this.success.add(elem);
-
 
135229
    }
-
 
135230
 
-
 
135231
    public List<Amazonlisted> getSuccess() {
-
 
135232
      return this.success;
-
 
135233
    }
-
 
135234
 
-
 
135235
    public void setSuccess(List<Amazonlisted> success) {
-
 
135236
      this.success = success;
-
 
135237
    }
-
 
135238
 
-
 
135239
    public void unsetSuccess() {
-
 
135240
      this.success = null;
-
 
135241
    }
-
 
135242
 
-
 
135243
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
135244
    public boolean isSetSuccess() {
-
 
135245
      return this.success != null;
-
 
135246
    }
-
 
135247
 
-
 
135248
    public void setSuccessIsSet(boolean value) {
-
 
135249
      if (!value) {
-
 
135250
        this.success = null;
-
 
135251
      }
-
 
135252
    }
-
 
135253
 
-
 
135254
    public void setFieldValue(_Fields field, Object value) {
-
 
135255
      switch (field) {
-
 
135256
      case SUCCESS:
-
 
135257
        if (value == null) {
-
 
135258
          unsetSuccess();
-
 
135259
        } else {
-
 
135260
          setSuccess((List<Amazonlisted>)value);
-
 
135261
        }
-
 
135262
        break;
-
 
135263
 
-
 
135264
      }
-
 
135265
    }
-
 
135266
 
-
 
135267
    public Object getFieldValue(_Fields field) {
-
 
135268
      switch (field) {
-
 
135269
      case SUCCESS:
-
 
135270
        return getSuccess();
-
 
135271
 
-
 
135272
      }
-
 
135273
      throw new IllegalStateException();
-
 
135274
    }
-
 
135275
 
-
 
135276
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
135277
    public boolean isSet(_Fields field) {
-
 
135278
      if (field == null) {
-
 
135279
        throw new IllegalArgumentException();
-
 
135280
      }
-
 
135281
 
-
 
135282
      switch (field) {
-
 
135283
      case SUCCESS:
-
 
135284
        return isSetSuccess();
-
 
135285
      }
-
 
135286
      throw new IllegalStateException();
-
 
135287
    }
-
 
135288
 
-
 
135289
    @Override
-
 
135290
    public boolean equals(Object that) {
-
 
135291
      if (that == null)
-
 
135292
        return false;
-
 
135293
      if (that instanceof getAllItemstoListOnFbd_result)
-
 
135294
        return this.equals((getAllItemstoListOnFbd_result)that);
-
 
135295
      return false;
-
 
135296
    }
-
 
135297
 
-
 
135298
    public boolean equals(getAllItemstoListOnFbd_result that) {
-
 
135299
      if (that == null)
-
 
135300
        return false;
-
 
135301
 
-
 
135302
      boolean this_present_success = true && this.isSetSuccess();
-
 
135303
      boolean that_present_success = true && that.isSetSuccess();
-
 
135304
      if (this_present_success || that_present_success) {
-
 
135305
        if (!(this_present_success && that_present_success))
-
 
135306
          return false;
-
 
135307
        if (!this.success.equals(that.success))
-
 
135308
          return false;
-
 
135309
      }
-
 
135310
 
-
 
135311
      return true;
-
 
135312
    }
-
 
135313
 
-
 
135314
    @Override
-
 
135315
    public int hashCode() {
-
 
135316
      return 0;
-
 
135317
    }
-
 
135318
 
-
 
135319
    public int compareTo(getAllItemstoListOnFbd_result other) {
-
 
135320
      if (!getClass().equals(other.getClass())) {
-
 
135321
        return getClass().getName().compareTo(other.getClass().getName());
-
 
135322
      }
-
 
135323
 
-
 
135324
      int lastComparison = 0;
-
 
135325
      getAllItemstoListOnFbd_result typedOther = (getAllItemstoListOnFbd_result)other;
-
 
135326
 
-
 
135327
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
135328
      if (lastComparison != 0) {
-
 
135329
        return lastComparison;
-
 
135330
      }
-
 
135331
      if (isSetSuccess()) {
-
 
135332
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
135333
        if (lastComparison != 0) {
-
 
135334
          return lastComparison;
-
 
135335
        }
-
 
135336
      }
-
 
135337
      return 0;
-
 
135338
    }
-
 
135339
 
-
 
135340
    public _Fields fieldForId(int fieldId) {
-
 
135341
      return _Fields.findByThriftId(fieldId);
-
 
135342
    }
-
 
135343
 
-
 
135344
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
135345
      org.apache.thrift.protocol.TField field;
-
 
135346
      iprot.readStructBegin();
-
 
135347
      while (true)
-
 
135348
      {
-
 
135349
        field = iprot.readFieldBegin();
-
 
135350
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
135351
          break;
-
 
135352
        }
-
 
135353
        switch (field.id) {
-
 
135354
          case 0: // SUCCESS
-
 
135355
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
135356
              {
-
 
135357
                org.apache.thrift.protocol.TList _list484 = iprot.readListBegin();
-
 
135358
                this.success = new ArrayList<Amazonlisted>(_list484.size);
-
 
135359
                for (int _i485 = 0; _i485 < _list484.size; ++_i485)
-
 
135360
                {
-
 
135361
                  Amazonlisted _elem486; // required
-
 
135362
                  _elem486 = new Amazonlisted();
-
 
135363
                  _elem486.read(iprot);
-
 
135364
                  this.success.add(_elem486);
-
 
135365
                }
-
 
135366
                iprot.readListEnd();
-
 
135367
              }
-
 
135368
            } else { 
-
 
135369
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
135370
            }
-
 
135371
            break;
-
 
135372
          default:
-
 
135373
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
135374
        }
-
 
135375
        iprot.readFieldEnd();
-
 
135376
      }
-
 
135377
      iprot.readStructEnd();
-
 
135378
      validate();
-
 
135379
    }
-
 
135380
 
-
 
135381
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
135382
      oprot.writeStructBegin(STRUCT_DESC);
-
 
135383
 
-
 
135384
      if (this.isSetSuccess()) {
-
 
135385
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
135386
        {
-
 
135387
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
135388
          for (Amazonlisted _iter487 : this.success)
-
 
135389
          {
-
 
135390
            _iter487.write(oprot);
-
 
135391
          }
-
 
135392
          oprot.writeListEnd();
-
 
135393
        }
-
 
135394
        oprot.writeFieldEnd();
-
 
135395
      }
-
 
135396
      oprot.writeFieldStop();
-
 
135397
      oprot.writeStructEnd();
-
 
135398
    }
-
 
135399
 
-
 
135400
    @Override
-
 
135401
    public String toString() {
-
 
135402
      StringBuilder sb = new StringBuilder("getAllItemstoListOnFbd_result(");
-
 
135403
      boolean first = true;
-
 
135404
 
-
 
135405
      sb.append("success:");
-
 
135406
      if (this.success == null) {
-
 
135407
        sb.append("null");
134805
      } else {
135408
      } else {
134806
        sb.append(this.success);
135409
        sb.append(this.success);
134807
      }
135410
      }
134808
      first = false;
135411
      first = false;
134809
      sb.append(")");
135412
      sb.append(")");