Subversion Repositories SmartDukaan

Rev

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

Rev 7977 Rev 8139
Line 419... Line 419...
419
 
419
 
420
    public void addPageViewEvent(PageViewEvents pageViewEvents) throws org.apache.thrift.TException;
420
    public void addPageViewEvent(PageViewEvents pageViewEvents) throws org.apache.thrift.TException;
421
 
421
 
422
    public void addCartEvent(CartEvents cartEvents) throws org.apache.thrift.TException;
422
    public void addCartEvent(CartEvents cartEvents) throws org.apache.thrift.TException;
423
 
423
 
-
 
424
    public List<Amazonlisted> getAmazonListedItems(long offset, long limit) throws org.apache.thrift.TException;
-
 
425
 
424
  }
426
  }
425
 
427
 
426
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
428
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
427
 
429
 
428
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
430
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 627... Line 629...
627
 
629
 
628
    public void addPageViewEvent(PageViewEvents pageViewEvents, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addPageViewEvent_call> resultHandler) throws org.apache.thrift.TException;
630
    public void addPageViewEvent(PageViewEvents pageViewEvents, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addPageViewEvent_call> resultHandler) throws org.apache.thrift.TException;
629
 
631
 
630
    public void addCartEvent(CartEvents cartEvents, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addCartEvent_call> resultHandler) throws org.apache.thrift.TException;
632
    public void addCartEvent(CartEvents cartEvents, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addCartEvent_call> resultHandler) throws org.apache.thrift.TException;
631
 
633
 
-
 
634
    public void getAmazonListedItems(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonListedItems_call> resultHandler) throws org.apache.thrift.TException;
-
 
635
 
632
  }
636
  }
633
 
637
 
634
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
638
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
635
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
639
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
636
      public Factory() {}
640
      public Factory() {}
Line 3115... Line 3119...
3115
      addCartEvent_result result = new addCartEvent_result();
3119
      addCartEvent_result result = new addCartEvent_result();
3116
      receiveBase(result, "addCartEvent");
3120
      receiveBase(result, "addCartEvent");
3117
      return;
3121
      return;
3118
    }
3122
    }
3119
 
3123
 
-
 
3124
    public List<Amazonlisted> getAmazonListedItems(long offset, long limit) throws org.apache.thrift.TException
-
 
3125
    {
-
 
3126
      send_getAmazonListedItems(offset, limit);
-
 
3127
      return recv_getAmazonListedItems();
-
 
3128
    }
-
 
3129
 
-
 
3130
    public void send_getAmazonListedItems(long offset, long limit) throws org.apache.thrift.TException
-
 
3131
    {
-
 
3132
      getAmazonListedItems_args args = new getAmazonListedItems_args();
-
 
3133
      args.setOffset(offset);
-
 
3134
      args.setLimit(limit);
-
 
3135
      sendBase("getAmazonListedItems", args);
-
 
3136
    }
-
 
3137
 
-
 
3138
    public List<Amazonlisted> recv_getAmazonListedItems() throws org.apache.thrift.TException
-
 
3139
    {
-
 
3140
      getAmazonListedItems_result result = new getAmazonListedItems_result();
-
 
3141
      receiveBase(result, "getAmazonListedItems");
-
 
3142
      if (result.isSetSuccess()) {
-
 
3143
        return result.success;
-
 
3144
      }
-
 
3145
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAmazonListedItems failed: unknown result");
-
 
3146
    }
-
 
3147
 
3120
  }
3148
  }
3121
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
3149
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
3122
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
3150
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
3123
      private org.apache.thrift.async.TAsyncClientManager clientManager;
3151
      private org.apache.thrift.async.TAsyncClientManager clientManager;
3124
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
3152
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 6541... Line 6569...
6541
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6569
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6542
        (new Client(prot)).recv_addCartEvent();
6570
        (new Client(prot)).recv_addCartEvent();
6543
      }
6571
      }
6544
    }
6572
    }
6545
 
6573
 
-
 
6574
    public void getAmazonListedItems(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<getAmazonListedItems_call> resultHandler) throws org.apache.thrift.TException {
-
 
6575
      checkReady();
-
 
6576
      getAmazonListedItems_call method_call = new getAmazonListedItems_call(offset, limit, resultHandler, this, ___protocolFactory, ___transport);
-
 
6577
      this.___currentMethod = method_call;
-
 
6578
      ___manager.call(method_call);
-
 
6579
    }
-
 
6580
 
-
 
6581
    public static class getAmazonListedItems_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
6582
      private long offset;
-
 
6583
      private long limit;
-
 
6584
      public getAmazonListedItems_call(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<getAmazonListedItems_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 {
-
 
6585
        super(client, protocolFactory, transport, resultHandler, false);
-
 
6586
        this.offset = offset;
-
 
6587
        this.limit = limit;
-
 
6588
      }
-
 
6589
 
-
 
6590
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
6591
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAmazonListedItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
6592
        getAmazonListedItems_args args = new getAmazonListedItems_args();
-
 
6593
        args.setOffset(offset);
-
 
6594
        args.setLimit(limit);
-
 
6595
        args.write(prot);
-
 
6596
        prot.writeMessageEnd();
-
 
6597
      }
-
 
6598
 
-
 
6599
      public List<Amazonlisted> getResult() throws org.apache.thrift.TException {
-
 
6600
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
6601
          throw new IllegalStateException("Method call not finished!");
-
 
6602
        }
-
 
6603
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
6604
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
6605
        return (new Client(prot)).recv_getAmazonListedItems();
-
 
6606
      }
-
 
6607
    }
-
 
6608
 
6546
  }
6609
  }
6547
 
6610
 
6548
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
6611
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
6549
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
6612
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
6550
    public Processor(I iface) {
6613
    public Processor(I iface) {
Line 6656... Line 6719...
6656
      processMap.put("updateItemInventory", new updateItemInventory());
6719
      processMap.put("updateItemInventory", new updateItemInventory());
6657
      processMap.put("updateTimestampForAmazonFeeds", new updateTimestampForAmazonFeeds());
6720
      processMap.put("updateTimestampForAmazonFeeds", new updateTimestampForAmazonFeeds());
6658
      processMap.put("getAllParentCategories", new getAllParentCategories());
6721
      processMap.put("getAllParentCategories", new getAllParentCategories());
6659
      processMap.put("addPageViewEvent", new addPageViewEvent());
6722
      processMap.put("addPageViewEvent", new addPageViewEvent());
6660
      processMap.put("addCartEvent", new addCartEvent());
6723
      processMap.put("addCartEvent", new addCartEvent());
-
 
6724
      processMap.put("getAmazonListedItems", new getAmazonListedItems());
6661
      return processMap;
6725
      return processMap;
6662
    }
6726
    }
6663
 
6727
 
6664
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
6728
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
6665
      public addItem() {
6729
      public addItem() {
Line 8476... Line 8540...
8476
        iface.addCartEvent(args.cartEvents);
8540
        iface.addCartEvent(args.cartEvents);
8477
        return result;
8541
        return result;
8478
      }
8542
      }
8479
    }
8543
    }
8480
 
8544
 
-
 
8545
    private static class getAmazonListedItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAmazonListedItems_args> {
-
 
8546
      public getAmazonListedItems() {
-
 
8547
        super("getAmazonListedItems");
-
 
8548
      }
-
 
8549
 
-
 
8550
      protected getAmazonListedItems_args getEmptyArgsInstance() {
-
 
8551
        return new getAmazonListedItems_args();
-
 
8552
      }
-
 
8553
 
-
 
8554
      protected getAmazonListedItems_result getResult(I iface, getAmazonListedItems_args args) throws org.apache.thrift.TException {
-
 
8555
        getAmazonListedItems_result result = new getAmazonListedItems_result();
-
 
8556
        result.success = iface.getAmazonListedItems(args.offset, args.limit);
-
 
8557
        return result;
-
 
8558
      }
-
 
8559
    }
-
 
8560
 
8481
  }
8561
  }
8482
 
8562
 
8483
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
8563
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
8484
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
8564
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
8485
 
8565
 
Line 76201... Line 76281...
76201
      sb.append(")");
76281
      sb.append(")");
76202
      return sb.toString();
76282
      return sb.toString();
76203
    }
76283
    }
76204
 
76284
 
76205
    public void validate() throws org.apache.thrift.TException {
76285
    public void validate() throws org.apache.thrift.TException {
-
 
76286
      // check for required fields
-
 
76287
    }
-
 
76288
 
-
 
76289
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
76290
      try {
-
 
76291
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
76292
      } catch (org.apache.thrift.TException te) {
-
 
76293
        throw new java.io.IOException(te);
-
 
76294
      }
-
 
76295
    }
-
 
76296
 
-
 
76297
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
76298
      try {
-
 
76299
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
76300
      } catch (org.apache.thrift.TException te) {
-
 
76301
        throw new java.io.IOException(te);
-
 
76302
      }
-
 
76303
    }
-
 
76304
 
-
 
76305
  }
-
 
76306
 
-
 
76307
  public static class getAmazonListedItems_args implements org.apache.thrift.TBase<getAmazonListedItems_args, getAmazonListedItems_args._Fields>, java.io.Serializable, Cloneable   {
-
 
76308
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonListedItems_args");
-
 
76309
 
-
 
76310
    private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
76311
    private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
76312
 
-
 
76313
    private long offset; // required
-
 
76314
    private long limit; // required
-
 
76315
 
-
 
76316
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
76317
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
76318
      OFFSET((short)1, "offset"),
-
 
76319
      LIMIT((short)2, "limit");
-
 
76320
 
-
 
76321
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
76322
 
-
 
76323
      static {
-
 
76324
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
76325
          byName.put(field.getFieldName(), field);
-
 
76326
        }
-
 
76327
      }
-
 
76328
 
-
 
76329
      /**
-
 
76330
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
76331
       */
-
 
76332
      public static _Fields findByThriftId(int fieldId) {
-
 
76333
        switch(fieldId) {
-
 
76334
          case 1: // OFFSET
-
 
76335
            return OFFSET;
-
 
76336
          case 2: // LIMIT
-
 
76337
            return LIMIT;
-
 
76338
          default:
-
 
76339
            return null;
-
 
76340
        }
-
 
76341
      }
-
 
76342
 
-
 
76343
      /**
-
 
76344
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
76345
       * if it is not found.
-
 
76346
       */
-
 
76347
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
76348
        _Fields fields = findByThriftId(fieldId);
-
 
76349
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
76350
        return fields;
-
 
76351
      }
-
 
76352
 
-
 
76353
      /**
-
 
76354
       * Find the _Fields constant that matches name, or null if its not found.
-
 
76355
       */
-
 
76356
      public static _Fields findByName(String name) {
-
 
76357
        return byName.get(name);
-
 
76358
      }
-
 
76359
 
-
 
76360
      private final short _thriftId;
-
 
76361
      private final String _fieldName;
-
 
76362
 
-
 
76363
      _Fields(short thriftId, String fieldName) {
-
 
76364
        _thriftId = thriftId;
-
 
76365
        _fieldName = fieldName;
-
 
76366
      }
-
 
76367
 
-
 
76368
      public short getThriftFieldId() {
-
 
76369
        return _thriftId;
-
 
76370
      }
-
 
76371
 
-
 
76372
      public String getFieldName() {
-
 
76373
        return _fieldName;
-
 
76374
      }
-
 
76375
    }
-
 
76376
 
-
 
76377
    // isset id assignments
-
 
76378
    private static final int __OFFSET_ISSET_ID = 0;
-
 
76379
    private static final int __LIMIT_ISSET_ID = 1;
-
 
76380
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
76381
 
-
 
76382
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
76383
    static {
-
 
76384
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
76385
      tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
76386
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
76387
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
76388
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
76389
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
76390
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonListedItems_args.class, metaDataMap);
-
 
76391
    }
-
 
76392
 
-
 
76393
    public getAmazonListedItems_args() {
-
 
76394
    }
-
 
76395
 
-
 
76396
    public getAmazonListedItems_args(
-
 
76397
      long offset,
-
 
76398
      long limit)
-
 
76399
    {
-
 
76400
      this();
-
 
76401
      this.offset = offset;
-
 
76402
      setOffsetIsSet(true);
-
 
76403
      this.limit = limit;
-
 
76404
      setLimitIsSet(true);
-
 
76405
    }
-
 
76406
 
-
 
76407
    /**
-
 
76408
     * Performs a deep copy on <i>other</i>.
-
 
76409
     */
-
 
76410
    public getAmazonListedItems_args(getAmazonListedItems_args other) {
-
 
76411
      __isset_bit_vector.clear();
-
 
76412
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
76413
      this.offset = other.offset;
-
 
76414
      this.limit = other.limit;
-
 
76415
    }
-
 
76416
 
-
 
76417
    public getAmazonListedItems_args deepCopy() {
-
 
76418
      return new getAmazonListedItems_args(this);
-
 
76419
    }
-
 
76420
 
-
 
76421
    @Override
-
 
76422
    public void clear() {
-
 
76423
      setOffsetIsSet(false);
-
 
76424
      this.offset = 0;
-
 
76425
      setLimitIsSet(false);
-
 
76426
      this.limit = 0;
-
 
76427
    }
-
 
76428
 
-
 
76429
    public long getOffset() {
-
 
76430
      return this.offset;
-
 
76431
    }
-
 
76432
 
-
 
76433
    public void setOffset(long offset) {
-
 
76434
      this.offset = offset;
-
 
76435
      setOffsetIsSet(true);
-
 
76436
    }
-
 
76437
 
-
 
76438
    public void unsetOffset() {
-
 
76439
      __isset_bit_vector.clear(__OFFSET_ISSET_ID);
-
 
76440
    }
-
 
76441
 
-
 
76442
    /** Returns true if field offset is set (has been assigned a value) and false otherwise */
-
 
76443
    public boolean isSetOffset() {
-
 
76444
      return __isset_bit_vector.get(__OFFSET_ISSET_ID);
-
 
76445
    }
-
 
76446
 
-
 
76447
    public void setOffsetIsSet(boolean value) {
-
 
76448
      __isset_bit_vector.set(__OFFSET_ISSET_ID, value);
-
 
76449
    }
-
 
76450
 
-
 
76451
    public long getLimit() {
-
 
76452
      return this.limit;
-
 
76453
    }
-
 
76454
 
-
 
76455
    public void setLimit(long limit) {
-
 
76456
      this.limit = limit;
-
 
76457
      setLimitIsSet(true);
-
 
76458
    }
-
 
76459
 
-
 
76460
    public void unsetLimit() {
-
 
76461
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
-
 
76462
    }
-
 
76463
 
-
 
76464
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
-
 
76465
    public boolean isSetLimit() {
-
 
76466
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
-
 
76467
    }
-
 
76468
 
-
 
76469
    public void setLimitIsSet(boolean value) {
-
 
76470
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
-
 
76471
    }
-
 
76472
 
-
 
76473
    public void setFieldValue(_Fields field, Object value) {
-
 
76474
      switch (field) {
-
 
76475
      case OFFSET:
-
 
76476
        if (value == null) {
-
 
76477
          unsetOffset();
-
 
76478
        } else {
-
 
76479
          setOffset((Long)value);
-
 
76480
        }
-
 
76481
        break;
-
 
76482
 
-
 
76483
      case LIMIT:
-
 
76484
        if (value == null) {
-
 
76485
          unsetLimit();
-
 
76486
        } else {
-
 
76487
          setLimit((Long)value);
-
 
76488
        }
-
 
76489
        break;
-
 
76490
 
-
 
76491
      }
-
 
76492
    }
-
 
76493
 
-
 
76494
    public Object getFieldValue(_Fields field) {
-
 
76495
      switch (field) {
-
 
76496
      case OFFSET:
-
 
76497
        return Long.valueOf(getOffset());
-
 
76498
 
-
 
76499
      case LIMIT:
-
 
76500
        return Long.valueOf(getLimit());
-
 
76501
 
-
 
76502
      }
-
 
76503
      throw new IllegalStateException();
-
 
76504
    }
-
 
76505
 
-
 
76506
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
76507
    public boolean isSet(_Fields field) {
-
 
76508
      if (field == null) {
-
 
76509
        throw new IllegalArgumentException();
-
 
76510
      }
-
 
76511
 
-
 
76512
      switch (field) {
-
 
76513
      case OFFSET:
-
 
76514
        return isSetOffset();
-
 
76515
      case LIMIT:
-
 
76516
        return isSetLimit();
-
 
76517
      }
-
 
76518
      throw new IllegalStateException();
-
 
76519
    }
-
 
76520
 
-
 
76521
    @Override
-
 
76522
    public boolean equals(Object that) {
-
 
76523
      if (that == null)
-
 
76524
        return false;
-
 
76525
      if (that instanceof getAmazonListedItems_args)
-
 
76526
        return this.equals((getAmazonListedItems_args)that);
-
 
76527
      return false;
-
 
76528
    }
-
 
76529
 
-
 
76530
    public boolean equals(getAmazonListedItems_args that) {
-
 
76531
      if (that == null)
-
 
76532
        return false;
-
 
76533
 
-
 
76534
      boolean this_present_offset = true;
-
 
76535
      boolean that_present_offset = true;
-
 
76536
      if (this_present_offset || that_present_offset) {
-
 
76537
        if (!(this_present_offset && that_present_offset))
-
 
76538
          return false;
-
 
76539
        if (this.offset != that.offset)
-
 
76540
          return false;
-
 
76541
      }
-
 
76542
 
-
 
76543
      boolean this_present_limit = true;
-
 
76544
      boolean that_present_limit = true;
-
 
76545
      if (this_present_limit || that_present_limit) {
-
 
76546
        if (!(this_present_limit && that_present_limit))
-
 
76547
          return false;
-
 
76548
        if (this.limit != that.limit)
-
 
76549
          return false;
-
 
76550
      }
-
 
76551
 
-
 
76552
      return true;
-
 
76553
    }
-
 
76554
 
-
 
76555
    @Override
-
 
76556
    public int hashCode() {
-
 
76557
      return 0;
-
 
76558
    }
-
 
76559
 
-
 
76560
    public int compareTo(getAmazonListedItems_args other) {
-
 
76561
      if (!getClass().equals(other.getClass())) {
-
 
76562
        return getClass().getName().compareTo(other.getClass().getName());
-
 
76563
      }
-
 
76564
 
-
 
76565
      int lastComparison = 0;
-
 
76566
      getAmazonListedItems_args typedOther = (getAmazonListedItems_args)other;
-
 
76567
 
-
 
76568
      lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());
-
 
76569
      if (lastComparison != 0) {
-
 
76570
        return lastComparison;
-
 
76571
      }
-
 
76572
      if (isSetOffset()) {
-
 
76573
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);
-
 
76574
        if (lastComparison != 0) {
-
 
76575
          return lastComparison;
-
 
76576
        }
-
 
76577
      }
-
 
76578
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
-
 
76579
      if (lastComparison != 0) {
-
 
76580
        return lastComparison;
-
 
76581
      }
-
 
76582
      if (isSetLimit()) {
-
 
76583
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
-
 
76584
        if (lastComparison != 0) {
-
 
76585
          return lastComparison;
-
 
76586
        }
-
 
76587
      }
-
 
76588
      return 0;
-
 
76589
    }
-
 
76590
 
-
 
76591
    public _Fields fieldForId(int fieldId) {
-
 
76592
      return _Fields.findByThriftId(fieldId);
-
 
76593
    }
-
 
76594
 
-
 
76595
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
76596
      org.apache.thrift.protocol.TField field;
-
 
76597
      iprot.readStructBegin();
-
 
76598
      while (true)
-
 
76599
      {
-
 
76600
        field = iprot.readFieldBegin();
-
 
76601
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
76602
          break;
-
 
76603
        }
-
 
76604
        switch (field.id) {
-
 
76605
          case 1: // OFFSET
-
 
76606
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
76607
              this.offset = iprot.readI64();
-
 
76608
              setOffsetIsSet(true);
-
 
76609
            } else { 
-
 
76610
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
76611
            }
-
 
76612
            break;
-
 
76613
          case 2: // LIMIT
-
 
76614
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
76615
              this.limit = iprot.readI64();
-
 
76616
              setLimitIsSet(true);
-
 
76617
            } else { 
-
 
76618
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
76619
            }
-
 
76620
            break;
-
 
76621
          default:
-
 
76622
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
76623
        }
-
 
76624
        iprot.readFieldEnd();
-
 
76625
      }
-
 
76626
      iprot.readStructEnd();
-
 
76627
      validate();
-
 
76628
    }
-
 
76629
 
-
 
76630
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
76631
      validate();
-
 
76632
 
-
 
76633
      oprot.writeStructBegin(STRUCT_DESC);
-
 
76634
      oprot.writeFieldBegin(OFFSET_FIELD_DESC);
-
 
76635
      oprot.writeI64(this.offset);
-
 
76636
      oprot.writeFieldEnd();
-
 
76637
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
-
 
76638
      oprot.writeI64(this.limit);
-
 
76639
      oprot.writeFieldEnd();
-
 
76640
      oprot.writeFieldStop();
-
 
76641
      oprot.writeStructEnd();
-
 
76642
    }
-
 
76643
 
-
 
76644
    @Override
-
 
76645
    public String toString() {
-
 
76646
      StringBuilder sb = new StringBuilder("getAmazonListedItems_args(");
-
 
76647
      boolean first = true;
-
 
76648
 
-
 
76649
      sb.append("offset:");
-
 
76650
      sb.append(this.offset);
-
 
76651
      first = false;
-
 
76652
      if (!first) sb.append(", ");
-
 
76653
      sb.append("limit:");
-
 
76654
      sb.append(this.limit);
-
 
76655
      first = false;
-
 
76656
      sb.append(")");
-
 
76657
      return sb.toString();
-
 
76658
    }
-
 
76659
 
-
 
76660
    public void validate() throws org.apache.thrift.TException {
-
 
76661
      // check for required fields
-
 
76662
    }
-
 
76663
 
-
 
76664
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
76665
      try {
-
 
76666
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
76667
      } catch (org.apache.thrift.TException te) {
-
 
76668
        throw new java.io.IOException(te);
-
 
76669
      }
-
 
76670
    }
-
 
76671
 
-
 
76672
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
76673
      try {
-
 
76674
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
76675
        __isset_bit_vector = new BitSet(1);
-
 
76676
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
76677
      } catch (org.apache.thrift.TException te) {
-
 
76678
        throw new java.io.IOException(te);
-
 
76679
      }
-
 
76680
    }
-
 
76681
 
-
 
76682
  }
-
 
76683
 
-
 
76684
  public static class getAmazonListedItems_result implements org.apache.thrift.TBase<getAmazonListedItems_result, getAmazonListedItems_result._Fields>, java.io.Serializable, Cloneable   {
-
 
76685
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonListedItems_result");
-
 
76686
 
-
 
76687
    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);
-
 
76688
 
-
 
76689
    private List<Amazonlisted> success; // required
-
 
76690
 
-
 
76691
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
76692
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
76693
      SUCCESS((short)0, "success");
-
 
76694
 
-
 
76695
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
76696
 
-
 
76697
      static {
-
 
76698
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
76699
          byName.put(field.getFieldName(), field);
-
 
76700
        }
-
 
76701
      }
-
 
76702
 
-
 
76703
      /**
-
 
76704
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
76705
       */
-
 
76706
      public static _Fields findByThriftId(int fieldId) {
-
 
76707
        switch(fieldId) {
-
 
76708
          case 0: // SUCCESS
-
 
76709
            return SUCCESS;
-
 
76710
          default:
-
 
76711
            return null;
-
 
76712
        }
-
 
76713
      }
-
 
76714
 
-
 
76715
      /**
-
 
76716
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
76717
       * if it is not found.
-
 
76718
       */
-
 
76719
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
76720
        _Fields fields = findByThriftId(fieldId);
-
 
76721
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
76722
        return fields;
-
 
76723
      }
-
 
76724
 
-
 
76725
      /**
-
 
76726
       * Find the _Fields constant that matches name, or null if its not found.
-
 
76727
       */
-
 
76728
      public static _Fields findByName(String name) {
-
 
76729
        return byName.get(name);
-
 
76730
      }
-
 
76731
 
-
 
76732
      private final short _thriftId;
-
 
76733
      private final String _fieldName;
-
 
76734
 
-
 
76735
      _Fields(short thriftId, String fieldName) {
-
 
76736
        _thriftId = thriftId;
-
 
76737
        _fieldName = fieldName;
-
 
76738
      }
-
 
76739
 
-
 
76740
      public short getThriftFieldId() {
-
 
76741
        return _thriftId;
-
 
76742
      }
-
 
76743
 
-
 
76744
      public String getFieldName() {
-
 
76745
        return _fieldName;
-
 
76746
      }
-
 
76747
    }
-
 
76748
 
-
 
76749
    // isset id assignments
-
 
76750
 
-
 
76751
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
76752
    static {
-
 
76753
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
76754
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
76755
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
76756
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Amazonlisted.class))));
-
 
76757
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
76758
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonListedItems_result.class, metaDataMap);
-
 
76759
    }
-
 
76760
 
-
 
76761
    public getAmazonListedItems_result() {
-
 
76762
    }
-
 
76763
 
-
 
76764
    public getAmazonListedItems_result(
-
 
76765
      List<Amazonlisted> success)
-
 
76766
    {
-
 
76767
      this();
-
 
76768
      this.success = success;
-
 
76769
    }
-
 
76770
 
-
 
76771
    /**
-
 
76772
     * Performs a deep copy on <i>other</i>.
-
 
76773
     */
-
 
76774
    public getAmazonListedItems_result(getAmazonListedItems_result other) {
-
 
76775
      if (other.isSetSuccess()) {
-
 
76776
        List<Amazonlisted> __this__success = new ArrayList<Amazonlisted>();
-
 
76777
        for (Amazonlisted other_element : other.success) {
-
 
76778
          __this__success.add(new Amazonlisted(other_element));
-
 
76779
        }
-
 
76780
        this.success = __this__success;
-
 
76781
      }
-
 
76782
    }
-
 
76783
 
-
 
76784
    public getAmazonListedItems_result deepCopy() {
-
 
76785
      return new getAmazonListedItems_result(this);
-
 
76786
    }
-
 
76787
 
-
 
76788
    @Override
-
 
76789
    public void clear() {
-
 
76790
      this.success = null;
-
 
76791
    }
-
 
76792
 
-
 
76793
    public int getSuccessSize() {
-
 
76794
      return (this.success == null) ? 0 : this.success.size();
-
 
76795
    }
-
 
76796
 
-
 
76797
    public java.util.Iterator<Amazonlisted> getSuccessIterator() {
-
 
76798
      return (this.success == null) ? null : this.success.iterator();
-
 
76799
    }
-
 
76800
 
-
 
76801
    public void addToSuccess(Amazonlisted elem) {
-
 
76802
      if (this.success == null) {
-
 
76803
        this.success = new ArrayList<Amazonlisted>();
-
 
76804
      }
-
 
76805
      this.success.add(elem);
-
 
76806
    }
-
 
76807
 
-
 
76808
    public List<Amazonlisted> getSuccess() {
-
 
76809
      return this.success;
-
 
76810
    }
-
 
76811
 
-
 
76812
    public void setSuccess(List<Amazonlisted> success) {
-
 
76813
      this.success = success;
-
 
76814
    }
-
 
76815
 
-
 
76816
    public void unsetSuccess() {
-
 
76817
      this.success = null;
-
 
76818
    }
-
 
76819
 
-
 
76820
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
76821
    public boolean isSetSuccess() {
-
 
76822
      return this.success != null;
-
 
76823
    }
-
 
76824
 
-
 
76825
    public void setSuccessIsSet(boolean value) {
-
 
76826
      if (!value) {
-
 
76827
        this.success = null;
-
 
76828
      }
-
 
76829
    }
-
 
76830
 
-
 
76831
    public void setFieldValue(_Fields field, Object value) {
-
 
76832
      switch (field) {
-
 
76833
      case SUCCESS:
-
 
76834
        if (value == null) {
-
 
76835
          unsetSuccess();
-
 
76836
        } else {
-
 
76837
          setSuccess((List<Amazonlisted>)value);
-
 
76838
        }
-
 
76839
        break;
-
 
76840
 
-
 
76841
      }
-
 
76842
    }
-
 
76843
 
-
 
76844
    public Object getFieldValue(_Fields field) {
-
 
76845
      switch (field) {
-
 
76846
      case SUCCESS:
-
 
76847
        return getSuccess();
-
 
76848
 
-
 
76849
      }
-
 
76850
      throw new IllegalStateException();
-
 
76851
    }
-
 
76852
 
-
 
76853
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
76854
    public boolean isSet(_Fields field) {
-
 
76855
      if (field == null) {
-
 
76856
        throw new IllegalArgumentException();
-
 
76857
      }
-
 
76858
 
-
 
76859
      switch (field) {
-
 
76860
      case SUCCESS:
-
 
76861
        return isSetSuccess();
-
 
76862
      }
-
 
76863
      throw new IllegalStateException();
-
 
76864
    }
-
 
76865
 
-
 
76866
    @Override
-
 
76867
    public boolean equals(Object that) {
-
 
76868
      if (that == null)
-
 
76869
        return false;
-
 
76870
      if (that instanceof getAmazonListedItems_result)
-
 
76871
        return this.equals((getAmazonListedItems_result)that);
-
 
76872
      return false;
-
 
76873
    }
-
 
76874
 
-
 
76875
    public boolean equals(getAmazonListedItems_result that) {
-
 
76876
      if (that == null)
-
 
76877
        return false;
-
 
76878
 
-
 
76879
      boolean this_present_success = true && this.isSetSuccess();
-
 
76880
      boolean that_present_success = true && that.isSetSuccess();
-
 
76881
      if (this_present_success || that_present_success) {
-
 
76882
        if (!(this_present_success && that_present_success))
-
 
76883
          return false;
-
 
76884
        if (!this.success.equals(that.success))
-
 
76885
          return false;
-
 
76886
      }
-
 
76887
 
-
 
76888
      return true;
-
 
76889
    }
-
 
76890
 
-
 
76891
    @Override
-
 
76892
    public int hashCode() {
-
 
76893
      return 0;
-
 
76894
    }
-
 
76895
 
-
 
76896
    public int compareTo(getAmazonListedItems_result other) {
-
 
76897
      if (!getClass().equals(other.getClass())) {
-
 
76898
        return getClass().getName().compareTo(other.getClass().getName());
-
 
76899
      }
-
 
76900
 
-
 
76901
      int lastComparison = 0;
-
 
76902
      getAmazonListedItems_result typedOther = (getAmazonListedItems_result)other;
-
 
76903
 
-
 
76904
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
76905
      if (lastComparison != 0) {
-
 
76906
        return lastComparison;
-
 
76907
      }
-
 
76908
      if (isSetSuccess()) {
-
 
76909
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
76910
        if (lastComparison != 0) {
-
 
76911
          return lastComparison;
-
 
76912
        }
-
 
76913
      }
-
 
76914
      return 0;
-
 
76915
    }
-
 
76916
 
-
 
76917
    public _Fields fieldForId(int fieldId) {
-
 
76918
      return _Fields.findByThriftId(fieldId);
-
 
76919
    }
-
 
76920
 
-
 
76921
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
76922
      org.apache.thrift.protocol.TField field;
-
 
76923
      iprot.readStructBegin();
-
 
76924
      while (true)
-
 
76925
      {
-
 
76926
        field = iprot.readFieldBegin();
-
 
76927
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
76928
          break;
-
 
76929
        }
-
 
76930
        switch (field.id) {
-
 
76931
          case 0: // SUCCESS
-
 
76932
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
76933
              {
-
 
76934
                org.apache.thrift.protocol.TList _list216 = iprot.readListBegin();
-
 
76935
                this.success = new ArrayList<Amazonlisted>(_list216.size);
-
 
76936
                for (int _i217 = 0; _i217 < _list216.size; ++_i217)
-
 
76937
                {
-
 
76938
                  Amazonlisted _elem218; // required
-
 
76939
                  _elem218 = new Amazonlisted();
-
 
76940
                  _elem218.read(iprot);
-
 
76941
                  this.success.add(_elem218);
-
 
76942
                }
-
 
76943
                iprot.readListEnd();
-
 
76944
              }
-
 
76945
            } else { 
-
 
76946
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
76947
            }
-
 
76948
            break;
-
 
76949
          default:
-
 
76950
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
76951
        }
-
 
76952
        iprot.readFieldEnd();
-
 
76953
      }
-
 
76954
      iprot.readStructEnd();
-
 
76955
      validate();
-
 
76956
    }
-
 
76957
 
-
 
76958
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
76959
      oprot.writeStructBegin(STRUCT_DESC);
-
 
76960
 
-
 
76961
      if (this.isSetSuccess()) {
-
 
76962
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
76963
        {
-
 
76964
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
76965
          for (Amazonlisted _iter219 : this.success)
-
 
76966
          {
-
 
76967
            _iter219.write(oprot);
-
 
76968
          }
-
 
76969
          oprot.writeListEnd();
-
 
76970
        }
-
 
76971
        oprot.writeFieldEnd();
-
 
76972
      }
-
 
76973
      oprot.writeFieldStop();
-
 
76974
      oprot.writeStructEnd();
-
 
76975
    }
-
 
76976
 
-
 
76977
    @Override
-
 
76978
    public String toString() {
-
 
76979
      StringBuilder sb = new StringBuilder("getAmazonListedItems_result(");
-
 
76980
      boolean first = true;
-
 
76981
 
-
 
76982
      sb.append("success:");
-
 
76983
      if (this.success == null) {
-
 
76984
        sb.append("null");
-
 
76985
      } else {
-
 
76986
        sb.append(this.success);
-
 
76987
      }
-
 
76988
      first = false;
-
 
76989
      sb.append(")");
-
 
76990
      return sb.toString();
-
 
76991
    }
-
 
76992
 
-
 
76993
    public void validate() throws org.apache.thrift.TException {
76206
      // check for required fields
76994
      // check for required fields
76207
    }
76995
    }
76208
 
76996
 
76209
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
76997
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
76210
      try {
76998
      try {