Subversion Repositories SmartDukaan

Rev

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

Rev 15702 Rev 15705
Line 596... Line 596...
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;
599
    public List<Amazonlisted> getAllItemstoListOnFbd() throws org.apache.thrift.TException;
600
 
600
 
-
 
601
    public List<Amazonlisted> getAllFbdListedItems() throws org.apache.thrift.TException;
-
 
602
 
601
  }
603
  }
602
 
604
 
603
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
605
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
604
 
606
 
605
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
607
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 976... Line 978...
976
 
978
 
977
    public void getPricingForDtr(long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPricingForDtr_call> resultHandler) throws org.apache.thrift.TException;
979
    public void getPricingForDtr(long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPricingForDtr_call> resultHandler) throws org.apache.thrift.TException;
978
 
980
 
979
    public void getAllItemstoListOnFbd(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemstoListOnFbd_call> resultHandler) throws org.apache.thrift.TException;
981
    public void getAllItemstoListOnFbd(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemstoListOnFbd_call> resultHandler) throws org.apache.thrift.TException;
980
 
982
 
-
 
983
    public void getAllFbdListedItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFbdListedItems_call> resultHandler) throws org.apache.thrift.TException;
-
 
984
 
981
  }
985
  }
982
 
986
 
983
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
987
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
984
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
988
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
985
      public Factory() {}
989
      public Factory() {}
Line 5437... Line 5441...
5437
        return result.success;
5441
        return result.success;
5438
      }
5442
      }
5439
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemstoListOnFbd failed: unknown result");
5443
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemstoListOnFbd failed: unknown result");
5440
    }
5444
    }
5441
 
5445
 
-
 
5446
    public List<Amazonlisted> getAllFbdListedItems() throws org.apache.thrift.TException
-
 
5447
    {
-
 
5448
      send_getAllFbdListedItems();
-
 
5449
      return recv_getAllFbdListedItems();
-
 
5450
    }
-
 
5451
 
-
 
5452
    public void send_getAllFbdListedItems() throws org.apache.thrift.TException
-
 
5453
    {
-
 
5454
      getAllFbdListedItems_args args = new getAllFbdListedItems_args();
-
 
5455
      sendBase("getAllFbdListedItems", args);
-
 
5456
    }
-
 
5457
 
-
 
5458
    public List<Amazonlisted> recv_getAllFbdListedItems() throws org.apache.thrift.TException
-
 
5459
    {
-
 
5460
      getAllFbdListedItems_result result = new getAllFbdListedItems_result();
-
 
5461
      receiveBase(result, "getAllFbdListedItems");
-
 
5462
      if (result.isSetSuccess()) {
-
 
5463
        return result.success;
-
 
5464
      }
-
 
5465
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllFbdListedItems failed: unknown result");
-
 
5466
    }
-
 
5467
 
5442
  }
5468
  }
5443
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5469
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5444
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5470
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5445
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5471
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5446
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
5472
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 11618... Line 11644...
11618
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11644
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11619
        return (new Client(prot)).recv_getAllItemstoListOnFbd();
11645
        return (new Client(prot)).recv_getAllItemstoListOnFbd();
11620
      }
11646
      }
11621
    }
11647
    }
11622
 
11648
 
-
 
11649
    public void getAllFbdListedItems(org.apache.thrift.async.AsyncMethodCallback<getAllFbdListedItems_call> resultHandler) throws org.apache.thrift.TException {
-
 
11650
      checkReady();
-
 
11651
      getAllFbdListedItems_call method_call = new getAllFbdListedItems_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
11652
      this.___currentMethod = method_call;
-
 
11653
      ___manager.call(method_call);
-
 
11654
    }
-
 
11655
 
-
 
11656
    public static class getAllFbdListedItems_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
11657
      public getAllFbdListedItems_call(org.apache.thrift.async.AsyncMethodCallback<getAllFbdListedItems_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 {
-
 
11658
        super(client, protocolFactory, transport, resultHandler, false);
-
 
11659
      }
-
 
11660
 
-
 
11661
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
11662
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllFbdListedItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
11663
        getAllFbdListedItems_args args = new getAllFbdListedItems_args();
-
 
11664
        args.write(prot);
-
 
11665
        prot.writeMessageEnd();
-
 
11666
      }
-
 
11667
 
-
 
11668
      public List<Amazonlisted> getResult() throws org.apache.thrift.TException {
-
 
11669
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
11670
          throw new IllegalStateException("Method call not finished!");
-
 
11671
        }
-
 
11672
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
11673
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
11674
        return (new Client(prot)).recv_getAllFbdListedItems();
-
 
11675
      }
-
 
11676
    }
-
 
11677
 
11623
  }
11678
  }
11624
 
11679
 
11625
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
11680
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
11626
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
11681
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
11627
    public Processor(I iface) {
11682
    public Processor(I iface) {
Line 11819... Line 11874...
11819
      processMap.put("addHsItem", new addHsItem());
11874
      processMap.put("addHsItem", new addHsItem());
11820
      processMap.put("getHsItem", new getHsItem());
11875
      processMap.put("getHsItem", new getHsItem());
11821
      processMap.put("updateHsItem", new updateHsItem());
11876
      processMap.put("updateHsItem", new updateHsItem());
11822
      processMap.put("getPricingForDtr", new getPricingForDtr());
11877
      processMap.put("getPricingForDtr", new getPricingForDtr());
11823
      processMap.put("getAllItemstoListOnFbd", new getAllItemstoListOnFbd());
11878
      processMap.put("getAllItemstoListOnFbd", new getAllItemstoListOnFbd());
-
 
11879
      processMap.put("getAllFbdListedItems", new getAllFbdListedItems());
11824
      return processMap;
11880
      return processMap;
11825
    }
11881
    }
11826
 
11882
 
11827
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
11883
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
11828
      public addItem() {
11884
      public addItem() {
Line 15077... Line 15133...
15077
        result.success = iface.getAllItemstoListOnFbd();
15133
        result.success = iface.getAllItemstoListOnFbd();
15078
        return result;
15134
        return result;
15079
      }
15135
      }
15080
    }
15136
    }
15081
 
15137
 
-
 
15138
    private static class getAllFbdListedItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllFbdListedItems_args> {
-
 
15139
      public getAllFbdListedItems() {
-
 
15140
        super("getAllFbdListedItems");
-
 
15141
      }
-
 
15142
 
-
 
15143
      protected getAllFbdListedItems_args getEmptyArgsInstance() {
-
 
15144
        return new getAllFbdListedItems_args();
-
 
15145
      }
-
 
15146
 
-
 
15147
      protected getAllFbdListedItems_result getResult(I iface, getAllFbdListedItems_args args) throws org.apache.thrift.TException {
-
 
15148
        getAllFbdListedItems_result result = new getAllFbdListedItems_result();
-
 
15149
        result.success = iface.getAllFbdListedItems();
-
 
15150
        return result;
-
 
15151
      }
-
 
15152
    }
-
 
15153
 
15082
  }
15154
  }
15083
 
15155
 
15084
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
15156
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
15085
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
15157
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
15086
 
15158
 
Line 135403... Line 135475...
135403
      boolean first = true;
135475
      boolean first = true;
135404
 
135476
 
135405
      sb.append("success:");
135477
      sb.append("success:");
135406
      if (this.success == null) {
135478
      if (this.success == null) {
135407
        sb.append("null");
135479
        sb.append("null");
-
 
135480
      } else {
-
 
135481
        sb.append(this.success);
-
 
135482
      }
-
 
135483
      first = false;
-
 
135484
      sb.append(")");
-
 
135485
      return sb.toString();
-
 
135486
    }
-
 
135487
 
-
 
135488
    public void validate() throws org.apache.thrift.TException {
-
 
135489
      // check for required fields
-
 
135490
    }
-
 
135491
 
-
 
135492
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
135493
      try {
-
 
135494
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
135495
      } catch (org.apache.thrift.TException te) {
-
 
135496
        throw new java.io.IOException(te);
-
 
135497
      }
-
 
135498
    }
-
 
135499
 
-
 
135500
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
135501
      try {
-
 
135502
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
135503
      } catch (org.apache.thrift.TException te) {
-
 
135504
        throw new java.io.IOException(te);
-
 
135505
      }
-
 
135506
    }
-
 
135507
 
-
 
135508
  }
-
 
135509
 
-
 
135510
  public static class getAllFbdListedItems_args implements org.apache.thrift.TBase<getAllFbdListedItems_args, getAllFbdListedItems_args._Fields>, java.io.Serializable, Cloneable   {
-
 
135511
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFbdListedItems_args");
-
 
135512
 
-
 
135513
 
-
 
135514
 
-
 
135515
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
135516
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
135517
;
-
 
135518
 
-
 
135519
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
135520
 
-
 
135521
      static {
-
 
135522
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
135523
          byName.put(field.getFieldName(), field);
-
 
135524
        }
-
 
135525
      }
-
 
135526
 
-
 
135527
      /**
-
 
135528
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
135529
       */
-
 
135530
      public static _Fields findByThriftId(int fieldId) {
-
 
135531
        switch(fieldId) {
-
 
135532
          default:
-
 
135533
            return null;
-
 
135534
        }
-
 
135535
      }
-
 
135536
 
-
 
135537
      /**
-
 
135538
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
135539
       * if it is not found.
-
 
135540
       */
-
 
135541
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
135542
        _Fields fields = findByThriftId(fieldId);
-
 
135543
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
135544
        return fields;
-
 
135545
      }
-
 
135546
 
-
 
135547
      /**
-
 
135548
       * Find the _Fields constant that matches name, or null if its not found.
-
 
135549
       */
-
 
135550
      public static _Fields findByName(String name) {
-
 
135551
        return byName.get(name);
-
 
135552
      }
-
 
135553
 
-
 
135554
      private final short _thriftId;
-
 
135555
      private final String _fieldName;
-
 
135556
 
-
 
135557
      _Fields(short thriftId, String fieldName) {
-
 
135558
        _thriftId = thriftId;
-
 
135559
        _fieldName = fieldName;
-
 
135560
      }
-
 
135561
 
-
 
135562
      public short getThriftFieldId() {
-
 
135563
        return _thriftId;
-
 
135564
      }
-
 
135565
 
-
 
135566
      public String getFieldName() {
-
 
135567
        return _fieldName;
-
 
135568
      }
-
 
135569
    }
-
 
135570
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
135571
    static {
-
 
135572
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
135573
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
135574
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFbdListedItems_args.class, metaDataMap);
-
 
135575
    }
-
 
135576
 
-
 
135577
    public getAllFbdListedItems_args() {
-
 
135578
    }
-
 
135579
 
-
 
135580
    /**
-
 
135581
     * Performs a deep copy on <i>other</i>.
-
 
135582
     */
-
 
135583
    public getAllFbdListedItems_args(getAllFbdListedItems_args other) {
-
 
135584
    }
-
 
135585
 
-
 
135586
    public getAllFbdListedItems_args deepCopy() {
-
 
135587
      return new getAllFbdListedItems_args(this);
-
 
135588
    }
-
 
135589
 
-
 
135590
    @Override
-
 
135591
    public void clear() {
-
 
135592
    }
-
 
135593
 
-
 
135594
    public void setFieldValue(_Fields field, Object value) {
-
 
135595
      switch (field) {
-
 
135596
      }
-
 
135597
    }
-
 
135598
 
-
 
135599
    public Object getFieldValue(_Fields field) {
-
 
135600
      switch (field) {
-
 
135601
      }
-
 
135602
      throw new IllegalStateException();
-
 
135603
    }
-
 
135604
 
-
 
135605
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
135606
    public boolean isSet(_Fields field) {
-
 
135607
      if (field == null) {
-
 
135608
        throw new IllegalArgumentException();
-
 
135609
      }
-
 
135610
 
-
 
135611
      switch (field) {
-
 
135612
      }
-
 
135613
      throw new IllegalStateException();
-
 
135614
    }
-
 
135615
 
-
 
135616
    @Override
-
 
135617
    public boolean equals(Object that) {
-
 
135618
      if (that == null)
-
 
135619
        return false;
-
 
135620
      if (that instanceof getAllFbdListedItems_args)
-
 
135621
        return this.equals((getAllFbdListedItems_args)that);
-
 
135622
      return false;
-
 
135623
    }
-
 
135624
 
-
 
135625
    public boolean equals(getAllFbdListedItems_args that) {
-
 
135626
      if (that == null)
-
 
135627
        return false;
-
 
135628
 
-
 
135629
      return true;
-
 
135630
    }
-
 
135631
 
-
 
135632
    @Override
-
 
135633
    public int hashCode() {
-
 
135634
      return 0;
-
 
135635
    }
-
 
135636
 
-
 
135637
    public int compareTo(getAllFbdListedItems_args other) {
-
 
135638
      if (!getClass().equals(other.getClass())) {
-
 
135639
        return getClass().getName().compareTo(other.getClass().getName());
-
 
135640
      }
-
 
135641
 
-
 
135642
      int lastComparison = 0;
-
 
135643
      getAllFbdListedItems_args typedOther = (getAllFbdListedItems_args)other;
-
 
135644
 
-
 
135645
      return 0;
-
 
135646
    }
-
 
135647
 
-
 
135648
    public _Fields fieldForId(int fieldId) {
-
 
135649
      return _Fields.findByThriftId(fieldId);
-
 
135650
    }
-
 
135651
 
-
 
135652
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
135653
      org.apache.thrift.protocol.TField field;
-
 
135654
      iprot.readStructBegin();
-
 
135655
      while (true)
-
 
135656
      {
-
 
135657
        field = iprot.readFieldBegin();
-
 
135658
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
135659
          break;
-
 
135660
        }
-
 
135661
        switch (field.id) {
-
 
135662
          default:
-
 
135663
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
135664
        }
-
 
135665
        iprot.readFieldEnd();
-
 
135666
      }
-
 
135667
      iprot.readStructEnd();
-
 
135668
      validate();
-
 
135669
    }
-
 
135670
 
-
 
135671
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
135672
      validate();
-
 
135673
 
-
 
135674
      oprot.writeStructBegin(STRUCT_DESC);
-
 
135675
      oprot.writeFieldStop();
-
 
135676
      oprot.writeStructEnd();
-
 
135677
    }
-
 
135678
 
-
 
135679
    @Override
-
 
135680
    public String toString() {
-
 
135681
      StringBuilder sb = new StringBuilder("getAllFbdListedItems_args(");
-
 
135682
      boolean first = true;
-
 
135683
 
-
 
135684
      sb.append(")");
-
 
135685
      return sb.toString();
-
 
135686
    }
-
 
135687
 
-
 
135688
    public void validate() throws org.apache.thrift.TException {
-
 
135689
      // check for required fields
-
 
135690
    }
-
 
135691
 
-
 
135692
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
135693
      try {
-
 
135694
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
135695
      } catch (org.apache.thrift.TException te) {
-
 
135696
        throw new java.io.IOException(te);
-
 
135697
      }
-
 
135698
    }
-
 
135699
 
-
 
135700
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
135701
      try {
-
 
135702
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
135703
      } catch (org.apache.thrift.TException te) {
-
 
135704
        throw new java.io.IOException(te);
-
 
135705
      }
-
 
135706
    }
-
 
135707
 
-
 
135708
  }
-
 
135709
 
-
 
135710
  public static class getAllFbdListedItems_result implements org.apache.thrift.TBase<getAllFbdListedItems_result, getAllFbdListedItems_result._Fields>, java.io.Serializable, Cloneable   {
-
 
135711
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFbdListedItems_result");
-
 
135712
 
-
 
135713
    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);
-
 
135714
 
-
 
135715
    private List<Amazonlisted> success; // required
-
 
135716
 
-
 
135717
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
135718
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
135719
      SUCCESS((short)0, "success");
-
 
135720
 
-
 
135721
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
135722
 
-
 
135723
      static {
-
 
135724
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
135725
          byName.put(field.getFieldName(), field);
-
 
135726
        }
-
 
135727
      }
-
 
135728
 
-
 
135729
      /**
-
 
135730
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
135731
       */
-
 
135732
      public static _Fields findByThriftId(int fieldId) {
-
 
135733
        switch(fieldId) {
-
 
135734
          case 0: // SUCCESS
-
 
135735
            return SUCCESS;
-
 
135736
          default:
-
 
135737
            return null;
-
 
135738
        }
-
 
135739
      }
-
 
135740
 
-
 
135741
      /**
-
 
135742
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
135743
       * if it is not found.
-
 
135744
       */
-
 
135745
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
135746
        _Fields fields = findByThriftId(fieldId);
-
 
135747
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
135748
        return fields;
-
 
135749
      }
-
 
135750
 
-
 
135751
      /**
-
 
135752
       * Find the _Fields constant that matches name, or null if its not found.
-
 
135753
       */
-
 
135754
      public static _Fields findByName(String name) {
-
 
135755
        return byName.get(name);
-
 
135756
      }
-
 
135757
 
-
 
135758
      private final short _thriftId;
-
 
135759
      private final String _fieldName;
-
 
135760
 
-
 
135761
      _Fields(short thriftId, String fieldName) {
-
 
135762
        _thriftId = thriftId;
-
 
135763
        _fieldName = fieldName;
-
 
135764
      }
-
 
135765
 
-
 
135766
      public short getThriftFieldId() {
-
 
135767
        return _thriftId;
-
 
135768
      }
-
 
135769
 
-
 
135770
      public String getFieldName() {
-
 
135771
        return _fieldName;
-
 
135772
      }
-
 
135773
    }
-
 
135774
 
-
 
135775
    // isset id assignments
-
 
135776
 
-
 
135777
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
135778
    static {
-
 
135779
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
135780
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
135781
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
135782
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Amazonlisted.class))));
-
 
135783
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
135784
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFbdListedItems_result.class, metaDataMap);
-
 
135785
    }
-
 
135786
 
-
 
135787
    public getAllFbdListedItems_result() {
-
 
135788
    }
-
 
135789
 
-
 
135790
    public getAllFbdListedItems_result(
-
 
135791
      List<Amazonlisted> success)
-
 
135792
    {
-
 
135793
      this();
-
 
135794
      this.success = success;
-
 
135795
    }
-
 
135796
 
-
 
135797
    /**
-
 
135798
     * Performs a deep copy on <i>other</i>.
-
 
135799
     */
-
 
135800
    public getAllFbdListedItems_result(getAllFbdListedItems_result other) {
-
 
135801
      if (other.isSetSuccess()) {
-
 
135802
        List<Amazonlisted> __this__success = new ArrayList<Amazonlisted>();
-
 
135803
        for (Amazonlisted other_element : other.success) {
-
 
135804
          __this__success.add(new Amazonlisted(other_element));
-
 
135805
        }
-
 
135806
        this.success = __this__success;
-
 
135807
      }
-
 
135808
    }
-
 
135809
 
-
 
135810
    public getAllFbdListedItems_result deepCopy() {
-
 
135811
      return new getAllFbdListedItems_result(this);
-
 
135812
    }
-
 
135813
 
-
 
135814
    @Override
-
 
135815
    public void clear() {
-
 
135816
      this.success = null;
-
 
135817
    }
-
 
135818
 
-
 
135819
    public int getSuccessSize() {
-
 
135820
      return (this.success == null) ? 0 : this.success.size();
-
 
135821
    }
-
 
135822
 
-
 
135823
    public java.util.Iterator<Amazonlisted> getSuccessIterator() {
-
 
135824
      return (this.success == null) ? null : this.success.iterator();
-
 
135825
    }
-
 
135826
 
-
 
135827
    public void addToSuccess(Amazonlisted elem) {
-
 
135828
      if (this.success == null) {
-
 
135829
        this.success = new ArrayList<Amazonlisted>();
-
 
135830
      }
-
 
135831
      this.success.add(elem);
-
 
135832
    }
-
 
135833
 
-
 
135834
    public List<Amazonlisted> getSuccess() {
-
 
135835
      return this.success;
-
 
135836
    }
-
 
135837
 
-
 
135838
    public void setSuccess(List<Amazonlisted> success) {
-
 
135839
      this.success = success;
-
 
135840
    }
-
 
135841
 
-
 
135842
    public void unsetSuccess() {
-
 
135843
      this.success = null;
-
 
135844
    }
-
 
135845
 
-
 
135846
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
135847
    public boolean isSetSuccess() {
-
 
135848
      return this.success != null;
-
 
135849
    }
-
 
135850
 
-
 
135851
    public void setSuccessIsSet(boolean value) {
-
 
135852
      if (!value) {
-
 
135853
        this.success = null;
-
 
135854
      }
-
 
135855
    }
-
 
135856
 
-
 
135857
    public void setFieldValue(_Fields field, Object value) {
-
 
135858
      switch (field) {
-
 
135859
      case SUCCESS:
-
 
135860
        if (value == null) {
-
 
135861
          unsetSuccess();
-
 
135862
        } else {
-
 
135863
          setSuccess((List<Amazonlisted>)value);
-
 
135864
        }
-
 
135865
        break;
-
 
135866
 
-
 
135867
      }
-
 
135868
    }
-
 
135869
 
-
 
135870
    public Object getFieldValue(_Fields field) {
-
 
135871
      switch (field) {
-
 
135872
      case SUCCESS:
-
 
135873
        return getSuccess();
-
 
135874
 
-
 
135875
      }
-
 
135876
      throw new IllegalStateException();
-
 
135877
    }
-
 
135878
 
-
 
135879
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
135880
    public boolean isSet(_Fields field) {
-
 
135881
      if (field == null) {
-
 
135882
        throw new IllegalArgumentException();
-
 
135883
      }
-
 
135884
 
-
 
135885
      switch (field) {
-
 
135886
      case SUCCESS:
-
 
135887
        return isSetSuccess();
-
 
135888
      }
-
 
135889
      throw new IllegalStateException();
-
 
135890
    }
-
 
135891
 
-
 
135892
    @Override
-
 
135893
    public boolean equals(Object that) {
-
 
135894
      if (that == null)
-
 
135895
        return false;
-
 
135896
      if (that instanceof getAllFbdListedItems_result)
-
 
135897
        return this.equals((getAllFbdListedItems_result)that);
-
 
135898
      return false;
-
 
135899
    }
-
 
135900
 
-
 
135901
    public boolean equals(getAllFbdListedItems_result that) {
-
 
135902
      if (that == null)
-
 
135903
        return false;
-
 
135904
 
-
 
135905
      boolean this_present_success = true && this.isSetSuccess();
-
 
135906
      boolean that_present_success = true && that.isSetSuccess();
-
 
135907
      if (this_present_success || that_present_success) {
-
 
135908
        if (!(this_present_success && that_present_success))
-
 
135909
          return false;
-
 
135910
        if (!this.success.equals(that.success))
-
 
135911
          return false;
-
 
135912
      }
-
 
135913
 
-
 
135914
      return true;
-
 
135915
    }
-
 
135916
 
-
 
135917
    @Override
-
 
135918
    public int hashCode() {
-
 
135919
      return 0;
-
 
135920
    }
-
 
135921
 
-
 
135922
    public int compareTo(getAllFbdListedItems_result other) {
-
 
135923
      if (!getClass().equals(other.getClass())) {
-
 
135924
        return getClass().getName().compareTo(other.getClass().getName());
-
 
135925
      }
-
 
135926
 
-
 
135927
      int lastComparison = 0;
-
 
135928
      getAllFbdListedItems_result typedOther = (getAllFbdListedItems_result)other;
-
 
135929
 
-
 
135930
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
135931
      if (lastComparison != 0) {
-
 
135932
        return lastComparison;
-
 
135933
      }
-
 
135934
      if (isSetSuccess()) {
-
 
135935
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
135936
        if (lastComparison != 0) {
-
 
135937
          return lastComparison;
-
 
135938
        }
-
 
135939
      }
-
 
135940
      return 0;
-
 
135941
    }
-
 
135942
 
-
 
135943
    public _Fields fieldForId(int fieldId) {
-
 
135944
      return _Fields.findByThriftId(fieldId);
-
 
135945
    }
-
 
135946
 
-
 
135947
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
135948
      org.apache.thrift.protocol.TField field;
-
 
135949
      iprot.readStructBegin();
-
 
135950
      while (true)
-
 
135951
      {
-
 
135952
        field = iprot.readFieldBegin();
-
 
135953
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
135954
          break;
-
 
135955
        }
-
 
135956
        switch (field.id) {
-
 
135957
          case 0: // SUCCESS
-
 
135958
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
135959
              {
-
 
135960
                org.apache.thrift.protocol.TList _list488 = iprot.readListBegin();
-
 
135961
                this.success = new ArrayList<Amazonlisted>(_list488.size);
-
 
135962
                for (int _i489 = 0; _i489 < _list488.size; ++_i489)
-
 
135963
                {
-
 
135964
                  Amazonlisted _elem490; // required
-
 
135965
                  _elem490 = new Amazonlisted();
-
 
135966
                  _elem490.read(iprot);
-
 
135967
                  this.success.add(_elem490);
-
 
135968
                }
-
 
135969
                iprot.readListEnd();
-
 
135970
              }
-
 
135971
            } else { 
-
 
135972
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
135973
            }
-
 
135974
            break;
-
 
135975
          default:
-
 
135976
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
135977
        }
-
 
135978
        iprot.readFieldEnd();
-
 
135979
      }
-
 
135980
      iprot.readStructEnd();
-
 
135981
      validate();
-
 
135982
    }
-
 
135983
 
-
 
135984
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
135985
      oprot.writeStructBegin(STRUCT_DESC);
-
 
135986
 
-
 
135987
      if (this.isSetSuccess()) {
-
 
135988
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
135989
        {
-
 
135990
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
135991
          for (Amazonlisted _iter491 : this.success)
-
 
135992
          {
-
 
135993
            _iter491.write(oprot);
-
 
135994
          }
-
 
135995
          oprot.writeListEnd();
-
 
135996
        }
-
 
135997
        oprot.writeFieldEnd();
-
 
135998
      }
-
 
135999
      oprot.writeFieldStop();
-
 
136000
      oprot.writeStructEnd();
-
 
136001
    }
-
 
136002
 
-
 
136003
    @Override
-
 
136004
    public String toString() {
-
 
136005
      StringBuilder sb = new StringBuilder("getAllFbdListedItems_result(");
-
 
136006
      boolean first = true;
-
 
136007
 
-
 
136008
      sb.append("success:");
-
 
136009
      if (this.success == null) {
-
 
136010
        sb.append("null");
135408
      } else {
136011
      } else {
135409
        sb.append(this.success);
136012
        sb.append(this.success);
135410
      }
136013
      }
135411
      first = false;
136014
      first = false;
135412
      sb.append(")");
136015
      sb.append(")");