Subversion Repositories SmartDukaan

Rev

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

Rev 7770 Rev 7897
Line 334... Line 334...
334
 
334
 
335
    /**
335
    /**
336
     * Returns a list of count of requests for product notification against each item
336
     * Returns a list of count of requests for product notification against each item
337
     * 
337
     * 
338
     * @param startDateTime
338
     * @param startDateTime
-
 
339
     * @param categoryId
339
     */
340
     */
340
    public List<ProductNotificationRequestCount> getProductNotificationRequestCount(long startDateTime) throws org.apache.thrift.TException;
341
    public List<ProductNotificationRequestCount> getProductNotificationRequestCount(long startDateTime, long categoryId) throws org.apache.thrift.TException;
341
 
342
 
342
    /**
343
    /**
343
     * This method adds a log to authorize table with Item Id, username who authorized the change, reason.
344
     * This method adds a log to authorize table with Item Id, username who authorized the change, reason.
344
     * 
345
     * 
345
     * @param itemId
346
     * @param itemId
Line 412... Line 413...
412
 
413
 
413
    public boolean updateItemInventory(long itemId, long holdInventory, long defaultInventory) throws org.apache.thrift.TException;
414
    public boolean updateItemInventory(long itemId, long holdInventory, long defaultInventory) throws org.apache.thrift.TException;
414
 
415
 
415
    public boolean updateTimestampForAmazonFeeds(String type, List<Long> sku, long timestamp) throws org.apache.thrift.TException;
416
    public boolean updateTimestampForAmazonFeeds(String type, List<Long> sku, long timestamp) throws org.apache.thrift.TException;
416
 
417
 
-
 
418
    public List<Category> getAllParentCategories() throws org.apache.thrift.TException;
-
 
419
 
417
  }
420
  }
418
 
421
 
419
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
422
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
420
 
423
 
421
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
424
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 552... Line 555...
552
 
555
 
553
    public void getSearchResultCount(List<String> searchTerms, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSearchResultCount_call> resultHandler) throws org.apache.thrift.TException;
556
    public void getSearchResultCount(List<String> searchTerms, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSearchResultCount_call> resultHandler) throws org.apache.thrift.TException;
554
 
557
 
555
    public void getProductNotifications(long startDateTime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProductNotifications_call> resultHandler) throws org.apache.thrift.TException;
558
    public void getProductNotifications(long startDateTime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProductNotifications_call> resultHandler) throws org.apache.thrift.TException;
556
 
559
 
557
    public void getProductNotificationRequestCount(long startDateTime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProductNotificationRequestCount_call> resultHandler) throws org.apache.thrift.TException;
560
    public void getProductNotificationRequestCount(long startDateTime, long categoryId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProductNotificationRequestCount_call> resultHandler) throws org.apache.thrift.TException;
558
 
561
 
559
    public void addAuthorizationLog(long itemId, String username, String reason, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAuthorizationLog_call> resultHandler) throws org.apache.thrift.TException;
562
    public void addAuthorizationLog(long itemId, String username, String reason, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAuthorizationLog_call> resultHandler) throws org.apache.thrift.TException;
560
 
563
 
561
    public void addupdateVoucherForItem(long catalog_item_id, long voucherType, long voucherAmount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addupdateVoucherForItem_call> resultHandler) throws org.apache.thrift.TException;
564
    public void addupdateVoucherForItem(long catalog_item_id, long voucherType, long voucherAmount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addupdateVoucherForItem_call> resultHandler) throws org.apache.thrift.TException;
562
 
565
 
Line 614... Line 617...
614
 
617
 
615
    public void updateItemInventory(long itemId, long holdInventory, long defaultInventory, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemInventory_call> resultHandler) throws org.apache.thrift.TException;
618
    public void updateItemInventory(long itemId, long holdInventory, long defaultInventory, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemInventory_call> resultHandler) throws org.apache.thrift.TException;
616
 
619
 
617
    public void updateTimestampForAmazonFeeds(String type, List<Long> sku, long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateTimestampForAmazonFeeds_call> resultHandler) throws org.apache.thrift.TException;
620
    public void updateTimestampForAmazonFeeds(String type, List<Long> sku, long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateTimestampForAmazonFeeds_call> resultHandler) throws org.apache.thrift.TException;
618
 
621
 
-
 
622
    public void getAllParentCategories(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllParentCategories_call> resultHandler) throws org.apache.thrift.TException;
-
 
623
 
619
  }
624
  }
620
 
625
 
621
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
626
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
622
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
627
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
623
      public Factory() {}
628
      public Factory() {}
Line 2313... Line 2318...
2313
        return result.success;
2318
        return result.success;
2314
      }
2319
      }
2315
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
2320
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
2316
    }
2321
    }
2317
 
2322
 
2318
    public List<ProductNotificationRequestCount> getProductNotificationRequestCount(long startDateTime) throws org.apache.thrift.TException
2323
    public List<ProductNotificationRequestCount> getProductNotificationRequestCount(long startDateTime, long categoryId) throws org.apache.thrift.TException
2319
    {
2324
    {
2320
      send_getProductNotificationRequestCount(startDateTime);
2325
      send_getProductNotificationRequestCount(startDateTime, categoryId);
2321
      return recv_getProductNotificationRequestCount();
2326
      return recv_getProductNotificationRequestCount();
2322
    }
2327
    }
2323
 
2328
 
2324
    public void send_getProductNotificationRequestCount(long startDateTime) throws org.apache.thrift.TException
2329
    public void send_getProductNotificationRequestCount(long startDateTime, long categoryId) throws org.apache.thrift.TException
2325
    {
2330
    {
2326
      getProductNotificationRequestCount_args args = new getProductNotificationRequestCount_args();
2331
      getProductNotificationRequestCount_args args = new getProductNotificationRequestCount_args();
2327
      args.setStartDateTime(startDateTime);
2332
      args.setStartDateTime(startDateTime);
-
 
2333
      args.setCategoryId(categoryId);
2328
      sendBase("getProductNotificationRequestCount", args);
2334
      sendBase("getProductNotificationRequestCount", args);
2329
    }
2335
    }
2330
 
2336
 
2331
    public List<ProductNotificationRequestCount> recv_getProductNotificationRequestCount() throws org.apache.thrift.TException
2337
    public List<ProductNotificationRequestCount> recv_getProductNotificationRequestCount() throws org.apache.thrift.TException
2332
    {
2338
    {
Line 3039... Line 3045...
3039
        return result.success;
3045
        return result.success;
3040
      }
3046
      }
3041
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateTimestampForAmazonFeeds failed: unknown result");
3047
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateTimestampForAmazonFeeds failed: unknown result");
3042
    }
3048
    }
3043
 
3049
 
-
 
3050
    public List<Category> getAllParentCategories() throws org.apache.thrift.TException
-
 
3051
    {
-
 
3052
      send_getAllParentCategories();
-
 
3053
      return recv_getAllParentCategories();
-
 
3054
    }
-
 
3055
 
-
 
3056
    public void send_getAllParentCategories() throws org.apache.thrift.TException
-
 
3057
    {
-
 
3058
      getAllParentCategories_args args = new getAllParentCategories_args();
-
 
3059
      sendBase("getAllParentCategories", args);
-
 
3060
    }
-
 
3061
 
-
 
3062
    public List<Category> recv_getAllParentCategories() throws org.apache.thrift.TException
-
 
3063
    {
-
 
3064
      getAllParentCategories_result result = new getAllParentCategories_result();
-
 
3065
      receiveBase(result, "getAllParentCategories");
-
 
3066
      if (result.isSetSuccess()) {
-
 
3067
        return result.success;
-
 
3068
      }
-
 
3069
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllParentCategories failed: unknown result");
-
 
3070
    }
-
 
3071
 
3044
  }
3072
  }
3045
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
3073
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
3046
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
3074
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
3047
      private org.apache.thrift.async.TAsyncClientManager clientManager;
3075
      private org.apache.thrift.async.TAsyncClientManager clientManager;
3048
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
3076
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 5320... Line 5348...
5320
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5348
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5321
        return (new Client(prot)).recv_getProductNotifications();
5349
        return (new Client(prot)).recv_getProductNotifications();
5322
      }
5350
      }
5323
    }
5351
    }
5324
 
5352
 
5325
    public void getProductNotificationRequestCount(long startDateTime, org.apache.thrift.async.AsyncMethodCallback<getProductNotificationRequestCount_call> resultHandler) throws org.apache.thrift.TException {
5353
    public void getProductNotificationRequestCount(long startDateTime, long categoryId, org.apache.thrift.async.AsyncMethodCallback<getProductNotificationRequestCount_call> resultHandler) throws org.apache.thrift.TException {
5326
      checkReady();
5354
      checkReady();
5327
      getProductNotificationRequestCount_call method_call = new getProductNotificationRequestCount_call(startDateTime, resultHandler, this, ___protocolFactory, ___transport);
5355
      getProductNotificationRequestCount_call method_call = new getProductNotificationRequestCount_call(startDateTime, categoryId, resultHandler, this, ___protocolFactory, ___transport);
5328
      this.___currentMethod = method_call;
5356
      this.___currentMethod = method_call;
5329
      ___manager.call(method_call);
5357
      ___manager.call(method_call);
5330
    }
5358
    }
5331
 
5359
 
5332
    public static class getProductNotificationRequestCount_call extends org.apache.thrift.async.TAsyncMethodCall {
5360
    public static class getProductNotificationRequestCount_call extends org.apache.thrift.async.TAsyncMethodCall {
5333
      private long startDateTime;
5361
      private long startDateTime;
-
 
5362
      private long categoryId;
5334
      public getProductNotificationRequestCount_call(long startDateTime, org.apache.thrift.async.AsyncMethodCallback<getProductNotificationRequestCount_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 {
5363
      public getProductNotificationRequestCount_call(long startDateTime, long categoryId, org.apache.thrift.async.AsyncMethodCallback<getProductNotificationRequestCount_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 {
5335
        super(client, protocolFactory, transport, resultHandler, false);
5364
        super(client, protocolFactory, transport, resultHandler, false);
5336
        this.startDateTime = startDateTime;
5365
        this.startDateTime = startDateTime;
-
 
5366
        this.categoryId = categoryId;
5337
      }
5367
      }
5338
 
5368
 
5339
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5369
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5340
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProductNotificationRequestCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
5370
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProductNotificationRequestCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
5341
        getProductNotificationRequestCount_args args = new getProductNotificationRequestCount_args();
5371
        getProductNotificationRequestCount_args args = new getProductNotificationRequestCount_args();
5342
        args.setStartDateTime(startDateTime);
5372
        args.setStartDateTime(startDateTime);
-
 
5373
        args.setCategoryId(categoryId);
5343
        args.write(prot);
5374
        args.write(prot);
5344
        prot.writeMessageEnd();
5375
        prot.writeMessageEnd();
5345
      }
5376
      }
5346
 
5377
 
5347
      public List<ProductNotificationRequestCount> getResult() throws org.apache.thrift.TException {
5378
      public List<ProductNotificationRequestCount> getResult() throws org.apache.thrift.TException {
Line 6369... Line 6400...
6369
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6400
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6370
        return (new Client(prot)).recv_updateTimestampForAmazonFeeds();
6401
        return (new Client(prot)).recv_updateTimestampForAmazonFeeds();
6371
      }
6402
      }
6372
    }
6403
    }
6373
 
6404
 
-
 
6405
    public void getAllParentCategories(org.apache.thrift.async.AsyncMethodCallback<getAllParentCategories_call> resultHandler) throws org.apache.thrift.TException {
-
 
6406
      checkReady();
-
 
6407
      getAllParentCategories_call method_call = new getAllParentCategories_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
6408
      this.___currentMethod = method_call;
-
 
6409
      ___manager.call(method_call);
-
 
6410
    }
-
 
6411
 
-
 
6412
    public static class getAllParentCategories_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
6413
      public getAllParentCategories_call(org.apache.thrift.async.AsyncMethodCallback<getAllParentCategories_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 {
-
 
6414
        super(client, protocolFactory, transport, resultHandler, false);
-
 
6415
      }
-
 
6416
 
-
 
6417
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
6418
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllParentCategories", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
6419
        getAllParentCategories_args args = new getAllParentCategories_args();
-
 
6420
        args.write(prot);
-
 
6421
        prot.writeMessageEnd();
-
 
6422
      }
-
 
6423
 
-
 
6424
      public List<Category> getResult() throws org.apache.thrift.TException {
-
 
6425
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
6426
          throw new IllegalStateException("Method call not finished!");
-
 
6427
        }
-
 
6428
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
6429
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
6430
        return (new Client(prot)).recv_getAllParentCategories();
-
 
6431
      }
-
 
6432
    }
-
 
6433
 
6374
  }
6434
  }
6375
 
6435
 
6376
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
6436
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
6377
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
6437
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
6378
    public Processor(I iface) {
6438
    public Processor(I iface) {
Line 6481... Line 6541...
6481
      processMap.put("getAsinItems", new getAsinItems());
6541
      processMap.put("getAsinItems", new getAsinItems());
6482
      processMap.put("getAllFbaListedItems", new getAllFbaListedItems());
6542
      processMap.put("getAllFbaListedItems", new getAllFbaListedItems());
6483
      processMap.put("getAllNonFbaListedItems", new getAllNonFbaListedItems());
6543
      processMap.put("getAllNonFbaListedItems", new getAllNonFbaListedItems());
6484
      processMap.put("updateItemInventory", new updateItemInventory());
6544
      processMap.put("updateItemInventory", new updateItemInventory());
6485
      processMap.put("updateTimestampForAmazonFeeds", new updateTimestampForAmazonFeeds());
6545
      processMap.put("updateTimestampForAmazonFeeds", new updateTimestampForAmazonFeeds());
-
 
6546
      processMap.put("getAllParentCategories", new getAllParentCategories());
6486
      return processMap;
6547
      return processMap;
6487
    }
6548
    }
6488
 
6549
 
6489
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
6550
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
6490
      public addItem() {
6551
      public addItem() {
Line 7741... Line 7802...
7741
        return new getProductNotificationRequestCount_args();
7802
        return new getProductNotificationRequestCount_args();
7742
      }
7803
      }
7743
 
7804
 
7744
      protected getProductNotificationRequestCount_result getResult(I iface, getProductNotificationRequestCount_args args) throws org.apache.thrift.TException {
7805
      protected getProductNotificationRequestCount_result getResult(I iface, getProductNotificationRequestCount_args args) throws org.apache.thrift.TException {
7745
        getProductNotificationRequestCount_result result = new getProductNotificationRequestCount_result();
7806
        getProductNotificationRequestCount_result result = new getProductNotificationRequestCount_result();
7746
        result.success = iface.getProductNotificationRequestCount(args.startDateTime);
7807
        result.success = iface.getProductNotificationRequestCount(args.startDateTime, args.categoryId);
7747
        return result;
7808
        return result;
7748
      }
7809
      }
7749
    }
7810
    }
7750
 
7811
 
7751
    private static class addAuthorizationLog<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAuthorizationLog_args> {
7812
    private static class addAuthorizationLog<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAuthorizationLog_args> {
Line 8253... Line 8314...
8253
        result.setSuccessIsSet(true);
8314
        result.setSuccessIsSet(true);
8254
        return result;
8315
        return result;
8255
      }
8316
      }
8256
    }
8317
    }
8257
 
8318
 
-
 
8319
    private static class getAllParentCategories<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllParentCategories_args> {
-
 
8320
      public getAllParentCategories() {
-
 
8321
        super("getAllParentCategories");
-
 
8322
      }
-
 
8323
 
-
 
8324
      protected getAllParentCategories_args getEmptyArgsInstance() {
-
 
8325
        return new getAllParentCategories_args();
-
 
8326
      }
-
 
8327
 
-
 
8328
      protected getAllParentCategories_result getResult(I iface, getAllParentCategories_args args) throws org.apache.thrift.TException {
-
 
8329
        getAllParentCategories_result result = new getAllParentCategories_result();
-
 
8330
        result.success = iface.getAllParentCategories();
-
 
8331
        return result;
-
 
8332
      }
-
 
8333
    }
-
 
8334
 
8258
  }
8335
  }
8259
 
8336
 
8260
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
8337
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
8261
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
8338
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
8262
 
8339
 
Line 54388... Line 54465...
54388
 
54465
 
54389
  public static class getProductNotificationRequestCount_args implements org.apache.thrift.TBase<getProductNotificationRequestCount_args, getProductNotificationRequestCount_args._Fields>, java.io.Serializable, Cloneable   {
54466
  public static class getProductNotificationRequestCount_args implements org.apache.thrift.TBase<getProductNotificationRequestCount_args, getProductNotificationRequestCount_args._Fields>, java.io.Serializable, Cloneable   {
54390
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProductNotificationRequestCount_args");
54467
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProductNotificationRequestCount_args");
54391
 
54468
 
54392
    private static final org.apache.thrift.protocol.TField START_DATE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("startDateTime", org.apache.thrift.protocol.TType.I64, (short)1);
54469
    private static final org.apache.thrift.protocol.TField START_DATE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("startDateTime", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
54470
    private static final org.apache.thrift.protocol.TField CATEGORY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("categoryId", org.apache.thrift.protocol.TType.I64, (short)2);
54393
 
54471
 
54394
    private long startDateTime; // required
54472
    private long startDateTime; // required
-
 
54473
    private long categoryId; // required
54395
 
54474
 
54396
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
54475
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
54397
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
54476
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
54398
      START_DATE_TIME((short)1, "startDateTime");
54477
      START_DATE_TIME((short)1, "startDateTime"),
-
 
54478
      CATEGORY_ID((short)2, "categoryId");
54399
 
54479
 
54400
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
54480
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
54401
 
54481
 
54402
      static {
54482
      static {
54403
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
54483
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 54410... Line 54490...
54410
       */
54490
       */
54411
      public static _Fields findByThriftId(int fieldId) {
54491
      public static _Fields findByThriftId(int fieldId) {
54412
        switch(fieldId) {
54492
        switch(fieldId) {
54413
          case 1: // START_DATE_TIME
54493
          case 1: // START_DATE_TIME
54414
            return START_DATE_TIME;
54494
            return START_DATE_TIME;
-
 
54495
          case 2: // CATEGORY_ID
-
 
54496
            return CATEGORY_ID;
54415
          default:
54497
          default:
54416
            return null;
54498
            return null;
54417
        }
54499
        }
54418
      }
54500
      }
54419
 
54501
 
Line 54451... Line 54533...
54451
      }
54533
      }
54452
    }
54534
    }
54453
 
54535
 
54454
    // isset id assignments
54536
    // isset id assignments
54455
    private static final int __STARTDATETIME_ISSET_ID = 0;
54537
    private static final int __STARTDATETIME_ISSET_ID = 0;
-
 
54538
    private static final int __CATEGORYID_ISSET_ID = 1;
54456
    private BitSet __isset_bit_vector = new BitSet(1);
54539
    private BitSet __isset_bit_vector = new BitSet(2);
54457
 
54540
 
54458
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
54541
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
54459
    static {
54542
    static {
54460
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
54543
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
54461
      tmpMap.put(_Fields.START_DATE_TIME, new org.apache.thrift.meta_data.FieldMetaData("startDateTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54544
      tmpMap.put(_Fields.START_DATE_TIME, new org.apache.thrift.meta_data.FieldMetaData("startDateTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54462
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
54545
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
54546
      tmpMap.put(_Fields.CATEGORY_ID, new org.apache.thrift.meta_data.FieldMetaData("categoryId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
54547
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
54463
      metaDataMap = Collections.unmodifiableMap(tmpMap);
54548
      metaDataMap = Collections.unmodifiableMap(tmpMap);
54464
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProductNotificationRequestCount_args.class, metaDataMap);
54549
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProductNotificationRequestCount_args.class, metaDataMap);
54465
    }
54550
    }
54466
 
54551
 
54467
    public getProductNotificationRequestCount_args() {
54552
    public getProductNotificationRequestCount_args() {
54468
    }
54553
    }
54469
 
54554
 
54470
    public getProductNotificationRequestCount_args(
54555
    public getProductNotificationRequestCount_args(
54471
      long startDateTime)
54556
      long startDateTime,
-
 
54557
      long categoryId)
54472
    {
54558
    {
54473
      this();
54559
      this();
54474
      this.startDateTime = startDateTime;
54560
      this.startDateTime = startDateTime;
54475
      setStartDateTimeIsSet(true);
54561
      setStartDateTimeIsSet(true);
-
 
54562
      this.categoryId = categoryId;
-
 
54563
      setCategoryIdIsSet(true);
54476
    }
54564
    }
54477
 
54565
 
54478
    /**
54566
    /**
54479
     * Performs a deep copy on <i>other</i>.
54567
     * Performs a deep copy on <i>other</i>.
54480
     */
54568
     */
54481
    public getProductNotificationRequestCount_args(getProductNotificationRequestCount_args other) {
54569
    public getProductNotificationRequestCount_args(getProductNotificationRequestCount_args other) {
54482
      __isset_bit_vector.clear();
54570
      __isset_bit_vector.clear();
54483
      __isset_bit_vector.or(other.__isset_bit_vector);
54571
      __isset_bit_vector.or(other.__isset_bit_vector);
54484
      this.startDateTime = other.startDateTime;
54572
      this.startDateTime = other.startDateTime;
-
 
54573
      this.categoryId = other.categoryId;
54485
    }
54574
    }
54486
 
54575
 
54487
    public getProductNotificationRequestCount_args deepCopy() {
54576
    public getProductNotificationRequestCount_args deepCopy() {
54488
      return new getProductNotificationRequestCount_args(this);
54577
      return new getProductNotificationRequestCount_args(this);
54489
    }
54578
    }
54490
 
54579
 
54491
    @Override
54580
    @Override
54492
    public void clear() {
54581
    public void clear() {
54493
      setStartDateTimeIsSet(false);
54582
      setStartDateTimeIsSet(false);
54494
      this.startDateTime = 0;
54583
      this.startDateTime = 0;
-
 
54584
      setCategoryIdIsSet(false);
-
 
54585
      this.categoryId = 0;
54495
    }
54586
    }
54496
 
54587
 
54497
    public long getStartDateTime() {
54588
    public long getStartDateTime() {
54498
      return this.startDateTime;
54589
      return this.startDateTime;
54499
    }
54590
    }
Line 54514... Line 54605...
54514
 
54605
 
54515
    public void setStartDateTimeIsSet(boolean value) {
54606
    public void setStartDateTimeIsSet(boolean value) {
54516
      __isset_bit_vector.set(__STARTDATETIME_ISSET_ID, value);
54607
      __isset_bit_vector.set(__STARTDATETIME_ISSET_ID, value);
54517
    }
54608
    }
54518
 
54609
 
-
 
54610
    public long getCategoryId() {
-
 
54611
      return this.categoryId;
-
 
54612
    }
-
 
54613
 
-
 
54614
    public void setCategoryId(long categoryId) {
-
 
54615
      this.categoryId = categoryId;
-
 
54616
      setCategoryIdIsSet(true);
-
 
54617
    }
-
 
54618
 
-
 
54619
    public void unsetCategoryId() {
-
 
54620
      __isset_bit_vector.clear(__CATEGORYID_ISSET_ID);
-
 
54621
    }
-
 
54622
 
-
 
54623
    /** Returns true if field categoryId is set (has been assigned a value) and false otherwise */
-
 
54624
    public boolean isSetCategoryId() {
-
 
54625
      return __isset_bit_vector.get(__CATEGORYID_ISSET_ID);
-
 
54626
    }
-
 
54627
 
-
 
54628
    public void setCategoryIdIsSet(boolean value) {
-
 
54629
      __isset_bit_vector.set(__CATEGORYID_ISSET_ID, value);
-
 
54630
    }
-
 
54631
 
54519
    public void setFieldValue(_Fields field, Object value) {
54632
    public void setFieldValue(_Fields field, Object value) {
54520
      switch (field) {
54633
      switch (field) {
54521
      case START_DATE_TIME:
54634
      case START_DATE_TIME:
54522
        if (value == null) {
54635
        if (value == null) {
54523
          unsetStartDateTime();
54636
          unsetStartDateTime();
54524
        } else {
54637
        } else {
54525
          setStartDateTime((Long)value);
54638
          setStartDateTime((Long)value);
54526
        }
54639
        }
54527
        break;
54640
        break;
54528
 
54641
 
-
 
54642
      case CATEGORY_ID:
-
 
54643
        if (value == null) {
-
 
54644
          unsetCategoryId();
-
 
54645
        } else {
-
 
54646
          setCategoryId((Long)value);
-
 
54647
        }
-
 
54648
        break;
-
 
54649
 
54529
      }
54650
      }
54530
    }
54651
    }
54531
 
54652
 
54532
    public Object getFieldValue(_Fields field) {
54653
    public Object getFieldValue(_Fields field) {
54533
      switch (field) {
54654
      switch (field) {
54534
      case START_DATE_TIME:
54655
      case START_DATE_TIME:
54535
        return Long.valueOf(getStartDateTime());
54656
        return Long.valueOf(getStartDateTime());
54536
 
54657
 
-
 
54658
      case CATEGORY_ID:
-
 
54659
        return Long.valueOf(getCategoryId());
-
 
54660
 
54537
      }
54661
      }
54538
      throw new IllegalStateException();
54662
      throw new IllegalStateException();
54539
    }
54663
    }
54540
 
54664
 
54541
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
54665
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 54545... Line 54669...
54545
      }
54669
      }
54546
 
54670
 
54547
      switch (field) {
54671
      switch (field) {
54548
      case START_DATE_TIME:
54672
      case START_DATE_TIME:
54549
        return isSetStartDateTime();
54673
        return isSetStartDateTime();
-
 
54674
      case CATEGORY_ID:
-
 
54675
        return isSetCategoryId();
54550
      }
54676
      }
54551
      throw new IllegalStateException();
54677
      throw new IllegalStateException();
54552
    }
54678
    }
54553
 
54679
 
54554
    @Override
54680
    @Override
Line 54571... Line 54697...
54571
          return false;
54697
          return false;
54572
        if (this.startDateTime != that.startDateTime)
54698
        if (this.startDateTime != that.startDateTime)
54573
          return false;
54699
          return false;
54574
      }
54700
      }
54575
 
54701
 
-
 
54702
      boolean this_present_categoryId = true;
-
 
54703
      boolean that_present_categoryId = true;
-
 
54704
      if (this_present_categoryId || that_present_categoryId) {
-
 
54705
        if (!(this_present_categoryId && that_present_categoryId))
-
 
54706
          return false;
-
 
54707
        if (this.categoryId != that.categoryId)
-
 
54708
          return false;
-
 
54709
      }
-
 
54710
 
54576
      return true;
54711
      return true;
54577
    }
54712
    }
54578
 
54713
 
54579
    @Override
54714
    @Override
54580
    public int hashCode() {
54715
    public int hashCode() {
Line 54597... Line 54732...
54597
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDateTime, typedOther.startDateTime);
54732
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDateTime, typedOther.startDateTime);
54598
        if (lastComparison != 0) {
54733
        if (lastComparison != 0) {
54599
          return lastComparison;
54734
          return lastComparison;
54600
        }
54735
        }
54601
      }
54736
      }
-
 
54737
      lastComparison = Boolean.valueOf(isSetCategoryId()).compareTo(typedOther.isSetCategoryId());
-
 
54738
      if (lastComparison != 0) {
-
 
54739
        return lastComparison;
-
 
54740
      }
-
 
54741
      if (isSetCategoryId()) {
-
 
54742
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.categoryId, typedOther.categoryId);
-
 
54743
        if (lastComparison != 0) {
-
 
54744
          return lastComparison;
-
 
54745
        }
-
 
54746
      }
54602
      return 0;
54747
      return 0;
54603
    }
54748
    }
54604
 
54749
 
54605
    public _Fields fieldForId(int fieldId) {
54750
    public _Fields fieldForId(int fieldId) {
54606
      return _Fields.findByThriftId(fieldId);
54751
      return _Fields.findByThriftId(fieldId);
Line 54622... Line 54767...
54622
              setStartDateTimeIsSet(true);
54767
              setStartDateTimeIsSet(true);
54623
            } else { 
54768
            } else { 
54624
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54769
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54625
            }
54770
            }
54626
            break;
54771
            break;
-
 
54772
          case 2: // CATEGORY_ID
-
 
54773
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
54774
              this.categoryId = iprot.readI64();
-
 
54775
              setCategoryIdIsSet(true);
-
 
54776
            } else { 
-
 
54777
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
54778
            }
-
 
54779
            break;
54627
          default:
54780
          default:
54628
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54781
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54629
        }
54782
        }
54630
        iprot.readFieldEnd();
54783
        iprot.readFieldEnd();
54631
      }
54784
      }
Line 54638... Line 54791...
54638
 
54791
 
54639
      oprot.writeStructBegin(STRUCT_DESC);
54792
      oprot.writeStructBegin(STRUCT_DESC);
54640
      oprot.writeFieldBegin(START_DATE_TIME_FIELD_DESC);
54793
      oprot.writeFieldBegin(START_DATE_TIME_FIELD_DESC);
54641
      oprot.writeI64(this.startDateTime);
54794
      oprot.writeI64(this.startDateTime);
54642
      oprot.writeFieldEnd();
54795
      oprot.writeFieldEnd();
-
 
54796
      oprot.writeFieldBegin(CATEGORY_ID_FIELD_DESC);
-
 
54797
      oprot.writeI64(this.categoryId);
-
 
54798
      oprot.writeFieldEnd();
54643
      oprot.writeFieldStop();
54799
      oprot.writeFieldStop();
54644
      oprot.writeStructEnd();
54800
      oprot.writeStructEnd();
54645
    }
54801
    }
54646
 
54802
 
54647
    @Override
54803
    @Override
Line 54650... Line 54806...
54650
      boolean first = true;
54806
      boolean first = true;
54651
 
54807
 
54652
      sb.append("startDateTime:");
54808
      sb.append("startDateTime:");
54653
      sb.append(this.startDateTime);
54809
      sb.append(this.startDateTime);
54654
      first = false;
54810
      first = false;
-
 
54811
      if (!first) sb.append(", ");
-
 
54812
      sb.append("categoryId:");
-
 
54813
      sb.append(this.categoryId);
-
 
54814
      first = false;
54655
      sb.append(")");
54815
      sb.append(")");
54656
      return sb.toString();
54816
      return sb.toString();
54657
    }
54817
    }
54658
 
54818
 
54659
    public void validate() throws org.apache.thrift.TException {
54819
    public void validate() throws org.apache.thrift.TException {
Line 55469... Line 55629...
55469
      }
55629
      }
55470
    }
55630
    }
55471
 
55631
 
55472
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55632
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55473
      try {
55633
      try {
55474
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
55475
        __isset_bit_vector = new BitSet(1);
-
 
55476
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55634
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55477
      } catch (org.apache.thrift.TException te) {
55635
      } catch (org.apache.thrift.TException te) {
55478
        throw new java.io.IOException(te);
55636
        throw new java.io.IOException(te);
55479
      }
55637
      }
55480
    }
55638
    }
Line 74377... Line 74535...
74377
      first = false;
74535
      first = false;
74378
      sb.append(")");
74536
      sb.append(")");
74379
      return sb.toString();
74537
      return sb.toString();
74380
    }
74538
    }
74381
 
74539
 
-
 
74540
    public void validate() throws org.apache.thrift.TException {
-
 
74541
      // check for required fields
-
 
74542
    }
-
 
74543
 
-
 
74544
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
74545
      try {
-
 
74546
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
74547
      } catch (org.apache.thrift.TException te) {
-
 
74548
        throw new java.io.IOException(te);
-
 
74549
      }
-
 
74550
    }
-
 
74551
 
-
 
74552
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
74553
      try {
-
 
74554
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
74555
      } catch (org.apache.thrift.TException te) {
-
 
74556
        throw new java.io.IOException(te);
-
 
74557
      }
-
 
74558
    }
-
 
74559
 
-
 
74560
  }
-
 
74561
 
-
 
74562
  public static class getAllParentCategories_args implements org.apache.thrift.TBase<getAllParentCategories_args, getAllParentCategories_args._Fields>, java.io.Serializable, Cloneable   {
-
 
74563
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllParentCategories_args");
-
 
74564
 
-
 
74565
 
-
 
74566
 
-
 
74567
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
74568
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
74569
;
-
 
74570
 
-
 
74571
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
74572
 
-
 
74573
      static {
-
 
74574
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
74575
          byName.put(field.getFieldName(), field);
-
 
74576
        }
-
 
74577
      }
-
 
74578
 
-
 
74579
      /**
-
 
74580
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
74581
       */
-
 
74582
      public static _Fields findByThriftId(int fieldId) {
-
 
74583
        switch(fieldId) {
-
 
74584
          default:
-
 
74585
            return null;
-
 
74586
        }
-
 
74587
      }
-
 
74588
 
-
 
74589
      /**
-
 
74590
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
74591
       * if it is not found.
-
 
74592
       */
-
 
74593
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
74594
        _Fields fields = findByThriftId(fieldId);
-
 
74595
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
74596
        return fields;
-
 
74597
      }
-
 
74598
 
-
 
74599
      /**
-
 
74600
       * Find the _Fields constant that matches name, or null if its not found.
-
 
74601
       */
-
 
74602
      public static _Fields findByName(String name) {
-
 
74603
        return byName.get(name);
-
 
74604
      }
-
 
74605
 
-
 
74606
      private final short _thriftId;
-
 
74607
      private final String _fieldName;
-
 
74608
 
-
 
74609
      _Fields(short thriftId, String fieldName) {
-
 
74610
        _thriftId = thriftId;
-
 
74611
        _fieldName = fieldName;
-
 
74612
      }
-
 
74613
 
-
 
74614
      public short getThriftFieldId() {
-
 
74615
        return _thriftId;
-
 
74616
      }
-
 
74617
 
-
 
74618
      public String getFieldName() {
-
 
74619
        return _fieldName;
-
 
74620
      }
-
 
74621
    }
-
 
74622
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
74623
    static {
-
 
74624
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
74625
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
74626
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllParentCategories_args.class, metaDataMap);
-
 
74627
    }
-
 
74628
 
-
 
74629
    public getAllParentCategories_args() {
-
 
74630
    }
-
 
74631
 
-
 
74632
    /**
-
 
74633
     * Performs a deep copy on <i>other</i>.
-
 
74634
     */
-
 
74635
    public getAllParentCategories_args(getAllParentCategories_args other) {
-
 
74636
    }
-
 
74637
 
-
 
74638
    public getAllParentCategories_args deepCopy() {
-
 
74639
      return new getAllParentCategories_args(this);
-
 
74640
    }
-
 
74641
 
-
 
74642
    @Override
-
 
74643
    public void clear() {
-
 
74644
    }
-
 
74645
 
-
 
74646
    public void setFieldValue(_Fields field, Object value) {
-
 
74647
      switch (field) {
-
 
74648
      }
-
 
74649
    }
-
 
74650
 
-
 
74651
    public Object getFieldValue(_Fields field) {
-
 
74652
      switch (field) {
-
 
74653
      }
-
 
74654
      throw new IllegalStateException();
-
 
74655
    }
-
 
74656
 
-
 
74657
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
74658
    public boolean isSet(_Fields field) {
-
 
74659
      if (field == null) {
-
 
74660
        throw new IllegalArgumentException();
-
 
74661
      }
-
 
74662
 
-
 
74663
      switch (field) {
-
 
74664
      }
-
 
74665
      throw new IllegalStateException();
-
 
74666
    }
-
 
74667
 
-
 
74668
    @Override
-
 
74669
    public boolean equals(Object that) {
-
 
74670
      if (that == null)
-
 
74671
        return false;
-
 
74672
      if (that instanceof getAllParentCategories_args)
-
 
74673
        return this.equals((getAllParentCategories_args)that);
-
 
74674
      return false;
-
 
74675
    }
-
 
74676
 
-
 
74677
    public boolean equals(getAllParentCategories_args that) {
-
 
74678
      if (that == null)
-
 
74679
        return false;
-
 
74680
 
-
 
74681
      return true;
-
 
74682
    }
-
 
74683
 
-
 
74684
    @Override
-
 
74685
    public int hashCode() {
-
 
74686
      return 0;
-
 
74687
    }
-
 
74688
 
-
 
74689
    public int compareTo(getAllParentCategories_args other) {
-
 
74690
      if (!getClass().equals(other.getClass())) {
-
 
74691
        return getClass().getName().compareTo(other.getClass().getName());
-
 
74692
      }
-
 
74693
 
-
 
74694
      int lastComparison = 0;
-
 
74695
      getAllParentCategories_args typedOther = (getAllParentCategories_args)other;
-
 
74696
 
-
 
74697
      return 0;
-
 
74698
    }
-
 
74699
 
-
 
74700
    public _Fields fieldForId(int fieldId) {
-
 
74701
      return _Fields.findByThriftId(fieldId);
-
 
74702
    }
-
 
74703
 
-
 
74704
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
74705
      org.apache.thrift.protocol.TField field;
-
 
74706
      iprot.readStructBegin();
-
 
74707
      while (true)
-
 
74708
      {
-
 
74709
        field = iprot.readFieldBegin();
-
 
74710
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
74711
          break;
-
 
74712
        }
-
 
74713
        switch (field.id) {
-
 
74714
          default:
-
 
74715
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
74716
        }
-
 
74717
        iprot.readFieldEnd();
-
 
74718
      }
-
 
74719
      iprot.readStructEnd();
-
 
74720
      validate();
-
 
74721
    }
-
 
74722
 
-
 
74723
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
74724
      validate();
-
 
74725
 
-
 
74726
      oprot.writeStructBegin(STRUCT_DESC);
-
 
74727
      oprot.writeFieldStop();
-
 
74728
      oprot.writeStructEnd();
-
 
74729
    }
-
 
74730
 
-
 
74731
    @Override
-
 
74732
    public String toString() {
-
 
74733
      StringBuilder sb = new StringBuilder("getAllParentCategories_args(");
-
 
74734
      boolean first = true;
-
 
74735
 
-
 
74736
      sb.append(")");
-
 
74737
      return sb.toString();
-
 
74738
    }
-
 
74739
 
-
 
74740
    public void validate() throws org.apache.thrift.TException {
-
 
74741
      // check for required fields
-
 
74742
    }
-
 
74743
 
-
 
74744
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
74745
      try {
-
 
74746
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
74747
      } catch (org.apache.thrift.TException te) {
-
 
74748
        throw new java.io.IOException(te);
-
 
74749
      }
-
 
74750
    }
-
 
74751
 
-
 
74752
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
74753
      try {
-
 
74754
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
74755
      } catch (org.apache.thrift.TException te) {
-
 
74756
        throw new java.io.IOException(te);
-
 
74757
      }
-
 
74758
    }
-
 
74759
 
-
 
74760
  }
-
 
74761
 
-
 
74762
  public static class getAllParentCategories_result implements org.apache.thrift.TBase<getAllParentCategories_result, getAllParentCategories_result._Fields>, java.io.Serializable, Cloneable   {
-
 
74763
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllParentCategories_result");
-
 
74764
 
-
 
74765
    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);
-
 
74766
 
-
 
74767
    private List<Category> success; // required
-
 
74768
 
-
 
74769
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
74770
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
74771
      SUCCESS((short)0, "success");
-
 
74772
 
-
 
74773
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
74774
 
-
 
74775
      static {
-
 
74776
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
74777
          byName.put(field.getFieldName(), field);
-
 
74778
        }
-
 
74779
      }
-
 
74780
 
-
 
74781
      /**
-
 
74782
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
74783
       */
-
 
74784
      public static _Fields findByThriftId(int fieldId) {
-
 
74785
        switch(fieldId) {
-
 
74786
          case 0: // SUCCESS
-
 
74787
            return SUCCESS;
-
 
74788
          default:
-
 
74789
            return null;
-
 
74790
        }
-
 
74791
      }
-
 
74792
 
-
 
74793
      /**
-
 
74794
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
74795
       * if it is not found.
-
 
74796
       */
-
 
74797
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
74798
        _Fields fields = findByThriftId(fieldId);
-
 
74799
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
74800
        return fields;
-
 
74801
      }
-
 
74802
 
-
 
74803
      /**
-
 
74804
       * Find the _Fields constant that matches name, or null if its not found.
-
 
74805
       */
-
 
74806
      public static _Fields findByName(String name) {
-
 
74807
        return byName.get(name);
-
 
74808
      }
-
 
74809
 
-
 
74810
      private final short _thriftId;
-
 
74811
      private final String _fieldName;
-
 
74812
 
-
 
74813
      _Fields(short thriftId, String fieldName) {
-
 
74814
        _thriftId = thriftId;
-
 
74815
        _fieldName = fieldName;
-
 
74816
      }
-
 
74817
 
-
 
74818
      public short getThriftFieldId() {
-
 
74819
        return _thriftId;
-
 
74820
      }
-
 
74821
 
-
 
74822
      public String getFieldName() {
-
 
74823
        return _fieldName;
-
 
74824
      }
-
 
74825
    }
-
 
74826
 
-
 
74827
    // isset id assignments
-
 
74828
 
-
 
74829
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
74830
    static {
-
 
74831
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
74832
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
74833
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
74834
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Category.class))));
-
 
74835
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
74836
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllParentCategories_result.class, metaDataMap);
-
 
74837
    }
-
 
74838
 
-
 
74839
    public getAllParentCategories_result() {
-
 
74840
    }
-
 
74841
 
-
 
74842
    public getAllParentCategories_result(
-
 
74843
      List<Category> success)
-
 
74844
    {
-
 
74845
      this();
-
 
74846
      this.success = success;
-
 
74847
    }
-
 
74848
 
-
 
74849
    /**
-
 
74850
     * Performs a deep copy on <i>other</i>.
-
 
74851
     */
-
 
74852
    public getAllParentCategories_result(getAllParentCategories_result other) {
-
 
74853
      if (other.isSetSuccess()) {
-
 
74854
        List<Category> __this__success = new ArrayList<Category>();
-
 
74855
        for (Category other_element : other.success) {
-
 
74856
          __this__success.add(new Category(other_element));
-
 
74857
        }
-
 
74858
        this.success = __this__success;
-
 
74859
      }
-
 
74860
    }
-
 
74861
 
-
 
74862
    public getAllParentCategories_result deepCopy() {
-
 
74863
      return new getAllParentCategories_result(this);
-
 
74864
    }
-
 
74865
 
-
 
74866
    @Override
-
 
74867
    public void clear() {
-
 
74868
      this.success = null;
-
 
74869
    }
-
 
74870
 
-
 
74871
    public int getSuccessSize() {
-
 
74872
      return (this.success == null) ? 0 : this.success.size();
-
 
74873
    }
-
 
74874
 
-
 
74875
    public java.util.Iterator<Category> getSuccessIterator() {
-
 
74876
      return (this.success == null) ? null : this.success.iterator();
-
 
74877
    }
-
 
74878
 
-
 
74879
    public void addToSuccess(Category elem) {
-
 
74880
      if (this.success == null) {
-
 
74881
        this.success = new ArrayList<Category>();
-
 
74882
      }
-
 
74883
      this.success.add(elem);
-
 
74884
    }
-
 
74885
 
-
 
74886
    public List<Category> getSuccess() {
-
 
74887
      return this.success;
-
 
74888
    }
-
 
74889
 
-
 
74890
    public void setSuccess(List<Category> success) {
-
 
74891
      this.success = success;
-
 
74892
    }
-
 
74893
 
-
 
74894
    public void unsetSuccess() {
-
 
74895
      this.success = null;
-
 
74896
    }
-
 
74897
 
-
 
74898
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
74899
    public boolean isSetSuccess() {
-
 
74900
      return this.success != null;
-
 
74901
    }
-
 
74902
 
-
 
74903
    public void setSuccessIsSet(boolean value) {
-
 
74904
      if (!value) {
-
 
74905
        this.success = null;
-
 
74906
      }
-
 
74907
    }
-
 
74908
 
-
 
74909
    public void setFieldValue(_Fields field, Object value) {
-
 
74910
      switch (field) {
-
 
74911
      case SUCCESS:
-
 
74912
        if (value == null) {
-
 
74913
          unsetSuccess();
-
 
74914
        } else {
-
 
74915
          setSuccess((List<Category>)value);
-
 
74916
        }
-
 
74917
        break;
-
 
74918
 
-
 
74919
      }
-
 
74920
    }
-
 
74921
 
-
 
74922
    public Object getFieldValue(_Fields field) {
-
 
74923
      switch (field) {
-
 
74924
      case SUCCESS:
-
 
74925
        return getSuccess();
-
 
74926
 
-
 
74927
      }
-
 
74928
      throw new IllegalStateException();
-
 
74929
    }
-
 
74930
 
-
 
74931
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
74932
    public boolean isSet(_Fields field) {
-
 
74933
      if (field == null) {
-
 
74934
        throw new IllegalArgumentException();
-
 
74935
      }
-
 
74936
 
-
 
74937
      switch (field) {
-
 
74938
      case SUCCESS:
-
 
74939
        return isSetSuccess();
-
 
74940
      }
-
 
74941
      throw new IllegalStateException();
-
 
74942
    }
-
 
74943
 
-
 
74944
    @Override
-
 
74945
    public boolean equals(Object that) {
-
 
74946
      if (that == null)
-
 
74947
        return false;
-
 
74948
      if (that instanceof getAllParentCategories_result)
-
 
74949
        return this.equals((getAllParentCategories_result)that);
-
 
74950
      return false;
-
 
74951
    }
-
 
74952
 
-
 
74953
    public boolean equals(getAllParentCategories_result that) {
-
 
74954
      if (that == null)
-
 
74955
        return false;
-
 
74956
 
-
 
74957
      boolean this_present_success = true && this.isSetSuccess();
-
 
74958
      boolean that_present_success = true && that.isSetSuccess();
-
 
74959
      if (this_present_success || that_present_success) {
-
 
74960
        if (!(this_present_success && that_present_success))
-
 
74961
          return false;
-
 
74962
        if (!this.success.equals(that.success))
-
 
74963
          return false;
-
 
74964
      }
-
 
74965
 
-
 
74966
      return true;
-
 
74967
    }
-
 
74968
 
-
 
74969
    @Override
-
 
74970
    public int hashCode() {
-
 
74971
      return 0;
-
 
74972
    }
-
 
74973
 
-
 
74974
    public int compareTo(getAllParentCategories_result other) {
-
 
74975
      if (!getClass().equals(other.getClass())) {
-
 
74976
        return getClass().getName().compareTo(other.getClass().getName());
-
 
74977
      }
-
 
74978
 
-
 
74979
      int lastComparison = 0;
-
 
74980
      getAllParentCategories_result typedOther = (getAllParentCategories_result)other;
-
 
74981
 
-
 
74982
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
74983
      if (lastComparison != 0) {
-
 
74984
        return lastComparison;
-
 
74985
      }
-
 
74986
      if (isSetSuccess()) {
-
 
74987
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
74988
        if (lastComparison != 0) {
-
 
74989
          return lastComparison;
-
 
74990
        }
-
 
74991
      }
-
 
74992
      return 0;
-
 
74993
    }
-
 
74994
 
-
 
74995
    public _Fields fieldForId(int fieldId) {
-
 
74996
      return _Fields.findByThriftId(fieldId);
-
 
74997
    }
-
 
74998
 
-
 
74999
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
75000
      org.apache.thrift.protocol.TField field;
-
 
75001
      iprot.readStructBegin();
-
 
75002
      while (true)
-
 
75003
      {
-
 
75004
        field = iprot.readFieldBegin();
-
 
75005
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
75006
          break;
-
 
75007
        }
-
 
75008
        switch (field.id) {
-
 
75009
          case 0: // SUCCESS
-
 
75010
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
75011
              {
-
 
75012
                org.apache.thrift.protocol.TList _list212 = iprot.readListBegin();
-
 
75013
                this.success = new ArrayList<Category>(_list212.size);
-
 
75014
                for (int _i213 = 0; _i213 < _list212.size; ++_i213)
-
 
75015
                {
-
 
75016
                  Category _elem214; // required
-
 
75017
                  _elem214 = new Category();
-
 
75018
                  _elem214.read(iprot);
-
 
75019
                  this.success.add(_elem214);
-
 
75020
                }
-
 
75021
                iprot.readListEnd();
-
 
75022
              }
-
 
75023
            } else { 
-
 
75024
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
75025
            }
-
 
75026
            break;
-
 
75027
          default:
-
 
75028
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
75029
        }
-
 
75030
        iprot.readFieldEnd();
-
 
75031
      }
-
 
75032
      iprot.readStructEnd();
-
 
75033
      validate();
-
 
75034
    }
-
 
75035
 
-
 
75036
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
75037
      oprot.writeStructBegin(STRUCT_DESC);
-
 
75038
 
-
 
75039
      if (this.isSetSuccess()) {
-
 
75040
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
75041
        {
-
 
75042
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
75043
          for (Category _iter215 : this.success)
-
 
75044
          {
-
 
75045
            _iter215.write(oprot);
-
 
75046
          }
-
 
75047
          oprot.writeListEnd();
-
 
75048
        }
-
 
75049
        oprot.writeFieldEnd();
-
 
75050
      }
-
 
75051
      oprot.writeFieldStop();
-
 
75052
      oprot.writeStructEnd();
-
 
75053
    }
-
 
75054
 
-
 
75055
    @Override
-
 
75056
    public String toString() {
-
 
75057
      StringBuilder sb = new StringBuilder("getAllParentCategories_result(");
-
 
75058
      boolean first = true;
-
 
75059
 
-
 
75060
      sb.append("success:");
-
 
75061
      if (this.success == null) {
-
 
75062
        sb.append("null");
-
 
75063
      } else {
-
 
75064
        sb.append(this.success);
-
 
75065
      }
-
 
75066
      first = false;
-
 
75067
      sb.append(")");
-
 
75068
      return sb.toString();
-
 
75069
    }
-
 
75070
 
74382
    public void validate() throws org.apache.thrift.TException {
75071
    public void validate() throws org.apache.thrift.TException {
74383
      // check for required fields
75072
      // check for required fields
74384
    }
75073
    }
74385
 
75074
 
74386
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
75075
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {