Subversion Repositories SmartDukaan

Rev

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

Rev 4410 Rev 4444
Line 133... Line 133...
133
     * @param orderId
133
     * @param orderId
134
     * @param customerId
134
     * @param customerId
135
     */
135
     */
136
    public Order getOrderForCustomer(long orderId, long customerId) throws TransactionServiceException, org.apache.thrift.TException;
136
    public Order getOrderForCustomer(long orderId, long customerId) throws TransactionServiceException, org.apache.thrift.TException;
137
 
137
 
138
    public List<Alert> getAlerts(long type, long status, long timestamp) throws org.apache.thrift.TException;
138
    public List<Alert> getAlerts(long type, long warehouseId, long status, long timestamp) throws org.apache.thrift.TException;
139
 
139
 
140
    public void addAlert(long type, String description) throws org.apache.thrift.TException;
140
    public void addAlert(long type, long warehouseId, String description) throws org.apache.thrift.TException;
-
 
141
 
-
 
142
    public void markAlertsAsSeen(long warehouseId) throws org.apache.thrift.TException;
141
 
143
 
142
    /**
144
    /**
143
     * Return the number of valid orders. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
145
     * Return the number of valid orders. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
144
     */
146
     */
145
    public long getValidOrderCount() throws org.apache.thrift.TException;
147
    public long getValidOrderCount() throws org.apache.thrift.TException;
Line 636... Line 638...
636
 
638
 
637
    public void getLineItemsForOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLineItemsForOrder_call> resultHandler) throws org.apache.thrift.TException;
639
    public void getLineItemsForOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLineItemsForOrder_call> resultHandler) throws org.apache.thrift.TException;
638
 
640
 
639
    public void getOrderForCustomer(long orderId, long customerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderForCustomer_call> resultHandler) throws org.apache.thrift.TException;
641
    public void getOrderForCustomer(long orderId, long customerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderForCustomer_call> resultHandler) throws org.apache.thrift.TException;
640
 
642
 
641
    public void getAlerts(long type, long status, long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAlerts_call> resultHandler) throws org.apache.thrift.TException;
643
    public void getAlerts(long type, long warehouseId, long status, long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAlerts_call> resultHandler) throws org.apache.thrift.TException;
-
 
644
 
-
 
645
    public void addAlert(long type, long warehouseId, String description, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAlert_call> resultHandler) throws org.apache.thrift.TException;
642
 
646
 
643
    public void addAlert(long type, String description, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAlert_call> resultHandler) throws org.apache.thrift.TException;
647
    public void markAlertsAsSeen(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markAlertsAsSeen_call> resultHandler) throws org.apache.thrift.TException;
644
 
648
 
645
    public void getValidOrderCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getValidOrderCount_call> resultHandler) throws org.apache.thrift.TException;
649
    public void getValidOrderCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getValidOrderCount_call> resultHandler) throws org.apache.thrift.TException;
646
 
650
 
647
    public void getNoOfCustomersWithSuccessfulTransaction(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNoOfCustomersWithSuccessfulTransaction_call> resultHandler) throws org.apache.thrift.TException;
651
    public void getNoOfCustomersWithSuccessfulTransaction(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNoOfCustomersWithSuccessfulTransaction_call> resultHandler) throws org.apache.thrift.TException;
648
 
652
 
Line 1334... Line 1338...
1334
        throw result.ex;
1338
        throw result.ex;
1335
      }
1339
      }
1336
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderForCustomer failed: unknown result");
1340
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderForCustomer failed: unknown result");
1337
    }
1341
    }
1338
 
1342
 
1339
    public List<Alert> getAlerts(long type, long status, long timestamp) throws org.apache.thrift.TException
1343
    public List<Alert> getAlerts(long type, long warehouseId, long status, long timestamp) throws org.apache.thrift.TException
1340
    {
1344
    {
1341
      send_getAlerts(type, status, timestamp);
1345
      send_getAlerts(type, warehouseId, status, timestamp);
1342
      return recv_getAlerts();
1346
      return recv_getAlerts();
1343
    }
1347
    }
1344
 
1348
 
1345
    public void send_getAlerts(long type, long status, long timestamp) throws org.apache.thrift.TException
1349
    public void send_getAlerts(long type, long warehouseId, long status, long timestamp) throws org.apache.thrift.TException
1346
    {
1350
    {
1347
      getAlerts_args args = new getAlerts_args();
1351
      getAlerts_args args = new getAlerts_args();
1348
      args.setType(type);
1352
      args.setType(type);
-
 
1353
      args.setWarehouseId(warehouseId);
1349
      args.setStatus(status);
1354
      args.setStatus(status);
1350
      args.setTimestamp(timestamp);
1355
      args.setTimestamp(timestamp);
1351
      sendBase("getAlerts", args);
1356
      sendBase("getAlerts", args);
1352
    }
1357
    }
1353
 
1358
 
Line 1359... Line 1364...
1359
        return result.success;
1364
        return result.success;
1360
      }
1365
      }
1361
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAlerts failed: unknown result");
1366
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAlerts failed: unknown result");
1362
    }
1367
    }
1363
 
1368
 
1364
    public void addAlert(long type, String description) throws org.apache.thrift.TException
1369
    public void addAlert(long type, long warehouseId, String description) throws org.apache.thrift.TException
1365
    {
1370
    {
1366
      send_addAlert(type, description);
1371
      send_addAlert(type, warehouseId, description);
1367
      recv_addAlert();
1372
      recv_addAlert();
1368
    }
1373
    }
1369
 
1374
 
1370
    public void send_addAlert(long type, String description) throws org.apache.thrift.TException
1375
    public void send_addAlert(long type, long warehouseId, String description) throws org.apache.thrift.TException
1371
    {
1376
    {
1372
      addAlert_args args = new addAlert_args();
1377
      addAlert_args args = new addAlert_args();
1373
      args.setType(type);
1378
      args.setType(type);
-
 
1379
      args.setWarehouseId(warehouseId);
1374
      args.setDescription(description);
1380
      args.setDescription(description);
1375
      sendBase("addAlert", args);
1381
      sendBase("addAlert", args);
1376
    }
1382
    }
1377
 
1383
 
1378
    public void recv_addAlert() throws org.apache.thrift.TException
1384
    public void recv_addAlert() throws org.apache.thrift.TException
Line 1380... Line 1386...
1380
      addAlert_result result = new addAlert_result();
1386
      addAlert_result result = new addAlert_result();
1381
      receiveBase(result, "addAlert");
1387
      receiveBase(result, "addAlert");
1382
      return;
1388
      return;
1383
    }
1389
    }
1384
 
1390
 
-
 
1391
    public void markAlertsAsSeen(long warehouseId) throws org.apache.thrift.TException
-
 
1392
    {
-
 
1393
      send_markAlertsAsSeen(warehouseId);
-
 
1394
      recv_markAlertsAsSeen();
-
 
1395
    }
-
 
1396
 
-
 
1397
    public void send_markAlertsAsSeen(long warehouseId) throws org.apache.thrift.TException
-
 
1398
    {
-
 
1399
      markAlertsAsSeen_args args = new markAlertsAsSeen_args();
-
 
1400
      args.setWarehouseId(warehouseId);
-
 
1401
      sendBase("markAlertsAsSeen", args);
-
 
1402
    }
-
 
1403
 
-
 
1404
    public void recv_markAlertsAsSeen() throws org.apache.thrift.TException
-
 
1405
    {
-
 
1406
      markAlertsAsSeen_result result = new markAlertsAsSeen_result();
-
 
1407
      receiveBase(result, "markAlertsAsSeen");
-
 
1408
      return;
-
 
1409
    }
-
 
1410
 
1385
    public long getValidOrderCount() throws org.apache.thrift.TException
1411
    public long getValidOrderCount() throws org.apache.thrift.TException
1386
    {
1412
    {
1387
      send_getValidOrderCount();
1413
      send_getValidOrderCount();
1388
      return recv_getValidOrderCount();
1414
      return recv_getValidOrderCount();
1389
    }
1415
    }
Line 3397... Line 3423...
3397
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3423
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3398
        return (new Client(prot)).recv_getOrderForCustomer();
3424
        return (new Client(prot)).recv_getOrderForCustomer();
3399
      }
3425
      }
3400
    }
3426
    }
3401
 
3427
 
3402
    public void getAlerts(long type, long status, long timestamp, org.apache.thrift.async.AsyncMethodCallback<getAlerts_call> resultHandler) throws org.apache.thrift.TException {
3428
    public void getAlerts(long type, long warehouseId, long status, long timestamp, org.apache.thrift.async.AsyncMethodCallback<getAlerts_call> resultHandler) throws org.apache.thrift.TException {
3403
      checkReady();
3429
      checkReady();
3404
      getAlerts_call method_call = new getAlerts_call(type, status, timestamp, resultHandler, this, ___protocolFactory, ___transport);
3430
      getAlerts_call method_call = new getAlerts_call(type, warehouseId, status, timestamp, resultHandler, this, ___protocolFactory, ___transport);
3405
      this.___currentMethod = method_call;
3431
      this.___currentMethod = method_call;
3406
      ___manager.call(method_call);
3432
      ___manager.call(method_call);
3407
    }
3433
    }
3408
 
3434
 
3409
    public static class getAlerts_call extends org.apache.thrift.async.TAsyncMethodCall {
3435
    public static class getAlerts_call extends org.apache.thrift.async.TAsyncMethodCall {
3410
      private long type;
3436
      private long type;
-
 
3437
      private long warehouseId;
3411
      private long status;
3438
      private long status;
3412
      private long timestamp;
3439
      private long timestamp;
3413
      public getAlerts_call(long type, long status, long timestamp, org.apache.thrift.async.AsyncMethodCallback<getAlerts_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 {
3440
      public getAlerts_call(long type, long warehouseId, long status, long timestamp, org.apache.thrift.async.AsyncMethodCallback<getAlerts_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 {
3414
        super(client, protocolFactory, transport, resultHandler, false);
3441
        super(client, protocolFactory, transport, resultHandler, false);
3415
        this.type = type;
3442
        this.type = type;
-
 
3443
        this.warehouseId = warehouseId;
3416
        this.status = status;
3444
        this.status = status;
3417
        this.timestamp = timestamp;
3445
        this.timestamp = timestamp;
3418
      }
3446
      }
3419
 
3447
 
3420
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3448
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3421
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAlerts", org.apache.thrift.protocol.TMessageType.CALL, 0));
3449
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAlerts", org.apache.thrift.protocol.TMessageType.CALL, 0));
3422
        getAlerts_args args = new getAlerts_args();
3450
        getAlerts_args args = new getAlerts_args();
3423
        args.setType(type);
3451
        args.setType(type);
-
 
3452
        args.setWarehouseId(warehouseId);
3424
        args.setStatus(status);
3453
        args.setStatus(status);
3425
        args.setTimestamp(timestamp);
3454
        args.setTimestamp(timestamp);
3426
        args.write(prot);
3455
        args.write(prot);
3427
        prot.writeMessageEnd();
3456
        prot.writeMessageEnd();
3428
      }
3457
      }
Line 3435... Line 3464...
3435
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3464
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3436
        return (new Client(prot)).recv_getAlerts();
3465
        return (new Client(prot)).recv_getAlerts();
3437
      }
3466
      }
3438
    }
3467
    }
3439
 
3468
 
3440
    public void addAlert(long type, String description, org.apache.thrift.async.AsyncMethodCallback<addAlert_call> resultHandler) throws org.apache.thrift.TException {
3469
    public void addAlert(long type, long warehouseId, String description, org.apache.thrift.async.AsyncMethodCallback<addAlert_call> resultHandler) throws org.apache.thrift.TException {
3441
      checkReady();
3470
      checkReady();
3442
      addAlert_call method_call = new addAlert_call(type, description, resultHandler, this, ___protocolFactory, ___transport);
3471
      addAlert_call method_call = new addAlert_call(type, warehouseId, description, resultHandler, this, ___protocolFactory, ___transport);
3443
      this.___currentMethod = method_call;
3472
      this.___currentMethod = method_call;
3444
      ___manager.call(method_call);
3473
      ___manager.call(method_call);
3445
    }
3474
    }
3446
 
3475
 
3447
    public static class addAlert_call extends org.apache.thrift.async.TAsyncMethodCall {
3476
    public static class addAlert_call extends org.apache.thrift.async.TAsyncMethodCall {
3448
      private long type;
3477
      private long type;
-
 
3478
      private long warehouseId;
3449
      private String description;
3479
      private String description;
3450
      public addAlert_call(long type, String description, org.apache.thrift.async.AsyncMethodCallback<addAlert_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 {
3480
      public addAlert_call(long type, long warehouseId, String description, org.apache.thrift.async.AsyncMethodCallback<addAlert_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 {
3451
        super(client, protocolFactory, transport, resultHandler, false);
3481
        super(client, protocolFactory, transport, resultHandler, false);
3452
        this.type = type;
3482
        this.type = type;
-
 
3483
        this.warehouseId = warehouseId;
3453
        this.description = description;
3484
        this.description = description;
3454
      }
3485
      }
3455
 
3486
 
3456
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3487
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3457
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addAlert", org.apache.thrift.protocol.TMessageType.CALL, 0));
3488
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addAlert", org.apache.thrift.protocol.TMessageType.CALL, 0));
3458
        addAlert_args args = new addAlert_args();
3489
        addAlert_args args = new addAlert_args();
3459
        args.setType(type);
3490
        args.setType(type);
-
 
3491
        args.setWarehouseId(warehouseId);
3460
        args.setDescription(description);
3492
        args.setDescription(description);
3461
        args.write(prot);
3493
        args.write(prot);
3462
        prot.writeMessageEnd();
3494
        prot.writeMessageEnd();
3463
      }
3495
      }
3464
 
3496
 
Line 3470... Line 3502...
3470
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3502
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3471
        (new Client(prot)).recv_addAlert();
3503
        (new Client(prot)).recv_addAlert();
3472
      }
3504
      }
3473
    }
3505
    }
3474
 
3506
 
-
 
3507
    public void markAlertsAsSeen(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<markAlertsAsSeen_call> resultHandler) throws org.apache.thrift.TException {
-
 
3508
      checkReady();
-
 
3509
      markAlertsAsSeen_call method_call = new markAlertsAsSeen_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
-
 
3510
      this.___currentMethod = method_call;
-
 
3511
      ___manager.call(method_call);
-
 
3512
    }
-
 
3513
 
-
 
3514
    public static class markAlertsAsSeen_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3515
      private long warehouseId;
-
 
3516
      public markAlertsAsSeen_call(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<markAlertsAsSeen_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 {
-
 
3517
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3518
        this.warehouseId = warehouseId;
-
 
3519
      }
-
 
3520
 
-
 
3521
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3522
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markAlertsAsSeen", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3523
        markAlertsAsSeen_args args = new markAlertsAsSeen_args();
-
 
3524
        args.setWarehouseId(warehouseId);
-
 
3525
        args.write(prot);
-
 
3526
        prot.writeMessageEnd();
-
 
3527
      }
-
 
3528
 
-
 
3529
      public void getResult() throws org.apache.thrift.TException {
-
 
3530
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3531
          throw new IllegalStateException("Method call not finished!");
-
 
3532
        }
-
 
3533
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3534
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3535
        (new Client(prot)).recv_markAlertsAsSeen();
-
 
3536
      }
-
 
3537
    }
-
 
3538
 
3475
    public void getValidOrderCount(org.apache.thrift.async.AsyncMethodCallback<getValidOrderCount_call> resultHandler) throws org.apache.thrift.TException {
3539
    public void getValidOrderCount(org.apache.thrift.async.AsyncMethodCallback<getValidOrderCount_call> resultHandler) throws org.apache.thrift.TException {
3476
      checkReady();
3540
      checkReady();
3477
      getValidOrderCount_call method_call = new getValidOrderCount_call(resultHandler, this, ___protocolFactory, ___transport);
3541
      getValidOrderCount_call method_call = new getValidOrderCount_call(resultHandler, this, ___protocolFactory, ___transport);
3478
      this.___currentMethod = method_call;
3542
      this.___currentMethod = method_call;
3479
      ___manager.call(method_call);
3543
      ___manager.call(method_call);
Line 5206... Line 5270...
5206
      processMap.put("getOrder", new getOrder());
5270
      processMap.put("getOrder", new getOrder());
5207
      processMap.put("getLineItemsForOrder", new getLineItemsForOrder());
5271
      processMap.put("getLineItemsForOrder", new getLineItemsForOrder());
5208
      processMap.put("getOrderForCustomer", new getOrderForCustomer());
5272
      processMap.put("getOrderForCustomer", new getOrderForCustomer());
5209
      processMap.put("getAlerts", new getAlerts());
5273
      processMap.put("getAlerts", new getAlerts());
5210
      processMap.put("addAlert", new addAlert());
5274
      processMap.put("addAlert", new addAlert());
-
 
5275
      processMap.put("markAlertsAsSeen", new markAlertsAsSeen());
5211
      processMap.put("getValidOrderCount", new getValidOrderCount());
5276
      processMap.put("getValidOrderCount", new getValidOrderCount());
5212
      processMap.put("getNoOfCustomersWithSuccessfulTransaction", new getNoOfCustomersWithSuccessfulTransaction());
5277
      processMap.put("getNoOfCustomersWithSuccessfulTransaction", new getNoOfCustomersWithSuccessfulTransaction());
5213
      processMap.put("getValidOrdersAmountRange", new getValidOrdersAmountRange());
5278
      processMap.put("getValidOrdersAmountRange", new getValidOrdersAmountRange());
5214
      processMap.put("getValidOrders", new getValidOrders());
5279
      processMap.put("getValidOrders", new getValidOrders());
5215
      processMap.put("batchOrders", new batchOrders());
5280
      processMap.put("batchOrders", new batchOrders());
Line 5695... Line 5760...
5695
        return new getAlerts_args();
5760
        return new getAlerts_args();
5696
      }
5761
      }
5697
 
5762
 
5698
      protected getAlerts_result getResult(I iface, getAlerts_args args) throws org.apache.thrift.TException {
5763
      protected getAlerts_result getResult(I iface, getAlerts_args args) throws org.apache.thrift.TException {
5699
        getAlerts_result result = new getAlerts_result();
5764
        getAlerts_result result = new getAlerts_result();
5700
        result.success = iface.getAlerts(args.type, args.status, args.timestamp);
5765
        result.success = iface.getAlerts(args.type, args.warehouseId, args.status, args.timestamp);
5701
        return result;
5766
        return result;
5702
      }
5767
      }
5703
    }
5768
    }
5704
 
5769
 
5705
    private static class addAlert<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAlert_args> {
5770
    private static class addAlert<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAlert_args> {
Line 5711... Line 5776...
5711
        return new addAlert_args();
5776
        return new addAlert_args();
5712
      }
5777
      }
5713
 
5778
 
5714
      protected addAlert_result getResult(I iface, addAlert_args args) throws org.apache.thrift.TException {
5779
      protected addAlert_result getResult(I iface, addAlert_args args) throws org.apache.thrift.TException {
5715
        addAlert_result result = new addAlert_result();
5780
        addAlert_result result = new addAlert_result();
5716
        iface.addAlert(args.type, args.description);
5781
        iface.addAlert(args.type, args.warehouseId, args.description);
-
 
5782
        return result;
-
 
5783
      }
-
 
5784
    }
-
 
5785
 
-
 
5786
    private static class markAlertsAsSeen<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markAlertsAsSeen_args> {
-
 
5787
      public markAlertsAsSeen() {
-
 
5788
        super("markAlertsAsSeen");
-
 
5789
      }
-
 
5790
 
-
 
5791
      protected markAlertsAsSeen_args getEmptyArgsInstance() {
-
 
5792
        return new markAlertsAsSeen_args();
-
 
5793
      }
-
 
5794
 
-
 
5795
      protected markAlertsAsSeen_result getResult(I iface, markAlertsAsSeen_args args) throws org.apache.thrift.TException {
-
 
5796
        markAlertsAsSeen_result result = new markAlertsAsSeen_result();
-
 
5797
        iface.markAlertsAsSeen(args.warehouseId);
5717
        return result;
5798
        return result;
5718
      }
5799
      }
5719
    }
5800
    }
5720
 
5801
 
5721
    private static class getValidOrderCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getValidOrderCount_args> {
5802
    private static class getValidOrderCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getValidOrderCount_args> {
Line 23817... Line 23898...
23817
 
23898
 
23818
  public static class getAlerts_args implements org.apache.thrift.TBase<getAlerts_args, getAlerts_args._Fields>, java.io.Serializable, Cloneable   {
23899
  public static class getAlerts_args implements org.apache.thrift.TBase<getAlerts_args, getAlerts_args._Fields>, java.io.Serializable, Cloneable   {
23819
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAlerts_args");
23900
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAlerts_args");
23820
 
23901
 
23821
    private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I64, (short)1);
23902
    private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
23903
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)2);
23822
    private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I64, (short)2);
23904
    private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I64, (short)3);
23823
    private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3);
23905
    private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)4);
23824
 
23906
 
23825
    private long type; // required
23907
    private long type; // required
-
 
23908
    private long warehouseId; // required
23826
    private long status; // required
23909
    private long status; // required
23827
    private long timestamp; // required
23910
    private long timestamp; // required
23828
 
23911
 
23829
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23912
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23830
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23913
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23831
      TYPE((short)1, "type"),
23914
      TYPE((short)1, "type"),
-
 
23915
      WAREHOUSE_ID((short)2, "warehouseId"),
23832
      STATUS((short)2, "status"),
23916
      STATUS((short)3, "status"),
23833
      TIMESTAMP((short)3, "timestamp");
23917
      TIMESTAMP((short)4, "timestamp");
23834
 
23918
 
23835
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23919
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23836
 
23920
 
23837
      static {
23921
      static {
23838
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23922
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 23845... Line 23929...
23845
       */
23929
       */
23846
      public static _Fields findByThriftId(int fieldId) {
23930
      public static _Fields findByThriftId(int fieldId) {
23847
        switch(fieldId) {
23931
        switch(fieldId) {
23848
          case 1: // TYPE
23932
          case 1: // TYPE
23849
            return TYPE;
23933
            return TYPE;
-
 
23934
          case 2: // WAREHOUSE_ID
-
 
23935
            return WAREHOUSE_ID;
23850
          case 2: // STATUS
23936
          case 3: // STATUS
23851
            return STATUS;
23937
            return STATUS;
23852
          case 3: // TIMESTAMP
23938
          case 4: // TIMESTAMP
23853
            return TIMESTAMP;
23939
            return TIMESTAMP;
23854
          default:
23940
          default:
23855
            return null;
23941
            return null;
23856
        }
23942
        }
23857
      }
23943
      }
Line 23890... Line 23976...
23890
      }
23976
      }
23891
    }
23977
    }
23892
 
23978
 
23893
    // isset id assignments
23979
    // isset id assignments
23894
    private static final int __TYPE_ISSET_ID = 0;
23980
    private static final int __TYPE_ISSET_ID = 0;
-
 
23981
    private static final int __WAREHOUSEID_ISSET_ID = 1;
23895
    private static final int __STATUS_ISSET_ID = 1;
23982
    private static final int __STATUS_ISSET_ID = 2;
23896
    private static final int __TIMESTAMP_ISSET_ID = 2;
23983
    private static final int __TIMESTAMP_ISSET_ID = 3;
23897
    private BitSet __isset_bit_vector = new BitSet(3);
23984
    private BitSet __isset_bit_vector = new BitSet(4);
23898
 
23985
 
23899
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23986
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23900
    static {
23987
    static {
23901
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23988
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23902
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23989
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23903
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23990
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
23991
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
23992
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23904
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23993
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23905
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23994
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23906
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23995
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23907
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23996
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23908
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23997
      metaDataMap = Collections.unmodifiableMap(tmpMap);
Line 23912... Line 24001...
23912
    public getAlerts_args() {
24001
    public getAlerts_args() {
23913
    }
24002
    }
23914
 
24003
 
23915
    public getAlerts_args(
24004
    public getAlerts_args(
23916
      long type,
24005
      long type,
-
 
24006
      long warehouseId,
23917
      long status,
24007
      long status,
23918
      long timestamp)
24008
      long timestamp)
23919
    {
24009
    {
23920
      this();
24010
      this();
23921
      this.type = type;
24011
      this.type = type;
23922
      setTypeIsSet(true);
24012
      setTypeIsSet(true);
-
 
24013
      this.warehouseId = warehouseId;
-
 
24014
      setWarehouseIdIsSet(true);
23923
      this.status = status;
24015
      this.status = status;
23924
      setStatusIsSet(true);
24016
      setStatusIsSet(true);
23925
      this.timestamp = timestamp;
24017
      this.timestamp = timestamp;
23926
      setTimestampIsSet(true);
24018
      setTimestampIsSet(true);
23927
    }
24019
    }
Line 23931... Line 24023...
23931
     */
24023
     */
23932
    public getAlerts_args(getAlerts_args other) {
24024
    public getAlerts_args(getAlerts_args other) {
23933
      __isset_bit_vector.clear();
24025
      __isset_bit_vector.clear();
23934
      __isset_bit_vector.or(other.__isset_bit_vector);
24026
      __isset_bit_vector.or(other.__isset_bit_vector);
23935
      this.type = other.type;
24027
      this.type = other.type;
-
 
24028
      this.warehouseId = other.warehouseId;
23936
      this.status = other.status;
24029
      this.status = other.status;
23937
      this.timestamp = other.timestamp;
24030
      this.timestamp = other.timestamp;
23938
    }
24031
    }
23939
 
24032
 
23940
    public getAlerts_args deepCopy() {
24033
    public getAlerts_args deepCopy() {
Line 23943... Line 24036...
23943
 
24036
 
23944
    @Override
24037
    @Override
23945
    public void clear() {
24038
    public void clear() {
23946
      setTypeIsSet(false);
24039
      setTypeIsSet(false);
23947
      this.type = 0;
24040
      this.type = 0;
-
 
24041
      setWarehouseIdIsSet(false);
-
 
24042
      this.warehouseId = 0;
23948
      setStatusIsSet(false);
24043
      setStatusIsSet(false);
23949
      this.status = 0;
24044
      this.status = 0;
23950
      setTimestampIsSet(false);
24045
      setTimestampIsSet(false);
23951
      this.timestamp = 0;
24046
      this.timestamp = 0;
23952
    }
24047
    }
Line 23971... Line 24066...
23971
 
24066
 
23972
    public void setTypeIsSet(boolean value) {
24067
    public void setTypeIsSet(boolean value) {
23973
      __isset_bit_vector.set(__TYPE_ISSET_ID, value);
24068
      __isset_bit_vector.set(__TYPE_ISSET_ID, value);
23974
    }
24069
    }
23975
 
24070
 
-
 
24071
    public long getWarehouseId() {
-
 
24072
      return this.warehouseId;
-
 
24073
    }
-
 
24074
 
-
 
24075
    public void setWarehouseId(long warehouseId) {
-
 
24076
      this.warehouseId = warehouseId;
-
 
24077
      setWarehouseIdIsSet(true);
-
 
24078
    }
-
 
24079
 
-
 
24080
    public void unsetWarehouseId() {
-
 
24081
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
-
 
24082
    }
-
 
24083
 
-
 
24084
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
-
 
24085
    public boolean isSetWarehouseId() {
-
 
24086
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
-
 
24087
    }
-
 
24088
 
-
 
24089
    public void setWarehouseIdIsSet(boolean value) {
-
 
24090
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
-
 
24091
    }
-
 
24092
 
23976
    public long getStatus() {
24093
    public long getStatus() {
23977
      return this.status;
24094
      return this.status;
23978
    }
24095
    }
23979
 
24096
 
23980
    public void setStatus(long status) {
24097
    public void setStatus(long status) {
Line 24025... Line 24142...
24025
        } else {
24142
        } else {
24026
          setType((Long)value);
24143
          setType((Long)value);
24027
        }
24144
        }
24028
        break;
24145
        break;
24029
 
24146
 
-
 
24147
      case WAREHOUSE_ID:
-
 
24148
        if (value == null) {
-
 
24149
          unsetWarehouseId();
-
 
24150
        } else {
-
 
24151
          setWarehouseId((Long)value);
-
 
24152
        }
-
 
24153
        break;
-
 
24154
 
24030
      case STATUS:
24155
      case STATUS:
24031
        if (value == null) {
24156
        if (value == null) {
24032
          unsetStatus();
24157
          unsetStatus();
24033
        } else {
24158
        } else {
24034
          setStatus((Long)value);
24159
          setStatus((Long)value);
Line 24049... Line 24174...
24049
    public Object getFieldValue(_Fields field) {
24174
    public Object getFieldValue(_Fields field) {
24050
      switch (field) {
24175
      switch (field) {
24051
      case TYPE:
24176
      case TYPE:
24052
        return Long.valueOf(getType());
24177
        return Long.valueOf(getType());
24053
 
24178
 
-
 
24179
      case WAREHOUSE_ID:
-
 
24180
        return Long.valueOf(getWarehouseId());
-
 
24181
 
24054
      case STATUS:
24182
      case STATUS:
24055
        return Long.valueOf(getStatus());
24183
        return Long.valueOf(getStatus());
24056
 
24184
 
24057
      case TIMESTAMP:
24185
      case TIMESTAMP:
24058
        return Long.valueOf(getTimestamp());
24186
        return Long.valueOf(getTimestamp());
Line 24068... Line 24196...
24068
      }
24196
      }
24069
 
24197
 
24070
      switch (field) {
24198
      switch (field) {
24071
      case TYPE:
24199
      case TYPE:
24072
        return isSetType();
24200
        return isSetType();
-
 
24201
      case WAREHOUSE_ID:
-
 
24202
        return isSetWarehouseId();
24073
      case STATUS:
24203
      case STATUS:
24074
        return isSetStatus();
24204
        return isSetStatus();
24075
      case TIMESTAMP:
24205
      case TIMESTAMP:
24076
        return isSetTimestamp();
24206
        return isSetTimestamp();
24077
      }
24207
      }
Line 24098... Line 24228...
24098
          return false;
24228
          return false;
24099
        if (this.type != that.type)
24229
        if (this.type != that.type)
24100
          return false;
24230
          return false;
24101
      }
24231
      }
24102
 
24232
 
-
 
24233
      boolean this_present_warehouseId = true;
-
 
24234
      boolean that_present_warehouseId = true;
-
 
24235
      if (this_present_warehouseId || that_present_warehouseId) {
-
 
24236
        if (!(this_present_warehouseId && that_present_warehouseId))
-
 
24237
          return false;
-
 
24238
        if (this.warehouseId != that.warehouseId)
-
 
24239
          return false;
-
 
24240
      }
-
 
24241
 
24103
      boolean this_present_status = true;
24242
      boolean this_present_status = true;
24104
      boolean that_present_status = true;
24243
      boolean that_present_status = true;
24105
      if (this_present_status || that_present_status) {
24244
      if (this_present_status || that_present_status) {
24106
        if (!(this_present_status && that_present_status))
24245
        if (!(this_present_status && that_present_status))
24107
          return false;
24246
          return false;
Line 24142... Line 24281...
24142
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
24281
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
24143
        if (lastComparison != 0) {
24282
        if (lastComparison != 0) {
24144
          return lastComparison;
24283
          return lastComparison;
24145
        }
24284
        }
24146
      }
24285
      }
-
 
24286
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
-
 
24287
      if (lastComparison != 0) {
-
 
24288
        return lastComparison;
-
 
24289
      }
-
 
24290
      if (isSetWarehouseId()) {
-
 
24291
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
-
 
24292
        if (lastComparison != 0) {
-
 
24293
          return lastComparison;
-
 
24294
        }
-
 
24295
      }
24147
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
24296
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
24148
      if (lastComparison != 0) {
24297
      if (lastComparison != 0) {
24149
        return lastComparison;
24298
        return lastComparison;
24150
      }
24299
      }
24151
      if (isSetStatus()) {
24300
      if (isSetStatus()) {
Line 24187... Line 24336...
24187
              setTypeIsSet(true);
24336
              setTypeIsSet(true);
24188
            } else { 
24337
            } else { 
24189
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24338
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24190
            }
24339
            }
24191
            break;
24340
            break;
-
 
24341
          case 2: // WAREHOUSE_ID
-
 
24342
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
24343
              this.warehouseId = iprot.readI64();
-
 
24344
              setWarehouseIdIsSet(true);
-
 
24345
            } else { 
-
 
24346
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
24347
            }
-
 
24348
            break;
24192
          case 2: // STATUS
24349
          case 3: // STATUS
24193
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24350
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24194
              this.status = iprot.readI64();
24351
              this.status = iprot.readI64();
24195
              setStatusIsSet(true);
24352
              setStatusIsSet(true);
24196
            } else { 
24353
            } else { 
24197
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24354
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24198
            }
24355
            }
24199
            break;
24356
            break;
24200
          case 3: // TIMESTAMP
24357
          case 4: // TIMESTAMP
24201
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24358
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24202
              this.timestamp = iprot.readI64();
24359
              this.timestamp = iprot.readI64();
24203
              setTimestampIsSet(true);
24360
              setTimestampIsSet(true);
24204
            } else { 
24361
            } else { 
24205
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24362
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 24219... Line 24376...
24219
 
24376
 
24220
      oprot.writeStructBegin(STRUCT_DESC);
24377
      oprot.writeStructBegin(STRUCT_DESC);
24221
      oprot.writeFieldBegin(TYPE_FIELD_DESC);
24378
      oprot.writeFieldBegin(TYPE_FIELD_DESC);
24222
      oprot.writeI64(this.type);
24379
      oprot.writeI64(this.type);
24223
      oprot.writeFieldEnd();
24380
      oprot.writeFieldEnd();
-
 
24381
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
24382
      oprot.writeI64(this.warehouseId);
-
 
24383
      oprot.writeFieldEnd();
24224
      oprot.writeFieldBegin(STATUS_FIELD_DESC);
24384
      oprot.writeFieldBegin(STATUS_FIELD_DESC);
24225
      oprot.writeI64(this.status);
24385
      oprot.writeI64(this.status);
24226
      oprot.writeFieldEnd();
24386
      oprot.writeFieldEnd();
24227
      oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
24387
      oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
24228
      oprot.writeI64(this.timestamp);
24388
      oprot.writeI64(this.timestamp);
Line 24238... Line 24398...
24238
 
24398
 
24239
      sb.append("type:");
24399
      sb.append("type:");
24240
      sb.append(this.type);
24400
      sb.append(this.type);
24241
      first = false;
24401
      first = false;
24242
      if (!first) sb.append(", ");
24402
      if (!first) sb.append(", ");
-
 
24403
      sb.append("warehouseId:");
-
 
24404
      sb.append(this.warehouseId);
-
 
24405
      first = false;
-
 
24406
      if (!first) sb.append(", ");
24243
      sb.append("status:");
24407
      sb.append("status:");
24244
      sb.append(this.status);
24408
      sb.append(this.status);
24245
      first = false;
24409
      first = false;
24246
      if (!first) sb.append(", ");
24410
      if (!first) sb.append(", ");
24247
      sb.append("timestamp:");
24411
      sb.append("timestamp:");
Line 24608... Line 24772...
24608
 
24772
 
24609
  public static class addAlert_args implements org.apache.thrift.TBase<addAlert_args, addAlert_args._Fields>, java.io.Serializable, Cloneable   {
24773
  public static class addAlert_args implements org.apache.thrift.TBase<addAlert_args, addAlert_args._Fields>, java.io.Serializable, Cloneable   {
24610
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAlert_args");
24774
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAlert_args");
24611
 
24775
 
24612
    private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I64, (short)1);
24776
    private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
24777
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)2);
24613
    private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)2);
24778
    private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)3);
24614
 
24779
 
24615
    private long type; // required
24780
    private long type; // required
-
 
24781
    private long warehouseId; // required
24616
    private String description; // required
24782
    private String description; // required
24617
 
24783
 
24618
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24784
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24619
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24785
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24620
      TYPE((short)1, "type"),
24786
      TYPE((short)1, "type"),
-
 
24787
      WAREHOUSE_ID((short)2, "warehouseId"),
24621
      DESCRIPTION((short)2, "description");
24788
      DESCRIPTION((short)3, "description");
24622
 
24789
 
24623
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24790
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24624
 
24791
 
24625
      static {
24792
      static {
24626
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24793
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 24633... Line 24800...
24633
       */
24800
       */
24634
      public static _Fields findByThriftId(int fieldId) {
24801
      public static _Fields findByThriftId(int fieldId) {
24635
        switch(fieldId) {
24802
        switch(fieldId) {
24636
          case 1: // TYPE
24803
          case 1: // TYPE
24637
            return TYPE;
24804
            return TYPE;
-
 
24805
          case 2: // WAREHOUSE_ID
-
 
24806
            return WAREHOUSE_ID;
24638
          case 2: // DESCRIPTION
24807
          case 3: // DESCRIPTION
24639
            return DESCRIPTION;
24808
            return DESCRIPTION;
24640
          default:
24809
          default:
24641
            return null;
24810
            return null;
24642
        }
24811
        }
24643
      }
24812
      }
Line 24676... Line 24845...
24676
      }
24845
      }
24677
    }
24846
    }
24678
 
24847
 
24679
    // isset id assignments
24848
    // isset id assignments
24680
    private static final int __TYPE_ISSET_ID = 0;
24849
    private static final int __TYPE_ISSET_ID = 0;
-
 
24850
    private static final int __WAREHOUSEID_ISSET_ID = 1;
24681
    private BitSet __isset_bit_vector = new BitSet(1);
24851
    private BitSet __isset_bit_vector = new BitSet(2);
24682
 
24852
 
24683
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24853
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24684
    static {
24854
    static {
24685
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24855
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24686
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24856
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24687
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24857
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
24858
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
24859
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24688
      tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24860
      tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24689
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
24861
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
24690
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24862
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24691
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAlert_args.class, metaDataMap);
24863
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAlert_args.class, metaDataMap);
24692
    }
24864
    }
Line 24694... Line 24866...
24694
    public addAlert_args() {
24866
    public addAlert_args() {
24695
    }
24867
    }
24696
 
24868
 
24697
    public addAlert_args(
24869
    public addAlert_args(
24698
      long type,
24870
      long type,
-
 
24871
      long warehouseId,
24699
      String description)
24872
      String description)
24700
    {
24873
    {
24701
      this();
24874
      this();
24702
      this.type = type;
24875
      this.type = type;
24703
      setTypeIsSet(true);
24876
      setTypeIsSet(true);
-
 
24877
      this.warehouseId = warehouseId;
-
 
24878
      setWarehouseIdIsSet(true);
24704
      this.description = description;
24879
      this.description = description;
24705
    }
24880
    }
24706
 
24881
 
24707
    /**
24882
    /**
24708
     * Performs a deep copy on <i>other</i>.
24883
     * Performs a deep copy on <i>other</i>.
24709
     */
24884
     */
24710
    public addAlert_args(addAlert_args other) {
24885
    public addAlert_args(addAlert_args other) {
24711
      __isset_bit_vector.clear();
24886
      __isset_bit_vector.clear();
24712
      __isset_bit_vector.or(other.__isset_bit_vector);
24887
      __isset_bit_vector.or(other.__isset_bit_vector);
24713
      this.type = other.type;
24888
      this.type = other.type;
-
 
24889
      this.warehouseId = other.warehouseId;
24714
      if (other.isSetDescription()) {
24890
      if (other.isSetDescription()) {
24715
        this.description = other.description;
24891
        this.description = other.description;
24716
      }
24892
      }
24717
    }
24893
    }
24718
 
24894
 
Line 24722... Line 24898...
24722
 
24898
 
24723
    @Override
24899
    @Override
24724
    public void clear() {
24900
    public void clear() {
24725
      setTypeIsSet(false);
24901
      setTypeIsSet(false);
24726
      this.type = 0;
24902
      this.type = 0;
-
 
24903
      setWarehouseIdIsSet(false);
-
 
24904
      this.warehouseId = 0;
24727
      this.description = null;
24905
      this.description = null;
24728
    }
24906
    }
24729
 
24907
 
24730
    public long getType() {
24908
    public long getType() {
24731
      return this.type;
24909
      return this.type;
Line 24747... Line 24925...
24747
 
24925
 
24748
    public void setTypeIsSet(boolean value) {
24926
    public void setTypeIsSet(boolean value) {
24749
      __isset_bit_vector.set(__TYPE_ISSET_ID, value);
24927
      __isset_bit_vector.set(__TYPE_ISSET_ID, value);
24750
    }
24928
    }
24751
 
24929
 
-
 
24930
    public long getWarehouseId() {
-
 
24931
      return this.warehouseId;
-
 
24932
    }
-
 
24933
 
-
 
24934
    public void setWarehouseId(long warehouseId) {
-
 
24935
      this.warehouseId = warehouseId;
-
 
24936
      setWarehouseIdIsSet(true);
-
 
24937
    }
-
 
24938
 
-
 
24939
    public void unsetWarehouseId() {
-
 
24940
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
-
 
24941
    }
-
 
24942
 
-
 
24943
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
-
 
24944
    public boolean isSetWarehouseId() {
-
 
24945
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
-
 
24946
    }
-
 
24947
 
-
 
24948
    public void setWarehouseIdIsSet(boolean value) {
-
 
24949
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
-
 
24950
    }
-
 
24951
 
24752
    public String getDescription() {
24952
    public String getDescription() {
24753
      return this.description;
24953
      return this.description;
24754
    }
24954
    }
24755
 
24955
 
24756
    public void setDescription(String description) {
24956
    public void setDescription(String description) {
Line 24780... Line 24980...
24780
        } else {
24980
        } else {
24781
          setType((Long)value);
24981
          setType((Long)value);
24782
        }
24982
        }
24783
        break;
24983
        break;
24784
 
24984
 
-
 
24985
      case WAREHOUSE_ID:
-
 
24986
        if (value == null) {
-
 
24987
          unsetWarehouseId();
-
 
24988
        } else {
-
 
24989
          setWarehouseId((Long)value);
-
 
24990
        }
-
 
24991
        break;
-
 
24992
 
24785
      case DESCRIPTION:
24993
      case DESCRIPTION:
24786
        if (value == null) {
24994
        if (value == null) {
24787
          unsetDescription();
24995
          unsetDescription();
24788
        } else {
24996
        } else {
24789
          setDescription((String)value);
24997
          setDescription((String)value);
Line 24796... Line 25004...
24796
    public Object getFieldValue(_Fields field) {
25004
    public Object getFieldValue(_Fields field) {
24797
      switch (field) {
25005
      switch (field) {
24798
      case TYPE:
25006
      case TYPE:
24799
        return Long.valueOf(getType());
25007
        return Long.valueOf(getType());
24800
 
25008
 
-
 
25009
      case WAREHOUSE_ID:
-
 
25010
        return Long.valueOf(getWarehouseId());
-
 
25011
 
24801
      case DESCRIPTION:
25012
      case DESCRIPTION:
24802
        return getDescription();
25013
        return getDescription();
24803
 
25014
 
24804
      }
25015
      }
24805
      throw new IllegalStateException();
25016
      throw new IllegalStateException();
Line 24812... Line 25023...
24812
      }
25023
      }
24813
 
25024
 
24814
      switch (field) {
25025
      switch (field) {
24815
      case TYPE:
25026
      case TYPE:
24816
        return isSetType();
25027
        return isSetType();
-
 
25028
      case WAREHOUSE_ID:
-
 
25029
        return isSetWarehouseId();
24817
      case DESCRIPTION:
25030
      case DESCRIPTION:
24818
        return isSetDescription();
25031
        return isSetDescription();
24819
      }
25032
      }
24820
      throw new IllegalStateException();
25033
      throw new IllegalStateException();
24821
    }
25034
    }
Line 24840... Line 25053...
24840
          return false;
25053
          return false;
24841
        if (this.type != that.type)
25054
        if (this.type != that.type)
24842
          return false;
25055
          return false;
24843
      }
25056
      }
24844
 
25057
 
-
 
25058
      boolean this_present_warehouseId = true;
-
 
25059
      boolean that_present_warehouseId = true;
-
 
25060
      if (this_present_warehouseId || that_present_warehouseId) {
-
 
25061
        if (!(this_present_warehouseId && that_present_warehouseId))
-
 
25062
          return false;
-
 
25063
        if (this.warehouseId != that.warehouseId)
-
 
25064
          return false;
-
 
25065
      }
-
 
25066
 
24845
      boolean this_present_description = true && this.isSetDescription();
25067
      boolean this_present_description = true && this.isSetDescription();
24846
      boolean that_present_description = true && that.isSetDescription();
25068
      boolean that_present_description = true && that.isSetDescription();
24847
      if (this_present_description || that_present_description) {
25069
      if (this_present_description || that_present_description) {
24848
        if (!(this_present_description && that_present_description))
25070
        if (!(this_present_description && that_present_description))
24849
          return false;
25071
          return false;
Line 24875... Line 25097...
24875
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
25097
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
24876
        if (lastComparison != 0) {
25098
        if (lastComparison != 0) {
24877
          return lastComparison;
25099
          return lastComparison;
24878
        }
25100
        }
24879
      }
25101
      }
-
 
25102
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
-
 
25103
      if (lastComparison != 0) {
-
 
25104
        return lastComparison;
-
 
25105
      }
-
 
25106
      if (isSetWarehouseId()) {
-
 
25107
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
-
 
25108
        if (lastComparison != 0) {
-
 
25109
          return lastComparison;
-
 
25110
        }
-
 
25111
      }
24880
      lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
25112
      lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
24881
      if (lastComparison != 0) {
25113
      if (lastComparison != 0) {
24882
        return lastComparison;
25114
        return lastComparison;
24883
      }
25115
      }
24884
      if (isSetDescription()) {
25116
      if (isSetDescription()) {
Line 24910... Line 25142...
24910
              setTypeIsSet(true);
25142
              setTypeIsSet(true);
24911
            } else { 
25143
            } else { 
24912
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25144
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24913
            }
25145
            }
24914
            break;
25146
            break;
-
 
25147
          case 2: // WAREHOUSE_ID
-
 
25148
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
25149
              this.warehouseId = iprot.readI64();
-
 
25150
              setWarehouseIdIsSet(true);
-
 
25151
            } else { 
-
 
25152
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
25153
            }
-
 
25154
            break;
24915
          case 2: // DESCRIPTION
25155
          case 3: // DESCRIPTION
24916
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
25156
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
24917
              this.description = iprot.readString();
25157
              this.description = iprot.readString();
24918
            } else { 
25158
            } else { 
24919
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25159
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24920
            }
25160
            }
Line 24933... Line 25173...
24933
 
25173
 
24934
      oprot.writeStructBegin(STRUCT_DESC);
25174
      oprot.writeStructBegin(STRUCT_DESC);
24935
      oprot.writeFieldBegin(TYPE_FIELD_DESC);
25175
      oprot.writeFieldBegin(TYPE_FIELD_DESC);
24936
      oprot.writeI64(this.type);
25176
      oprot.writeI64(this.type);
24937
      oprot.writeFieldEnd();
25177
      oprot.writeFieldEnd();
-
 
25178
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
25179
      oprot.writeI64(this.warehouseId);
-
 
25180
      oprot.writeFieldEnd();
24938
      if (this.description != null) {
25181
      if (this.description != null) {
24939
        oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
25182
        oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
24940
        oprot.writeString(this.description);
25183
        oprot.writeString(this.description);
24941
        oprot.writeFieldEnd();
25184
        oprot.writeFieldEnd();
24942
      }
25185
      }
Line 24951... Line 25194...
24951
 
25194
 
24952
      sb.append("type:");
25195
      sb.append("type:");
24953
      sb.append(this.type);
25196
      sb.append(this.type);
24954
      first = false;
25197
      first = false;
24955
      if (!first) sb.append(", ");
25198
      if (!first) sb.append(", ");
-
 
25199
      sb.append("warehouseId:");
-
 
25200
      sb.append(this.warehouseId);
-
 
25201
      first = false;
-
 
25202
      if (!first) sb.append(", ");
24956
      sb.append("description:");
25203
      sb.append("description:");
24957
      if (this.description == null) {
25204
      if (this.description == null) {
24958
        sb.append("null");
25205
        sb.append("null");
24959
      } else {
25206
      } else {
24960
        sb.append(this.description);
25207
        sb.append(this.description);
Line 25185... Line 25432...
25185
      }
25432
      }
25186
    }
25433
    }
25187
 
25434
 
25188
  }
25435
  }
25189
 
25436
 
-
 
25437
  public static class markAlertsAsSeen_args implements org.apache.thrift.TBase<markAlertsAsSeen_args, markAlertsAsSeen_args._Fields>, java.io.Serializable, Cloneable   {
-
 
25438
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markAlertsAsSeen_args");
-
 
25439
 
-
 
25440
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
25441
 
-
 
25442
    private long warehouseId; // required
-
 
25443
 
-
 
25444
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
25445
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
25446
      WAREHOUSE_ID((short)1, "warehouseId");
-
 
25447
 
-
 
25448
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
25449
 
-
 
25450
      static {
-
 
25451
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
25452
          byName.put(field.getFieldName(), field);
-
 
25453
        }
-
 
25454
      }
-
 
25455
 
-
 
25456
      /**
-
 
25457
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
25458
       */
-
 
25459
      public static _Fields findByThriftId(int fieldId) {
-
 
25460
        switch(fieldId) {
-
 
25461
          case 1: // WAREHOUSE_ID
-
 
25462
            return WAREHOUSE_ID;
-
 
25463
          default:
-
 
25464
            return null;
-
 
25465
        }
-
 
25466
      }
-
 
25467
 
-
 
25468
      /**
-
 
25469
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
25470
       * if it is not found.
-
 
25471
       */
-
 
25472
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
25473
        _Fields fields = findByThriftId(fieldId);
-
 
25474
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
25475
        return fields;
-
 
25476
      }
-
 
25477
 
-
 
25478
      /**
-
 
25479
       * Find the _Fields constant that matches name, or null if its not found.
-
 
25480
       */
-
 
25481
      public static _Fields findByName(String name) {
-
 
25482
        return byName.get(name);
-
 
25483
      }
-
 
25484
 
-
 
25485
      private final short _thriftId;
-
 
25486
      private final String _fieldName;
-
 
25487
 
-
 
25488
      _Fields(short thriftId, String fieldName) {
-
 
25489
        _thriftId = thriftId;
-
 
25490
        _fieldName = fieldName;
-
 
25491
      }
-
 
25492
 
-
 
25493
      public short getThriftFieldId() {
-
 
25494
        return _thriftId;
-
 
25495
      }
-
 
25496
 
-
 
25497
      public String getFieldName() {
-
 
25498
        return _fieldName;
-
 
25499
      }
-
 
25500
    }
-
 
25501
 
-
 
25502
    // isset id assignments
-
 
25503
    private static final int __WAREHOUSEID_ISSET_ID = 0;
-
 
25504
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
25505
 
-
 
25506
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
25507
    static {
-
 
25508
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
25509
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
25510
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
25511
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
25512
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markAlertsAsSeen_args.class, metaDataMap);
-
 
25513
    }
-
 
25514
 
-
 
25515
    public markAlertsAsSeen_args() {
-
 
25516
    }
-
 
25517
 
-
 
25518
    public markAlertsAsSeen_args(
-
 
25519
      long warehouseId)
-
 
25520
    {
-
 
25521
      this();
-
 
25522
      this.warehouseId = warehouseId;
-
 
25523
      setWarehouseIdIsSet(true);
-
 
25524
    }
-
 
25525
 
-
 
25526
    /**
-
 
25527
     * Performs a deep copy on <i>other</i>.
-
 
25528
     */
-
 
25529
    public markAlertsAsSeen_args(markAlertsAsSeen_args other) {
-
 
25530
      __isset_bit_vector.clear();
-
 
25531
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
25532
      this.warehouseId = other.warehouseId;
-
 
25533
    }
-
 
25534
 
-
 
25535
    public markAlertsAsSeen_args deepCopy() {
-
 
25536
      return new markAlertsAsSeen_args(this);
-
 
25537
    }
-
 
25538
 
-
 
25539
    @Override
-
 
25540
    public void clear() {
-
 
25541
      setWarehouseIdIsSet(false);
-
 
25542
      this.warehouseId = 0;
-
 
25543
    }
-
 
25544
 
-
 
25545
    public long getWarehouseId() {
-
 
25546
      return this.warehouseId;
-
 
25547
    }
-
 
25548
 
-
 
25549
    public void setWarehouseId(long warehouseId) {
-
 
25550
      this.warehouseId = warehouseId;
-
 
25551
      setWarehouseIdIsSet(true);
-
 
25552
    }
-
 
25553
 
-
 
25554
    public void unsetWarehouseId() {
-
 
25555
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
-
 
25556
    }
-
 
25557
 
-
 
25558
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
-
 
25559
    public boolean isSetWarehouseId() {
-
 
25560
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
-
 
25561
    }
-
 
25562
 
-
 
25563
    public void setWarehouseIdIsSet(boolean value) {
-
 
25564
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
-
 
25565
    }
-
 
25566
 
-
 
25567
    public void setFieldValue(_Fields field, Object value) {
-
 
25568
      switch (field) {
-
 
25569
      case WAREHOUSE_ID:
-
 
25570
        if (value == null) {
-
 
25571
          unsetWarehouseId();
-
 
25572
        } else {
-
 
25573
          setWarehouseId((Long)value);
-
 
25574
        }
-
 
25575
        break;
-
 
25576
 
-
 
25577
      }
-
 
25578
    }
-
 
25579
 
-
 
25580
    public Object getFieldValue(_Fields field) {
-
 
25581
      switch (field) {
-
 
25582
      case WAREHOUSE_ID:
-
 
25583
        return Long.valueOf(getWarehouseId());
-
 
25584
 
-
 
25585
      }
-
 
25586
      throw new IllegalStateException();
-
 
25587
    }
-
 
25588
 
-
 
25589
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
25590
    public boolean isSet(_Fields field) {
-
 
25591
      if (field == null) {
-
 
25592
        throw new IllegalArgumentException();
-
 
25593
      }
-
 
25594
 
-
 
25595
      switch (field) {
-
 
25596
      case WAREHOUSE_ID:
-
 
25597
        return isSetWarehouseId();
-
 
25598
      }
-
 
25599
      throw new IllegalStateException();
-
 
25600
    }
-
 
25601
 
-
 
25602
    @Override
-
 
25603
    public boolean equals(Object that) {
-
 
25604
      if (that == null)
-
 
25605
        return false;
-
 
25606
      if (that instanceof markAlertsAsSeen_args)
-
 
25607
        return this.equals((markAlertsAsSeen_args)that);
-
 
25608
      return false;
-
 
25609
    }
-
 
25610
 
-
 
25611
    public boolean equals(markAlertsAsSeen_args that) {
-
 
25612
      if (that == null)
-
 
25613
        return false;
-
 
25614
 
-
 
25615
      boolean this_present_warehouseId = true;
-
 
25616
      boolean that_present_warehouseId = true;
-
 
25617
      if (this_present_warehouseId || that_present_warehouseId) {
-
 
25618
        if (!(this_present_warehouseId && that_present_warehouseId))
-
 
25619
          return false;
-
 
25620
        if (this.warehouseId != that.warehouseId)
-
 
25621
          return false;
-
 
25622
      }
-
 
25623
 
-
 
25624
      return true;
-
 
25625
    }
-
 
25626
 
-
 
25627
    @Override
-
 
25628
    public int hashCode() {
-
 
25629
      return 0;
-
 
25630
    }
-
 
25631
 
-
 
25632
    public int compareTo(markAlertsAsSeen_args other) {
-
 
25633
      if (!getClass().equals(other.getClass())) {
-
 
25634
        return getClass().getName().compareTo(other.getClass().getName());
-
 
25635
      }
-
 
25636
 
-
 
25637
      int lastComparison = 0;
-
 
25638
      markAlertsAsSeen_args typedOther = (markAlertsAsSeen_args)other;
-
 
25639
 
-
 
25640
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
-
 
25641
      if (lastComparison != 0) {
-
 
25642
        return lastComparison;
-
 
25643
      }
-
 
25644
      if (isSetWarehouseId()) {
-
 
25645
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
-
 
25646
        if (lastComparison != 0) {
-
 
25647
          return lastComparison;
-
 
25648
        }
-
 
25649
      }
-
 
25650
      return 0;
-
 
25651
    }
-
 
25652
 
-
 
25653
    public _Fields fieldForId(int fieldId) {
-
 
25654
      return _Fields.findByThriftId(fieldId);
-
 
25655
    }
-
 
25656
 
-
 
25657
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
25658
      org.apache.thrift.protocol.TField field;
-
 
25659
      iprot.readStructBegin();
-
 
25660
      while (true)
-
 
25661
      {
-
 
25662
        field = iprot.readFieldBegin();
-
 
25663
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
25664
          break;
-
 
25665
        }
-
 
25666
        switch (field.id) {
-
 
25667
          case 1: // WAREHOUSE_ID
-
 
25668
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
25669
              this.warehouseId = iprot.readI64();
-
 
25670
              setWarehouseIdIsSet(true);
-
 
25671
            } else { 
-
 
25672
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
25673
            }
-
 
25674
            break;
-
 
25675
          default:
-
 
25676
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
25677
        }
-
 
25678
        iprot.readFieldEnd();
-
 
25679
      }
-
 
25680
      iprot.readStructEnd();
-
 
25681
      validate();
-
 
25682
    }
-
 
25683
 
-
 
25684
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
25685
      validate();
-
 
25686
 
-
 
25687
      oprot.writeStructBegin(STRUCT_DESC);
-
 
25688
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
25689
      oprot.writeI64(this.warehouseId);
-
 
25690
      oprot.writeFieldEnd();
-
 
25691
      oprot.writeFieldStop();
-
 
25692
      oprot.writeStructEnd();
-
 
25693
    }
-
 
25694
 
-
 
25695
    @Override
-
 
25696
    public String toString() {
-
 
25697
      StringBuilder sb = new StringBuilder("markAlertsAsSeen_args(");
-
 
25698
      boolean first = true;
-
 
25699
 
-
 
25700
      sb.append("warehouseId:");
-
 
25701
      sb.append(this.warehouseId);
-
 
25702
      first = false;
-
 
25703
      sb.append(")");
-
 
25704
      return sb.toString();
-
 
25705
    }
-
 
25706
 
-
 
25707
    public void validate() throws org.apache.thrift.TException {
-
 
25708
      // check for required fields
-
 
25709
    }
-
 
25710
 
-
 
25711
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
25712
      try {
-
 
25713
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
25714
      } catch (org.apache.thrift.TException te) {
-
 
25715
        throw new java.io.IOException(te);
-
 
25716
      }
-
 
25717
    }
-
 
25718
 
-
 
25719
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
25720
      try {
-
 
25721
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
25722
        __isset_bit_vector = new BitSet(1);
-
 
25723
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
25724
      } catch (org.apache.thrift.TException te) {
-
 
25725
        throw new java.io.IOException(te);
-
 
25726
      }
-
 
25727
    }
-
 
25728
 
-
 
25729
  }
-
 
25730
 
-
 
25731
  public static class markAlertsAsSeen_result implements org.apache.thrift.TBase<markAlertsAsSeen_result, markAlertsAsSeen_result._Fields>, java.io.Serializable, Cloneable   {
-
 
25732
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markAlertsAsSeen_result");
-
 
25733
 
-
 
25734
 
-
 
25735
 
-
 
25736
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
25737
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
25738
;
-
 
25739
 
-
 
25740
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
25741
 
-
 
25742
      static {
-
 
25743
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
25744
          byName.put(field.getFieldName(), field);
-
 
25745
        }
-
 
25746
      }
-
 
25747
 
-
 
25748
      /**
-
 
25749
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
25750
       */
-
 
25751
      public static _Fields findByThriftId(int fieldId) {
-
 
25752
        switch(fieldId) {
-
 
25753
          default:
-
 
25754
            return null;
-
 
25755
        }
-
 
25756
      }
-
 
25757
 
-
 
25758
      /**
-
 
25759
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
25760
       * if it is not found.
-
 
25761
       */
-
 
25762
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
25763
        _Fields fields = findByThriftId(fieldId);
-
 
25764
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
25765
        return fields;
-
 
25766
      }
-
 
25767
 
-
 
25768
      /**
-
 
25769
       * Find the _Fields constant that matches name, or null if its not found.
-
 
25770
       */
-
 
25771
      public static _Fields findByName(String name) {
-
 
25772
        return byName.get(name);
-
 
25773
      }
-
 
25774
 
-
 
25775
      private final short _thriftId;
-
 
25776
      private final String _fieldName;
-
 
25777
 
-
 
25778
      _Fields(short thriftId, String fieldName) {
-
 
25779
        _thriftId = thriftId;
-
 
25780
        _fieldName = fieldName;
-
 
25781
      }
-
 
25782
 
-
 
25783
      public short getThriftFieldId() {
-
 
25784
        return _thriftId;
-
 
25785
      }
-
 
25786
 
-
 
25787
      public String getFieldName() {
-
 
25788
        return _fieldName;
-
 
25789
      }
-
 
25790
    }
-
 
25791
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
25792
    static {
-
 
25793
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
25794
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
25795
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markAlertsAsSeen_result.class, metaDataMap);
-
 
25796
    }
-
 
25797
 
-
 
25798
    public markAlertsAsSeen_result() {
-
 
25799
    }
-
 
25800
 
-
 
25801
    /**
-
 
25802
     * Performs a deep copy on <i>other</i>.
-
 
25803
     */
-
 
25804
    public markAlertsAsSeen_result(markAlertsAsSeen_result other) {
-
 
25805
    }
-
 
25806
 
-
 
25807
    public markAlertsAsSeen_result deepCopy() {
-
 
25808
      return new markAlertsAsSeen_result(this);
-
 
25809
    }
-
 
25810
 
-
 
25811
    @Override
-
 
25812
    public void clear() {
-
 
25813
    }
-
 
25814
 
-
 
25815
    public void setFieldValue(_Fields field, Object value) {
-
 
25816
      switch (field) {
-
 
25817
      }
-
 
25818
    }
-
 
25819
 
-
 
25820
    public Object getFieldValue(_Fields field) {
-
 
25821
      switch (field) {
-
 
25822
      }
-
 
25823
      throw new IllegalStateException();
-
 
25824
    }
-
 
25825
 
-
 
25826
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
25827
    public boolean isSet(_Fields field) {
-
 
25828
      if (field == null) {
-
 
25829
        throw new IllegalArgumentException();
-
 
25830
      }
-
 
25831
 
-
 
25832
      switch (field) {
-
 
25833
      }
-
 
25834
      throw new IllegalStateException();
-
 
25835
    }
-
 
25836
 
-
 
25837
    @Override
-
 
25838
    public boolean equals(Object that) {
-
 
25839
      if (that == null)
-
 
25840
        return false;
-
 
25841
      if (that instanceof markAlertsAsSeen_result)
-
 
25842
        return this.equals((markAlertsAsSeen_result)that);
-
 
25843
      return false;
-
 
25844
    }
-
 
25845
 
-
 
25846
    public boolean equals(markAlertsAsSeen_result that) {
-
 
25847
      if (that == null)
-
 
25848
        return false;
-
 
25849
 
-
 
25850
      return true;
-
 
25851
    }
-
 
25852
 
-
 
25853
    @Override
-
 
25854
    public int hashCode() {
-
 
25855
      return 0;
-
 
25856
    }
-
 
25857
 
-
 
25858
    public int compareTo(markAlertsAsSeen_result other) {
-
 
25859
      if (!getClass().equals(other.getClass())) {
-
 
25860
        return getClass().getName().compareTo(other.getClass().getName());
-
 
25861
      }
-
 
25862
 
-
 
25863
      int lastComparison = 0;
-
 
25864
      markAlertsAsSeen_result typedOther = (markAlertsAsSeen_result)other;
-
 
25865
 
-
 
25866
      return 0;
-
 
25867
    }
-
 
25868
 
-
 
25869
    public _Fields fieldForId(int fieldId) {
-
 
25870
      return _Fields.findByThriftId(fieldId);
-
 
25871
    }
-
 
25872
 
-
 
25873
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
25874
      org.apache.thrift.protocol.TField field;
-
 
25875
      iprot.readStructBegin();
-
 
25876
      while (true)
-
 
25877
      {
-
 
25878
        field = iprot.readFieldBegin();
-
 
25879
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
25880
          break;
-
 
25881
        }
-
 
25882
        switch (field.id) {
-
 
25883
          default:
-
 
25884
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
25885
        }
-
 
25886
        iprot.readFieldEnd();
-
 
25887
      }
-
 
25888
      iprot.readStructEnd();
-
 
25889
      validate();
-
 
25890
    }
-
 
25891
 
-
 
25892
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
25893
      oprot.writeStructBegin(STRUCT_DESC);
-
 
25894
 
-
 
25895
      oprot.writeFieldStop();
-
 
25896
      oprot.writeStructEnd();
-
 
25897
    }
-
 
25898
 
-
 
25899
    @Override
-
 
25900
    public String toString() {
-
 
25901
      StringBuilder sb = new StringBuilder("markAlertsAsSeen_result(");
-
 
25902
      boolean first = true;
-
 
25903
 
-
 
25904
      sb.append(")");
-
 
25905
      return sb.toString();
-
 
25906
    }
-
 
25907
 
-
 
25908
    public void validate() throws org.apache.thrift.TException {
-
 
25909
      // check for required fields
-
 
25910
    }
-
 
25911
 
-
 
25912
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
25913
      try {
-
 
25914
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
25915
      } catch (org.apache.thrift.TException te) {
-
 
25916
        throw new java.io.IOException(te);
-
 
25917
      }
-
 
25918
    }
-
 
25919
 
-
 
25920
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
25921
      try {
-
 
25922
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
25923
      } catch (org.apache.thrift.TException te) {
-
 
25924
        throw new java.io.IOException(te);
-
 
25925
      }
-
 
25926
    }
-
 
25927
 
-
 
25928
  }
-
 
25929
 
25190
  public static class getValidOrderCount_args implements org.apache.thrift.TBase<getValidOrderCount_args, getValidOrderCount_args._Fields>, java.io.Serializable, Cloneable   {
25930
  public static class getValidOrderCount_args implements org.apache.thrift.TBase<getValidOrderCount_args, getValidOrderCount_args._Fields>, java.io.Serializable, Cloneable   {
25191
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidOrderCount_args");
25931
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidOrderCount_args");
25192
 
25932
 
25193
 
25933
 
25194
 
25934
 
Line 55969... Line 56709...
55969
      }
56709
      }
55970
    }
56710
    }
55971
 
56711
 
55972
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
56712
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55973
      try {
56713
      try {
55974
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
55975
        __isset_bit_vector = new BitSet(1);
-
 
55976
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
56714
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55977
      } catch (org.apache.thrift.TException te) {
56715
      } catch (org.apache.thrift.TException te) {
55978
        throw new java.io.IOException(te);
56716
        throw new java.io.IOException(te);
55979
      }
56717
      }
55980
    }
56718
    }