Subversion Repositories SmartDukaan

Rev

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

Rev 10140 Rev 10909
Line 528... Line 528...
528
 
528
 
529
    public List<FlipkartItemDetails> getAllFkItems() throws org.apache.thrift.TException;
529
    public List<FlipkartItemDetails> getAllFkItems() throws org.apache.thrift.TException;
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;
-
 
534
 
533
  }
535
  }
534
 
536
 
535
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
537
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
536
 
538
 
537
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
539
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 840... Line 842...
840
 
842
 
841
    public void getAllFkItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFkItems_call> resultHandler) throws org.apache.thrift.TException;
843
    public void getAllFkItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFkItems_call> resultHandler) throws org.apache.thrift.TException;
842
 
844
 
843
    public void getFlipkartItemBySkyAtFlipkart(String sku, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartItemBySkyAtFlipkart_call> resultHandler) throws org.apache.thrift.TException;
845
    public void getFlipkartItemBySkyAtFlipkart(String sku, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartItemBySkyAtFlipkart_call> resultHandler) throws org.apache.thrift.TException;
844
 
846
 
-
 
847
    public void getAllFbbListedItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFbbListedItems_call> resultHandler) throws org.apache.thrift.TException;
-
 
848
 
845
  }
849
  }
846
 
850
 
847
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
851
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
848
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
852
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
849
      public Factory() {}
853
      public Factory() {}
Line 4508... Line 4512...
4508
        return result.success;
4512
        return result.success;
4509
      }
4513
      }
4510
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFlipkartItemBySkyAtFlipkart failed: unknown result");
4514
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFlipkartItemBySkyAtFlipkart failed: unknown result");
4511
    }
4515
    }
4512
 
4516
 
-
 
4517
    public List<Amazonlisted> getAllFbbListedItems() throws org.apache.thrift.TException
-
 
4518
    {
-
 
4519
      send_getAllFbbListedItems();
-
 
4520
      return recv_getAllFbbListedItems();
-
 
4521
    }
-
 
4522
 
-
 
4523
    public void send_getAllFbbListedItems() throws org.apache.thrift.TException
-
 
4524
    {
-
 
4525
      getAllFbbListedItems_args args = new getAllFbbListedItems_args();
-
 
4526
      sendBase("getAllFbbListedItems", args);
-
 
4527
    }
-
 
4528
 
-
 
4529
    public List<Amazonlisted> recv_getAllFbbListedItems() throws org.apache.thrift.TException
-
 
4530
    {
-
 
4531
      getAllFbbListedItems_result result = new getAllFbbListedItems_result();
-
 
4532
      receiveBase(result, "getAllFbbListedItems");
-
 
4533
      if (result.isSetSuccess()) {
-
 
4534
        return result.success;
-
 
4535
      }
-
 
4536
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllFbbListedItems failed: unknown result");
-
 
4537
    }
-
 
4538
 
4513
  }
4539
  }
4514
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4540
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4515
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4541
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4516
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4542
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4517
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
4543
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 9586... Line 9612...
9586
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9612
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9587
        return (new Client(prot)).recv_getFlipkartItemBySkyAtFlipkart();
9613
        return (new Client(prot)).recv_getFlipkartItemBySkyAtFlipkart();
9588
      }
9614
      }
9589
    }
9615
    }
9590
 
9616
 
-
 
9617
    public void getAllFbbListedItems(org.apache.thrift.async.AsyncMethodCallback<getAllFbbListedItems_call> resultHandler) throws org.apache.thrift.TException {
-
 
9618
      checkReady();
-
 
9619
      getAllFbbListedItems_call method_call = new getAllFbbListedItems_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
9620
      this.___currentMethod = method_call;
-
 
9621
      ___manager.call(method_call);
-
 
9622
    }
-
 
9623
 
-
 
9624
    public static class getAllFbbListedItems_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
9625
      public getAllFbbListedItems_call(org.apache.thrift.async.AsyncMethodCallback<getAllFbbListedItems_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 {
-
 
9626
        super(client, protocolFactory, transport, resultHandler, false);
-
 
9627
      }
-
 
9628
 
-
 
9629
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
9630
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllFbbListedItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
9631
        getAllFbbListedItems_args args = new getAllFbbListedItems_args();
-
 
9632
        args.write(prot);
-
 
9633
        prot.writeMessageEnd();
-
 
9634
      }
-
 
9635
 
-
 
9636
      public List<Amazonlisted> getResult() throws org.apache.thrift.TException {
-
 
9637
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
9638
          throw new IllegalStateException("Method call not finished!");
-
 
9639
        }
-
 
9640
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
9641
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
9642
        return (new Client(prot)).recv_getAllFbbListedItems();
-
 
9643
      }
-
 
9644
    }
-
 
9645
 
9591
  }
9646
  }
9592
 
9647
 
9593
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
9648
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
9594
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
9649
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
9595
    public Processor(I iface) {
9650
    public Processor(I iface) {
Line 9753... Line 9808...
9753
      processMap.put("searchFlipkartItems", new searchFlipkartItems());
9808
      processMap.put("searchFlipkartItems", new searchFlipkartItems());
9754
      processMap.put("getCountForFlipkartItems", new getCountForFlipkartItems());
9809
      processMap.put("getCountForFlipkartItems", new getCountForFlipkartItems());
9755
      processMap.put("getFlipkartSearchResultCount", new getFlipkartSearchResultCount());
9810
      processMap.put("getFlipkartSearchResultCount", new getFlipkartSearchResultCount());
9756
      processMap.put("getAllFkItems", new getAllFkItems());
9811
      processMap.put("getAllFkItems", new getAllFkItems());
9757
      processMap.put("getFlipkartItemBySkyAtFlipkart", new getFlipkartItemBySkyAtFlipkart());
9812
      processMap.put("getFlipkartItemBySkyAtFlipkart", new getFlipkartItemBySkyAtFlipkart());
-
 
9813
      processMap.put("getAllFbbListedItems", new getAllFbbListedItems());
9758
      return processMap;
9814
      return processMap;
9759
    }
9815
    }
9760
 
9816
 
9761
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
9817
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
9762
      public addItem() {
9818
      public addItem() {
Line 12441... Line 12497...
12441
        result.success = iface.getFlipkartItemBySkyAtFlipkart(args.sku);
12497
        result.success = iface.getFlipkartItemBySkyAtFlipkart(args.sku);
12442
        return result;
12498
        return result;
12443
      }
12499
      }
12444
    }
12500
    }
12445
 
12501
 
-
 
12502
    private static class getAllFbbListedItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllFbbListedItems_args> {
-
 
12503
      public getAllFbbListedItems() {
-
 
12504
        super("getAllFbbListedItems");
-
 
12505
      }
-
 
12506
 
-
 
12507
      protected getAllFbbListedItems_args getEmptyArgsInstance() {
-
 
12508
        return new getAllFbbListedItems_args();
-
 
12509
      }
-
 
12510
 
-
 
12511
      protected getAllFbbListedItems_result getResult(I iface, getAllFbbListedItems_args args) throws org.apache.thrift.TException {
-
 
12512
        getAllFbbListedItems_result result = new getAllFbbListedItems_result();
-
 
12513
        result.success = iface.getAllFbbListedItems();
-
 
12514
        return result;
-
 
12515
      }
-
 
12516
    }
-
 
12517
 
12446
  }
12518
  }
12447
 
12519
 
12448
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
12520
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
12449
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
12521
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
12450
 
12522
 
Line 111098... Line 111170...
111098
      boolean first = true;
111170
      boolean first = true;
111099
 
111171
 
111100
      sb.append("success:");
111172
      sb.append("success:");
111101
      if (this.success == null) {
111173
      if (this.success == null) {
111102
        sb.append("null");
111174
        sb.append("null");
-
 
111175
      } else {
-
 
111176
        sb.append(this.success);
-
 
111177
      }
-
 
111178
      first = false;
-
 
111179
      sb.append(")");
-
 
111180
      return sb.toString();
-
 
111181
    }
-
 
111182
 
-
 
111183
    public void validate() throws org.apache.thrift.TException {
-
 
111184
      // check for required fields
-
 
111185
    }
-
 
111186
 
-
 
111187
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
111188
      try {
-
 
111189
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
111190
      } catch (org.apache.thrift.TException te) {
-
 
111191
        throw new java.io.IOException(te);
-
 
111192
      }
-
 
111193
    }
-
 
111194
 
-
 
111195
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
111196
      try {
-
 
111197
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
111198
      } catch (org.apache.thrift.TException te) {
-
 
111199
        throw new java.io.IOException(te);
-
 
111200
      }
-
 
111201
    }
-
 
111202
 
-
 
111203
  }
-
 
111204
 
-
 
111205
  public static class getAllFbbListedItems_args implements org.apache.thrift.TBase<getAllFbbListedItems_args, getAllFbbListedItems_args._Fields>, java.io.Serializable, Cloneable   {
-
 
111206
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFbbListedItems_args");
-
 
111207
 
-
 
111208
 
-
 
111209
 
-
 
111210
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
111211
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
111212
;
-
 
111213
 
-
 
111214
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
111215
 
-
 
111216
      static {
-
 
111217
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
111218
          byName.put(field.getFieldName(), field);
-
 
111219
        }
-
 
111220
      }
-
 
111221
 
-
 
111222
      /**
-
 
111223
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
111224
       */
-
 
111225
      public static _Fields findByThriftId(int fieldId) {
-
 
111226
        switch(fieldId) {
-
 
111227
          default:
-
 
111228
            return null;
-
 
111229
        }
-
 
111230
      }
-
 
111231
 
-
 
111232
      /**
-
 
111233
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
111234
       * if it is not found.
-
 
111235
       */
-
 
111236
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
111237
        _Fields fields = findByThriftId(fieldId);
-
 
111238
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
111239
        return fields;
-
 
111240
      }
-
 
111241
 
-
 
111242
      /**
-
 
111243
       * Find the _Fields constant that matches name, or null if its not found.
-
 
111244
       */
-
 
111245
      public static _Fields findByName(String name) {
-
 
111246
        return byName.get(name);
-
 
111247
      }
-
 
111248
 
-
 
111249
      private final short _thriftId;
-
 
111250
      private final String _fieldName;
-
 
111251
 
-
 
111252
      _Fields(short thriftId, String fieldName) {
-
 
111253
        _thriftId = thriftId;
-
 
111254
        _fieldName = fieldName;
-
 
111255
      }
-
 
111256
 
-
 
111257
      public short getThriftFieldId() {
-
 
111258
        return _thriftId;
-
 
111259
      }
-
 
111260
 
-
 
111261
      public String getFieldName() {
-
 
111262
        return _fieldName;
-
 
111263
      }
-
 
111264
    }
-
 
111265
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
111266
    static {
-
 
111267
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
111268
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
111269
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFbbListedItems_args.class, metaDataMap);
-
 
111270
    }
-
 
111271
 
-
 
111272
    public getAllFbbListedItems_args() {
-
 
111273
    }
-
 
111274
 
-
 
111275
    /**
-
 
111276
     * Performs a deep copy on <i>other</i>.
-
 
111277
     */
-
 
111278
    public getAllFbbListedItems_args(getAllFbbListedItems_args other) {
-
 
111279
    }
-
 
111280
 
-
 
111281
    public getAllFbbListedItems_args deepCopy() {
-
 
111282
      return new getAllFbbListedItems_args(this);
-
 
111283
    }
-
 
111284
 
-
 
111285
    @Override
-
 
111286
    public void clear() {
-
 
111287
    }
-
 
111288
 
-
 
111289
    public void setFieldValue(_Fields field, Object value) {
-
 
111290
      switch (field) {
-
 
111291
      }
-
 
111292
    }
-
 
111293
 
-
 
111294
    public Object getFieldValue(_Fields field) {
-
 
111295
      switch (field) {
-
 
111296
      }
-
 
111297
      throw new IllegalStateException();
-
 
111298
    }
-
 
111299
 
-
 
111300
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
111301
    public boolean isSet(_Fields field) {
-
 
111302
      if (field == null) {
-
 
111303
        throw new IllegalArgumentException();
-
 
111304
      }
-
 
111305
 
-
 
111306
      switch (field) {
-
 
111307
      }
-
 
111308
      throw new IllegalStateException();
-
 
111309
    }
-
 
111310
 
-
 
111311
    @Override
-
 
111312
    public boolean equals(Object that) {
-
 
111313
      if (that == null)
-
 
111314
        return false;
-
 
111315
      if (that instanceof getAllFbbListedItems_args)
-
 
111316
        return this.equals((getAllFbbListedItems_args)that);
-
 
111317
      return false;
-
 
111318
    }
-
 
111319
 
-
 
111320
    public boolean equals(getAllFbbListedItems_args that) {
-
 
111321
      if (that == null)
-
 
111322
        return false;
-
 
111323
 
-
 
111324
      return true;
-
 
111325
    }
-
 
111326
 
-
 
111327
    @Override
-
 
111328
    public int hashCode() {
-
 
111329
      return 0;
-
 
111330
    }
-
 
111331
 
-
 
111332
    public int compareTo(getAllFbbListedItems_args other) {
-
 
111333
      if (!getClass().equals(other.getClass())) {
-
 
111334
        return getClass().getName().compareTo(other.getClass().getName());
-
 
111335
      }
-
 
111336
 
-
 
111337
      int lastComparison = 0;
-
 
111338
      getAllFbbListedItems_args typedOther = (getAllFbbListedItems_args)other;
-
 
111339
 
-
 
111340
      return 0;
-
 
111341
    }
-
 
111342
 
-
 
111343
    public _Fields fieldForId(int fieldId) {
-
 
111344
      return _Fields.findByThriftId(fieldId);
-
 
111345
    }
-
 
111346
 
-
 
111347
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
111348
      org.apache.thrift.protocol.TField field;
-
 
111349
      iprot.readStructBegin();
-
 
111350
      while (true)
-
 
111351
      {
-
 
111352
        field = iprot.readFieldBegin();
-
 
111353
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
111354
          break;
-
 
111355
        }
-
 
111356
        switch (field.id) {
-
 
111357
          default:
-
 
111358
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
111359
        }
-
 
111360
        iprot.readFieldEnd();
-
 
111361
      }
-
 
111362
      iprot.readStructEnd();
-
 
111363
      validate();
-
 
111364
    }
-
 
111365
 
-
 
111366
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
111367
      validate();
-
 
111368
 
-
 
111369
      oprot.writeStructBegin(STRUCT_DESC);
-
 
111370
      oprot.writeFieldStop();
-
 
111371
      oprot.writeStructEnd();
-
 
111372
    }
-
 
111373
 
-
 
111374
    @Override
-
 
111375
    public String toString() {
-
 
111376
      StringBuilder sb = new StringBuilder("getAllFbbListedItems_args(");
-
 
111377
      boolean first = true;
-
 
111378
 
-
 
111379
      sb.append(")");
-
 
111380
      return sb.toString();
-
 
111381
    }
-
 
111382
 
-
 
111383
    public void validate() throws org.apache.thrift.TException {
-
 
111384
      // check for required fields
-
 
111385
    }
-
 
111386
 
-
 
111387
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
111388
      try {
-
 
111389
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
111390
      } catch (org.apache.thrift.TException te) {
-
 
111391
        throw new java.io.IOException(te);
-
 
111392
      }
-
 
111393
    }
-
 
111394
 
-
 
111395
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
111396
      try {
-
 
111397
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
111398
      } catch (org.apache.thrift.TException te) {
-
 
111399
        throw new java.io.IOException(te);
-
 
111400
      }
-
 
111401
    }
-
 
111402
 
-
 
111403
  }
-
 
111404
 
-
 
111405
  public static class getAllFbbListedItems_result implements org.apache.thrift.TBase<getAllFbbListedItems_result, getAllFbbListedItems_result._Fields>, java.io.Serializable, Cloneable   {
-
 
111406
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFbbListedItems_result");
-
 
111407
 
-
 
111408
    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);
-
 
111409
 
-
 
111410
    private List<Amazonlisted> success; // required
-
 
111411
 
-
 
111412
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
111413
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
111414
      SUCCESS((short)0, "success");
-
 
111415
 
-
 
111416
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
111417
 
-
 
111418
      static {
-
 
111419
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
111420
          byName.put(field.getFieldName(), field);
-
 
111421
        }
-
 
111422
      }
-
 
111423
 
-
 
111424
      /**
-
 
111425
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
111426
       */
-
 
111427
      public static _Fields findByThriftId(int fieldId) {
-
 
111428
        switch(fieldId) {
-
 
111429
          case 0: // SUCCESS
-
 
111430
            return SUCCESS;
-
 
111431
          default:
-
 
111432
            return null;
-
 
111433
        }
-
 
111434
      }
-
 
111435
 
-
 
111436
      /**
-
 
111437
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
111438
       * if it is not found.
-
 
111439
       */
-
 
111440
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
111441
        _Fields fields = findByThriftId(fieldId);
-
 
111442
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
111443
        return fields;
-
 
111444
      }
-
 
111445
 
-
 
111446
      /**
-
 
111447
       * Find the _Fields constant that matches name, or null if its not found.
-
 
111448
       */
-
 
111449
      public static _Fields findByName(String name) {
-
 
111450
        return byName.get(name);
-
 
111451
      }
-
 
111452
 
-
 
111453
      private final short _thriftId;
-
 
111454
      private final String _fieldName;
-
 
111455
 
-
 
111456
      _Fields(short thriftId, String fieldName) {
-
 
111457
        _thriftId = thriftId;
-
 
111458
        _fieldName = fieldName;
-
 
111459
      }
-
 
111460
 
-
 
111461
      public short getThriftFieldId() {
-
 
111462
        return _thriftId;
-
 
111463
      }
-
 
111464
 
-
 
111465
      public String getFieldName() {
-
 
111466
        return _fieldName;
-
 
111467
      }
-
 
111468
    }
-
 
111469
 
-
 
111470
    // isset id assignments
-
 
111471
 
-
 
111472
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
111473
    static {
-
 
111474
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
111475
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
111476
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
111477
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Amazonlisted.class))));
-
 
111478
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
111479
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFbbListedItems_result.class, metaDataMap);
-
 
111480
    }
-
 
111481
 
-
 
111482
    public getAllFbbListedItems_result() {
-
 
111483
    }
-
 
111484
 
-
 
111485
    public getAllFbbListedItems_result(
-
 
111486
      List<Amazonlisted> success)
-
 
111487
    {
-
 
111488
      this();
-
 
111489
      this.success = success;
-
 
111490
    }
-
 
111491
 
-
 
111492
    /**
-
 
111493
     * Performs a deep copy on <i>other</i>.
-
 
111494
     */
-
 
111495
    public getAllFbbListedItems_result(getAllFbbListedItems_result other) {
-
 
111496
      if (other.isSetSuccess()) {
-
 
111497
        List<Amazonlisted> __this__success = new ArrayList<Amazonlisted>();
-
 
111498
        for (Amazonlisted other_element : other.success) {
-
 
111499
          __this__success.add(new Amazonlisted(other_element));
-
 
111500
        }
-
 
111501
        this.success = __this__success;
-
 
111502
      }
-
 
111503
    }
-
 
111504
 
-
 
111505
    public getAllFbbListedItems_result deepCopy() {
-
 
111506
      return new getAllFbbListedItems_result(this);
-
 
111507
    }
-
 
111508
 
-
 
111509
    @Override
-
 
111510
    public void clear() {
-
 
111511
      this.success = null;
-
 
111512
    }
-
 
111513
 
-
 
111514
    public int getSuccessSize() {
-
 
111515
      return (this.success == null) ? 0 : this.success.size();
-
 
111516
    }
-
 
111517
 
-
 
111518
    public java.util.Iterator<Amazonlisted> getSuccessIterator() {
-
 
111519
      return (this.success == null) ? null : this.success.iterator();
-
 
111520
    }
-
 
111521
 
-
 
111522
    public void addToSuccess(Amazonlisted elem) {
-
 
111523
      if (this.success == null) {
-
 
111524
        this.success = new ArrayList<Amazonlisted>();
-
 
111525
      }
-
 
111526
      this.success.add(elem);
-
 
111527
    }
-
 
111528
 
-
 
111529
    public List<Amazonlisted> getSuccess() {
-
 
111530
      return this.success;
-
 
111531
    }
-
 
111532
 
-
 
111533
    public void setSuccess(List<Amazonlisted> success) {
-
 
111534
      this.success = success;
-
 
111535
    }
-
 
111536
 
-
 
111537
    public void unsetSuccess() {
-
 
111538
      this.success = null;
-
 
111539
    }
-
 
111540
 
-
 
111541
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
111542
    public boolean isSetSuccess() {
-
 
111543
      return this.success != null;
-
 
111544
    }
-
 
111545
 
-
 
111546
    public void setSuccessIsSet(boolean value) {
-
 
111547
      if (!value) {
-
 
111548
        this.success = null;
-
 
111549
      }
-
 
111550
    }
-
 
111551
 
-
 
111552
    public void setFieldValue(_Fields field, Object value) {
-
 
111553
      switch (field) {
-
 
111554
      case SUCCESS:
-
 
111555
        if (value == null) {
-
 
111556
          unsetSuccess();
-
 
111557
        } else {
-
 
111558
          setSuccess((List<Amazonlisted>)value);
-
 
111559
        }
-
 
111560
        break;
-
 
111561
 
-
 
111562
      }
-
 
111563
    }
-
 
111564
 
-
 
111565
    public Object getFieldValue(_Fields field) {
-
 
111566
      switch (field) {
-
 
111567
      case SUCCESS:
-
 
111568
        return getSuccess();
-
 
111569
 
-
 
111570
      }
-
 
111571
      throw new IllegalStateException();
-
 
111572
    }
-
 
111573
 
-
 
111574
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
111575
    public boolean isSet(_Fields field) {
-
 
111576
      if (field == null) {
-
 
111577
        throw new IllegalArgumentException();
-
 
111578
      }
-
 
111579
 
-
 
111580
      switch (field) {
-
 
111581
      case SUCCESS:
-
 
111582
        return isSetSuccess();
-
 
111583
      }
-
 
111584
      throw new IllegalStateException();
-
 
111585
    }
-
 
111586
 
-
 
111587
    @Override
-
 
111588
    public boolean equals(Object that) {
-
 
111589
      if (that == null)
-
 
111590
        return false;
-
 
111591
      if (that instanceof getAllFbbListedItems_result)
-
 
111592
        return this.equals((getAllFbbListedItems_result)that);
-
 
111593
      return false;
-
 
111594
    }
-
 
111595
 
-
 
111596
    public boolean equals(getAllFbbListedItems_result that) {
-
 
111597
      if (that == null)
-
 
111598
        return false;
-
 
111599
 
-
 
111600
      boolean this_present_success = true && this.isSetSuccess();
-
 
111601
      boolean that_present_success = true && that.isSetSuccess();
-
 
111602
      if (this_present_success || that_present_success) {
-
 
111603
        if (!(this_present_success && that_present_success))
-
 
111604
          return false;
-
 
111605
        if (!this.success.equals(that.success))
-
 
111606
          return false;
-
 
111607
      }
-
 
111608
 
-
 
111609
      return true;
-
 
111610
    }
-
 
111611
 
-
 
111612
    @Override
-
 
111613
    public int hashCode() {
-
 
111614
      return 0;
-
 
111615
    }
-
 
111616
 
-
 
111617
    public int compareTo(getAllFbbListedItems_result other) {
-
 
111618
      if (!getClass().equals(other.getClass())) {
-
 
111619
        return getClass().getName().compareTo(other.getClass().getName());
-
 
111620
      }
-
 
111621
 
-
 
111622
      int lastComparison = 0;
-
 
111623
      getAllFbbListedItems_result typedOther = (getAllFbbListedItems_result)other;
-
 
111624
 
-
 
111625
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
111626
      if (lastComparison != 0) {
-
 
111627
        return lastComparison;
-
 
111628
      }
-
 
111629
      if (isSetSuccess()) {
-
 
111630
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
111631
        if (lastComparison != 0) {
-
 
111632
          return lastComparison;
-
 
111633
        }
-
 
111634
      }
-
 
111635
      return 0;
-
 
111636
    }
-
 
111637
 
-
 
111638
    public _Fields fieldForId(int fieldId) {
-
 
111639
      return _Fields.findByThriftId(fieldId);
-
 
111640
    }
-
 
111641
 
-
 
111642
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
111643
      org.apache.thrift.protocol.TField field;
-
 
111644
      iprot.readStructBegin();
-
 
111645
      while (true)
-
 
111646
      {
-
 
111647
        field = iprot.readFieldBegin();
-
 
111648
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
111649
          break;
-
 
111650
        }
-
 
111651
        switch (field.id) {
-
 
111652
          case 0: // SUCCESS
-
 
111653
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
111654
              {
-
 
111655
                org.apache.thrift.protocol.TList _list353 = iprot.readListBegin();
-
 
111656
                this.success = new ArrayList<Amazonlisted>(_list353.size);
-
 
111657
                for (int _i354 = 0; _i354 < _list353.size; ++_i354)
-
 
111658
                {
-
 
111659
                  Amazonlisted _elem355; // required
-
 
111660
                  _elem355 = new Amazonlisted();
-
 
111661
                  _elem355.read(iprot);
-
 
111662
                  this.success.add(_elem355);
-
 
111663
                }
-
 
111664
                iprot.readListEnd();
-
 
111665
              }
-
 
111666
            } else { 
-
 
111667
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
111668
            }
-
 
111669
            break;
-
 
111670
          default:
-
 
111671
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
111672
        }
-
 
111673
        iprot.readFieldEnd();
-
 
111674
      }
-
 
111675
      iprot.readStructEnd();
-
 
111676
      validate();
-
 
111677
    }
-
 
111678
 
-
 
111679
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
111680
      oprot.writeStructBegin(STRUCT_DESC);
-
 
111681
 
-
 
111682
      if (this.isSetSuccess()) {
-
 
111683
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
111684
        {
-
 
111685
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
111686
          for (Amazonlisted _iter356 : this.success)
-
 
111687
          {
-
 
111688
            _iter356.write(oprot);
-
 
111689
          }
-
 
111690
          oprot.writeListEnd();
-
 
111691
        }
-
 
111692
        oprot.writeFieldEnd();
-
 
111693
      }
-
 
111694
      oprot.writeFieldStop();
-
 
111695
      oprot.writeStructEnd();
-
 
111696
    }
-
 
111697
 
-
 
111698
    @Override
-
 
111699
    public String toString() {
-
 
111700
      StringBuilder sb = new StringBuilder("getAllFbbListedItems_result(");
-
 
111701
      boolean first = true;
-
 
111702
 
-
 
111703
      sb.append("success:");
-
 
111704
      if (this.success == null) {
-
 
111705
        sb.append("null");
111103
      } else {
111706
      } else {
111104
        sb.append(this.success);
111707
        sb.append(this.success);
111105
      }
111708
      }
111106
      first = false;
111709
      first = false;
111107
      sb.append(")");
111710
      sb.append(")");