Subversion Repositories SmartDukaan

Rev

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

Rev 12888 Rev 12892
Line 580... Line 580...
580
 
580
 
581
    public Map<Long,ExclusiveAffiliateItemInfo> getExAffiliateItemInfo() throws org.apache.thrift.TException;
581
    public Map<Long,ExclusiveAffiliateItemInfo> getExAffiliateItemInfo() throws org.apache.thrift.TException;
582
 
582
 
583
    public List<Amazonlisted> getAllItemstoListOnFbg() throws org.apache.thrift.TException;
583
    public List<Amazonlisted> getAllItemstoListOnFbg() throws org.apache.thrift.TException;
584
 
584
 
-
 
585
    public List<Amazonlisted> getAllFbgListedItems() throws org.apache.thrift.TException;
-
 
586
 
585
  }
587
  }
586
 
588
 
587
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
589
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
588
 
590
 
589
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
591
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 944... Line 946...
944
 
946
 
945
    public void getExAffiliateItemInfo(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getExAffiliateItemInfo_call> resultHandler) throws org.apache.thrift.TException;
947
    public void getExAffiliateItemInfo(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getExAffiliateItemInfo_call> resultHandler) throws org.apache.thrift.TException;
946
 
948
 
947
    public void getAllItemstoListOnFbg(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemstoListOnFbg_call> resultHandler) throws org.apache.thrift.TException;
949
    public void getAllItemstoListOnFbg(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemstoListOnFbg_call> resultHandler) throws org.apache.thrift.TException;
948
 
950
 
-
 
951
    public void getAllFbgListedItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFbgListedItems_call> resultHandler) throws org.apache.thrift.TException;
-
 
952
 
949
  }
953
  }
950
 
954
 
951
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
955
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
952
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
956
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
953
      public Factory() {}
957
      public Factory() {}
Line 5220... Line 5224...
5220
        return result.success;
5224
        return result.success;
5221
      }
5225
      }
5222
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemstoListOnFbg failed: unknown result");
5226
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemstoListOnFbg failed: unknown result");
5223
    }
5227
    }
5224
 
5228
 
-
 
5229
    public List<Amazonlisted> getAllFbgListedItems() throws org.apache.thrift.TException
-
 
5230
    {
-
 
5231
      send_getAllFbgListedItems();
-
 
5232
      return recv_getAllFbgListedItems();
-
 
5233
    }
-
 
5234
 
-
 
5235
    public void send_getAllFbgListedItems() throws org.apache.thrift.TException
-
 
5236
    {
-
 
5237
      getAllFbgListedItems_args args = new getAllFbgListedItems_args();
-
 
5238
      sendBase("getAllFbgListedItems", args);
-
 
5239
    }
-
 
5240
 
-
 
5241
    public List<Amazonlisted> recv_getAllFbgListedItems() throws org.apache.thrift.TException
-
 
5242
    {
-
 
5243
      getAllFbgListedItems_result result = new getAllFbgListedItems_result();
-
 
5244
      receiveBase(result, "getAllFbgListedItems");
-
 
5245
      if (result.isSetSuccess()) {
-
 
5246
        return result.success;
-
 
5247
      }
-
 
5248
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllFbgListedItems failed: unknown result");
-
 
5249
    }
-
 
5250
 
5225
  }
5251
  }
5226
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5252
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5227
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5253
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5228
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5254
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5229
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
5255
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 11151... Line 11177...
11151
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11177
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11152
        return (new Client(prot)).recv_getAllItemstoListOnFbg();
11178
        return (new Client(prot)).recv_getAllItemstoListOnFbg();
11153
      }
11179
      }
11154
    }
11180
    }
11155
 
11181
 
-
 
11182
    public void getAllFbgListedItems(org.apache.thrift.async.AsyncMethodCallback<getAllFbgListedItems_call> resultHandler) throws org.apache.thrift.TException {
-
 
11183
      checkReady();
-
 
11184
      getAllFbgListedItems_call method_call = new getAllFbgListedItems_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
11185
      this.___currentMethod = method_call;
-
 
11186
      ___manager.call(method_call);
-
 
11187
    }
-
 
11188
 
-
 
11189
    public static class getAllFbgListedItems_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
11190
      public getAllFbgListedItems_call(org.apache.thrift.async.AsyncMethodCallback<getAllFbgListedItems_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 {
-
 
11191
        super(client, protocolFactory, transport, resultHandler, false);
-
 
11192
      }
-
 
11193
 
-
 
11194
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
11195
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllFbgListedItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
11196
        getAllFbgListedItems_args args = new getAllFbgListedItems_args();
-
 
11197
        args.write(prot);
-
 
11198
        prot.writeMessageEnd();
-
 
11199
      }
-
 
11200
 
-
 
11201
      public List<Amazonlisted> getResult() throws org.apache.thrift.TException {
-
 
11202
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
11203
          throw new IllegalStateException("Method call not finished!");
-
 
11204
        }
-
 
11205
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
11206
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
11207
        return (new Client(prot)).recv_getAllFbgListedItems();
-
 
11208
      }
-
 
11209
    }
-
 
11210
 
11156
  }
11211
  }
11157
 
11212
 
11158
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
11213
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
11159
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
11214
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
11160
    public Processor(I iface) {
11215
    public Processor(I iface) {
Line 11344... Line 11399...
11344
      processMap.put("updateAmazonPromotion", new updateAmazonPromotion());
11399
      processMap.put("updateAmazonPromotion", new updateAmazonPromotion());
11345
      processMap.put("markPartiallyActive", new markPartiallyActive());
11400
      processMap.put("markPartiallyActive", new markPartiallyActive());
11346
      processMap.put("updateItemStateVat", new updateItemStateVat());
11401
      processMap.put("updateItemStateVat", new updateItemStateVat());
11347
      processMap.put("getExAffiliateItemInfo", new getExAffiliateItemInfo());
11402
      processMap.put("getExAffiliateItemInfo", new getExAffiliateItemInfo());
11348
      processMap.put("getAllItemstoListOnFbg", new getAllItemstoListOnFbg());
11403
      processMap.put("getAllItemstoListOnFbg", new getAllItemstoListOnFbg());
-
 
11404
      processMap.put("getAllFbgListedItems", new getAllFbgListedItems());
11349
      return processMap;
11405
      return processMap;
11350
    }
11406
    }
11351
 
11407
 
11352
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
11408
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
11353
      public addItem() {
11409
      public addItem() {
Line 14463... Line 14519...
14463
        result.success = iface.getAllItemstoListOnFbg();
14519
        result.success = iface.getAllItemstoListOnFbg();
14464
        return result;
14520
        return result;
14465
      }
14521
      }
14466
    }
14522
    }
14467
 
14523
 
-
 
14524
    private static class getAllFbgListedItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllFbgListedItems_args> {
-
 
14525
      public getAllFbgListedItems() {
-
 
14526
        super("getAllFbgListedItems");
-
 
14527
      }
-
 
14528
 
-
 
14529
      protected getAllFbgListedItems_args getEmptyArgsInstance() {
-
 
14530
        return new getAllFbgListedItems_args();
-
 
14531
      }
-
 
14532
 
-
 
14533
      protected getAllFbgListedItems_result getResult(I iface, getAllFbgListedItems_args args) throws org.apache.thrift.TException {
-
 
14534
        getAllFbgListedItems_result result = new getAllFbgListedItems_result();
-
 
14535
        result.success = iface.getAllFbgListedItems();
-
 
14536
        return result;
-
 
14537
      }
-
 
14538
    }
-
 
14539
 
14468
  }
14540
  }
14469
 
14541
 
14470
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
14542
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
14471
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
14543
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
14472
 
14544
 
Line 129814... Line 129886...
129814
      boolean first = true;
129886
      boolean first = true;
129815
 
129887
 
129816
      sb.append("success:");
129888
      sb.append("success:");
129817
      if (this.success == null) {
129889
      if (this.success == null) {
129818
        sb.append("null");
129890
        sb.append("null");
-
 
129891
      } else {
-
 
129892
        sb.append(this.success);
-
 
129893
      }
-
 
129894
      first = false;
-
 
129895
      sb.append(")");
-
 
129896
      return sb.toString();
-
 
129897
    }
-
 
129898
 
-
 
129899
    public void validate() throws org.apache.thrift.TException {
-
 
129900
      // check for required fields
-
 
129901
    }
-
 
129902
 
-
 
129903
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
129904
      try {
-
 
129905
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
129906
      } catch (org.apache.thrift.TException te) {
-
 
129907
        throw new java.io.IOException(te);
-
 
129908
      }
-
 
129909
    }
-
 
129910
 
-
 
129911
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
129912
      try {
-
 
129913
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
129914
      } catch (org.apache.thrift.TException te) {
-
 
129915
        throw new java.io.IOException(te);
-
 
129916
      }
-
 
129917
    }
-
 
129918
 
-
 
129919
  }
-
 
129920
 
-
 
129921
  public static class getAllFbgListedItems_args implements org.apache.thrift.TBase<getAllFbgListedItems_args, getAllFbgListedItems_args._Fields>, java.io.Serializable, Cloneable   {
-
 
129922
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFbgListedItems_args");
-
 
129923
 
-
 
129924
 
-
 
129925
 
-
 
129926
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
129927
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
129928
;
-
 
129929
 
-
 
129930
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
129931
 
-
 
129932
      static {
-
 
129933
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
129934
          byName.put(field.getFieldName(), field);
-
 
129935
        }
-
 
129936
      }
-
 
129937
 
-
 
129938
      /**
-
 
129939
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
129940
       */
-
 
129941
      public static _Fields findByThriftId(int fieldId) {
-
 
129942
        switch(fieldId) {
-
 
129943
          default:
-
 
129944
            return null;
-
 
129945
        }
-
 
129946
      }
-
 
129947
 
-
 
129948
      /**
-
 
129949
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
129950
       * if it is not found.
-
 
129951
       */
-
 
129952
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
129953
        _Fields fields = findByThriftId(fieldId);
-
 
129954
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
129955
        return fields;
-
 
129956
      }
-
 
129957
 
-
 
129958
      /**
-
 
129959
       * Find the _Fields constant that matches name, or null if its not found.
-
 
129960
       */
-
 
129961
      public static _Fields findByName(String name) {
-
 
129962
        return byName.get(name);
-
 
129963
      }
-
 
129964
 
-
 
129965
      private final short _thriftId;
-
 
129966
      private final String _fieldName;
-
 
129967
 
-
 
129968
      _Fields(short thriftId, String fieldName) {
-
 
129969
        _thriftId = thriftId;
-
 
129970
        _fieldName = fieldName;
-
 
129971
      }
-
 
129972
 
-
 
129973
      public short getThriftFieldId() {
-
 
129974
        return _thriftId;
-
 
129975
      }
-
 
129976
 
-
 
129977
      public String getFieldName() {
-
 
129978
        return _fieldName;
-
 
129979
      }
-
 
129980
    }
-
 
129981
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
129982
    static {
-
 
129983
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
129984
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
129985
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFbgListedItems_args.class, metaDataMap);
-
 
129986
    }
-
 
129987
 
-
 
129988
    public getAllFbgListedItems_args() {
-
 
129989
    }
-
 
129990
 
-
 
129991
    /**
-
 
129992
     * Performs a deep copy on <i>other</i>.
-
 
129993
     */
-
 
129994
    public getAllFbgListedItems_args(getAllFbgListedItems_args other) {
-
 
129995
    }
-
 
129996
 
-
 
129997
    public getAllFbgListedItems_args deepCopy() {
-
 
129998
      return new getAllFbgListedItems_args(this);
-
 
129999
    }
-
 
130000
 
-
 
130001
    @Override
-
 
130002
    public void clear() {
-
 
130003
    }
-
 
130004
 
-
 
130005
    public void setFieldValue(_Fields field, Object value) {
-
 
130006
      switch (field) {
-
 
130007
      }
-
 
130008
    }
-
 
130009
 
-
 
130010
    public Object getFieldValue(_Fields field) {
-
 
130011
      switch (field) {
-
 
130012
      }
-
 
130013
      throw new IllegalStateException();
-
 
130014
    }
-
 
130015
 
-
 
130016
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
130017
    public boolean isSet(_Fields field) {
-
 
130018
      if (field == null) {
-
 
130019
        throw new IllegalArgumentException();
-
 
130020
      }
-
 
130021
 
-
 
130022
      switch (field) {
-
 
130023
      }
-
 
130024
      throw new IllegalStateException();
-
 
130025
    }
-
 
130026
 
-
 
130027
    @Override
-
 
130028
    public boolean equals(Object that) {
-
 
130029
      if (that == null)
-
 
130030
        return false;
-
 
130031
      if (that instanceof getAllFbgListedItems_args)
-
 
130032
        return this.equals((getAllFbgListedItems_args)that);
-
 
130033
      return false;
-
 
130034
    }
-
 
130035
 
-
 
130036
    public boolean equals(getAllFbgListedItems_args that) {
-
 
130037
      if (that == null)
-
 
130038
        return false;
-
 
130039
 
-
 
130040
      return true;
-
 
130041
    }
-
 
130042
 
-
 
130043
    @Override
-
 
130044
    public int hashCode() {
-
 
130045
      return 0;
-
 
130046
    }
-
 
130047
 
-
 
130048
    public int compareTo(getAllFbgListedItems_args other) {
-
 
130049
      if (!getClass().equals(other.getClass())) {
-
 
130050
        return getClass().getName().compareTo(other.getClass().getName());
-
 
130051
      }
-
 
130052
 
-
 
130053
      int lastComparison = 0;
-
 
130054
      getAllFbgListedItems_args typedOther = (getAllFbgListedItems_args)other;
-
 
130055
 
-
 
130056
      return 0;
-
 
130057
    }
-
 
130058
 
-
 
130059
    public _Fields fieldForId(int fieldId) {
-
 
130060
      return _Fields.findByThriftId(fieldId);
-
 
130061
    }
-
 
130062
 
-
 
130063
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
130064
      org.apache.thrift.protocol.TField field;
-
 
130065
      iprot.readStructBegin();
-
 
130066
      while (true)
-
 
130067
      {
-
 
130068
        field = iprot.readFieldBegin();
-
 
130069
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
130070
          break;
-
 
130071
        }
-
 
130072
        switch (field.id) {
-
 
130073
          default:
-
 
130074
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
130075
        }
-
 
130076
        iprot.readFieldEnd();
-
 
130077
      }
-
 
130078
      iprot.readStructEnd();
-
 
130079
      validate();
-
 
130080
    }
-
 
130081
 
-
 
130082
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
130083
      validate();
-
 
130084
 
-
 
130085
      oprot.writeStructBegin(STRUCT_DESC);
-
 
130086
      oprot.writeFieldStop();
-
 
130087
      oprot.writeStructEnd();
-
 
130088
    }
-
 
130089
 
-
 
130090
    @Override
-
 
130091
    public String toString() {
-
 
130092
      StringBuilder sb = new StringBuilder("getAllFbgListedItems_args(");
-
 
130093
      boolean first = true;
-
 
130094
 
-
 
130095
      sb.append(")");
-
 
130096
      return sb.toString();
-
 
130097
    }
-
 
130098
 
-
 
130099
    public void validate() throws org.apache.thrift.TException {
-
 
130100
      // check for required fields
-
 
130101
    }
-
 
130102
 
-
 
130103
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
130104
      try {
-
 
130105
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
130106
      } catch (org.apache.thrift.TException te) {
-
 
130107
        throw new java.io.IOException(te);
-
 
130108
      }
-
 
130109
    }
-
 
130110
 
-
 
130111
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
130112
      try {
-
 
130113
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
130114
      } catch (org.apache.thrift.TException te) {
-
 
130115
        throw new java.io.IOException(te);
-
 
130116
      }
-
 
130117
    }
-
 
130118
 
-
 
130119
  }
-
 
130120
 
-
 
130121
  public static class getAllFbgListedItems_result implements org.apache.thrift.TBase<getAllFbgListedItems_result, getAllFbgListedItems_result._Fields>, java.io.Serializable, Cloneable   {
-
 
130122
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFbgListedItems_result");
-
 
130123
 
-
 
130124
    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);
-
 
130125
 
-
 
130126
    private List<Amazonlisted> success; // required
-
 
130127
 
-
 
130128
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
130129
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
130130
      SUCCESS((short)0, "success");
-
 
130131
 
-
 
130132
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
130133
 
-
 
130134
      static {
-
 
130135
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
130136
          byName.put(field.getFieldName(), field);
-
 
130137
        }
-
 
130138
      }
-
 
130139
 
-
 
130140
      /**
-
 
130141
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
130142
       */
-
 
130143
      public static _Fields findByThriftId(int fieldId) {
-
 
130144
        switch(fieldId) {
-
 
130145
          case 0: // SUCCESS
-
 
130146
            return SUCCESS;
-
 
130147
          default:
-
 
130148
            return null;
-
 
130149
        }
-
 
130150
      }
-
 
130151
 
-
 
130152
      /**
-
 
130153
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
130154
       * if it is not found.
-
 
130155
       */
-
 
130156
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
130157
        _Fields fields = findByThriftId(fieldId);
-
 
130158
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
130159
        return fields;
-
 
130160
      }
-
 
130161
 
-
 
130162
      /**
-
 
130163
       * Find the _Fields constant that matches name, or null if its not found.
-
 
130164
       */
-
 
130165
      public static _Fields findByName(String name) {
-
 
130166
        return byName.get(name);
-
 
130167
      }
-
 
130168
 
-
 
130169
      private final short _thriftId;
-
 
130170
      private final String _fieldName;
-
 
130171
 
-
 
130172
      _Fields(short thriftId, String fieldName) {
-
 
130173
        _thriftId = thriftId;
-
 
130174
        _fieldName = fieldName;
-
 
130175
      }
-
 
130176
 
-
 
130177
      public short getThriftFieldId() {
-
 
130178
        return _thriftId;
-
 
130179
      }
-
 
130180
 
-
 
130181
      public String getFieldName() {
-
 
130182
        return _fieldName;
-
 
130183
      }
-
 
130184
    }
-
 
130185
 
-
 
130186
    // isset id assignments
-
 
130187
 
-
 
130188
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
130189
    static {
-
 
130190
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
130191
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
130192
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
130193
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Amazonlisted.class))));
-
 
130194
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
130195
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFbgListedItems_result.class, metaDataMap);
-
 
130196
    }
-
 
130197
 
-
 
130198
    public getAllFbgListedItems_result() {
-
 
130199
    }
-
 
130200
 
-
 
130201
    public getAllFbgListedItems_result(
-
 
130202
      List<Amazonlisted> success)
-
 
130203
    {
-
 
130204
      this();
-
 
130205
      this.success = success;
-
 
130206
    }
-
 
130207
 
-
 
130208
    /**
-
 
130209
     * Performs a deep copy on <i>other</i>.
-
 
130210
     */
-
 
130211
    public getAllFbgListedItems_result(getAllFbgListedItems_result other) {
-
 
130212
      if (other.isSetSuccess()) {
-
 
130213
        List<Amazonlisted> __this__success = new ArrayList<Amazonlisted>();
-
 
130214
        for (Amazonlisted other_element : other.success) {
-
 
130215
          __this__success.add(new Amazonlisted(other_element));
-
 
130216
        }
-
 
130217
        this.success = __this__success;
-
 
130218
      }
-
 
130219
    }
-
 
130220
 
-
 
130221
    public getAllFbgListedItems_result deepCopy() {
-
 
130222
      return new getAllFbgListedItems_result(this);
-
 
130223
    }
-
 
130224
 
-
 
130225
    @Override
-
 
130226
    public void clear() {
-
 
130227
      this.success = null;
-
 
130228
    }
-
 
130229
 
-
 
130230
    public int getSuccessSize() {
-
 
130231
      return (this.success == null) ? 0 : this.success.size();
-
 
130232
    }
-
 
130233
 
-
 
130234
    public java.util.Iterator<Amazonlisted> getSuccessIterator() {
-
 
130235
      return (this.success == null) ? null : this.success.iterator();
-
 
130236
    }
-
 
130237
 
-
 
130238
    public void addToSuccess(Amazonlisted elem) {
-
 
130239
      if (this.success == null) {
-
 
130240
        this.success = new ArrayList<Amazonlisted>();
-
 
130241
      }
-
 
130242
      this.success.add(elem);
-
 
130243
    }
-
 
130244
 
-
 
130245
    public List<Amazonlisted> getSuccess() {
-
 
130246
      return this.success;
-
 
130247
    }
-
 
130248
 
-
 
130249
    public void setSuccess(List<Amazonlisted> success) {
-
 
130250
      this.success = success;
-
 
130251
    }
-
 
130252
 
-
 
130253
    public void unsetSuccess() {
-
 
130254
      this.success = null;
-
 
130255
    }
-
 
130256
 
-
 
130257
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
130258
    public boolean isSetSuccess() {
-
 
130259
      return this.success != null;
-
 
130260
    }
-
 
130261
 
-
 
130262
    public void setSuccessIsSet(boolean value) {
-
 
130263
      if (!value) {
-
 
130264
        this.success = null;
-
 
130265
      }
-
 
130266
    }
-
 
130267
 
-
 
130268
    public void setFieldValue(_Fields field, Object value) {
-
 
130269
      switch (field) {
-
 
130270
      case SUCCESS:
-
 
130271
        if (value == null) {
-
 
130272
          unsetSuccess();
-
 
130273
        } else {
-
 
130274
          setSuccess((List<Amazonlisted>)value);
-
 
130275
        }
-
 
130276
        break;
-
 
130277
 
-
 
130278
      }
-
 
130279
    }
-
 
130280
 
-
 
130281
    public Object getFieldValue(_Fields field) {
-
 
130282
      switch (field) {
-
 
130283
      case SUCCESS:
-
 
130284
        return getSuccess();
-
 
130285
 
-
 
130286
      }
-
 
130287
      throw new IllegalStateException();
-
 
130288
    }
-
 
130289
 
-
 
130290
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
130291
    public boolean isSet(_Fields field) {
-
 
130292
      if (field == null) {
-
 
130293
        throw new IllegalArgumentException();
-
 
130294
      }
-
 
130295
 
-
 
130296
      switch (field) {
-
 
130297
      case SUCCESS:
-
 
130298
        return isSetSuccess();
-
 
130299
      }
-
 
130300
      throw new IllegalStateException();
-
 
130301
    }
-
 
130302
 
-
 
130303
    @Override
-
 
130304
    public boolean equals(Object that) {
-
 
130305
      if (that == null)
-
 
130306
        return false;
-
 
130307
      if (that instanceof getAllFbgListedItems_result)
-
 
130308
        return this.equals((getAllFbgListedItems_result)that);
-
 
130309
      return false;
-
 
130310
    }
-
 
130311
 
-
 
130312
    public boolean equals(getAllFbgListedItems_result that) {
-
 
130313
      if (that == null)
-
 
130314
        return false;
-
 
130315
 
-
 
130316
      boolean this_present_success = true && this.isSetSuccess();
-
 
130317
      boolean that_present_success = true && that.isSetSuccess();
-
 
130318
      if (this_present_success || that_present_success) {
-
 
130319
        if (!(this_present_success && that_present_success))
-
 
130320
          return false;
-
 
130321
        if (!this.success.equals(that.success))
-
 
130322
          return false;
-
 
130323
      }
-
 
130324
 
-
 
130325
      return true;
-
 
130326
    }
-
 
130327
 
-
 
130328
    @Override
-
 
130329
    public int hashCode() {
-
 
130330
      return 0;
-
 
130331
    }
-
 
130332
 
-
 
130333
    public int compareTo(getAllFbgListedItems_result other) {
-
 
130334
      if (!getClass().equals(other.getClass())) {
-
 
130335
        return getClass().getName().compareTo(other.getClass().getName());
-
 
130336
      }
-
 
130337
 
-
 
130338
      int lastComparison = 0;
-
 
130339
      getAllFbgListedItems_result typedOther = (getAllFbgListedItems_result)other;
-
 
130340
 
-
 
130341
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
130342
      if (lastComparison != 0) {
-
 
130343
        return lastComparison;
-
 
130344
      }
-
 
130345
      if (isSetSuccess()) {
-
 
130346
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
130347
        if (lastComparison != 0) {
-
 
130348
          return lastComparison;
-
 
130349
        }
-
 
130350
      }
-
 
130351
      return 0;
-
 
130352
    }
-
 
130353
 
-
 
130354
    public _Fields fieldForId(int fieldId) {
-
 
130355
      return _Fields.findByThriftId(fieldId);
-
 
130356
    }
-
 
130357
 
-
 
130358
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
130359
      org.apache.thrift.protocol.TField field;
-
 
130360
      iprot.readStructBegin();
-
 
130361
      while (true)
-
 
130362
      {
-
 
130363
        field = iprot.readFieldBegin();
-
 
130364
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
130365
          break;
-
 
130366
        }
-
 
130367
        switch (field.id) {
-
 
130368
          case 0: // SUCCESS
-
 
130369
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
130370
              {
-
 
130371
                org.apache.thrift.protocol.TList _list443 = iprot.readListBegin();
-
 
130372
                this.success = new ArrayList<Amazonlisted>(_list443.size);
-
 
130373
                for (int _i444 = 0; _i444 < _list443.size; ++_i444)
-
 
130374
                {
-
 
130375
                  Amazonlisted _elem445; // required
-
 
130376
                  _elem445 = new Amazonlisted();
-
 
130377
                  _elem445.read(iprot);
-
 
130378
                  this.success.add(_elem445);
-
 
130379
                }
-
 
130380
                iprot.readListEnd();
-
 
130381
              }
-
 
130382
            } else { 
-
 
130383
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
130384
            }
-
 
130385
            break;
-
 
130386
          default:
-
 
130387
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
130388
        }
-
 
130389
        iprot.readFieldEnd();
-
 
130390
      }
-
 
130391
      iprot.readStructEnd();
-
 
130392
      validate();
-
 
130393
    }
-
 
130394
 
-
 
130395
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
130396
      oprot.writeStructBegin(STRUCT_DESC);
-
 
130397
 
-
 
130398
      if (this.isSetSuccess()) {
-
 
130399
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
130400
        {
-
 
130401
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
130402
          for (Amazonlisted _iter446 : this.success)
-
 
130403
          {
-
 
130404
            _iter446.write(oprot);
-
 
130405
          }
-
 
130406
          oprot.writeListEnd();
-
 
130407
        }
-
 
130408
        oprot.writeFieldEnd();
-
 
130409
      }
-
 
130410
      oprot.writeFieldStop();
-
 
130411
      oprot.writeStructEnd();
-
 
130412
    }
-
 
130413
 
-
 
130414
    @Override
-
 
130415
    public String toString() {
-
 
130416
      StringBuilder sb = new StringBuilder("getAllFbgListedItems_result(");
-
 
130417
      boolean first = true;
-
 
130418
 
-
 
130419
      sb.append("success:");
-
 
130420
      if (this.success == null) {
-
 
130421
        sb.append("null");
129819
      } else {
130422
      } else {
129820
        sb.append(this.success);
130423
        sb.append(this.success);
129821
      }
130424
      }
129822
      first = false;
130425
      first = false;
129823
      sb.append(")");
130426
      sb.append(")");