Subversion Repositories SmartDukaan

Rev

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

Rev 4386 Rev 4393
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 orderId, boolean valid) throws org.apache.thrift.TException;
138
    public List<Alert> getAlerts(long type, long status, long timestamp) throws org.apache.thrift.TException;
139
 
139
 
140
    public void setAlert(long orderId, boolean unset, long type, String comment) throws org.apache.thrift.TException;
140
    public void addAlert(long type, String description) throws org.apache.thrift.TException;
141
 
141
 
142
    /**
142
    /**
143
     * Return the number of valid orders. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
143
     * Return the number of valid orders. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
144
     */
144
     */
145
    public long getValidOrderCount() throws org.apache.thrift.TException;
145
    public long getValidOrderCount() throws org.apache.thrift.TException;
Line 626... Line 626...
626
 
626
 
627
    public void getLineItemsForOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLineItemsForOrder_call> resultHandler) throws org.apache.thrift.TException;
627
    public void getLineItemsForOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLineItemsForOrder_call> resultHandler) throws org.apache.thrift.TException;
628
 
628
 
629
    public void getOrderForCustomer(long orderId, long customerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderForCustomer_call> resultHandler) throws org.apache.thrift.TException;
629
    public void getOrderForCustomer(long orderId, long customerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderForCustomer_call> resultHandler) throws org.apache.thrift.TException;
630
 
630
 
631
    public void getAlerts(long orderId, boolean valid, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAlerts_call> resultHandler) throws org.apache.thrift.TException;
631
    public void getAlerts(long type, long status, long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAlerts_call> resultHandler) throws org.apache.thrift.TException;
632
 
632
 
633
    public void setAlert(long orderId, boolean unset, long type, String comment, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.setAlert_call> resultHandler) throws org.apache.thrift.TException;
633
    public void addAlert(long type, String description, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAlert_call> resultHandler) throws org.apache.thrift.TException;
634
 
634
 
635
    public void getValidOrderCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getValidOrderCount_call> resultHandler) throws org.apache.thrift.TException;
635
    public void getValidOrderCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getValidOrderCount_call> resultHandler) throws org.apache.thrift.TException;
636
 
636
 
637
    public void getNoOfCustomersWithSuccessfulTransaction(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNoOfCustomersWithSuccessfulTransaction_call> resultHandler) throws org.apache.thrift.TException;
637
    public void getNoOfCustomersWithSuccessfulTransaction(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNoOfCustomersWithSuccessfulTransaction_call> resultHandler) throws org.apache.thrift.TException;
638
 
638
 
Line 1322... Line 1322...
1322
        throw result.ex;
1322
        throw result.ex;
1323
      }
1323
      }
1324
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderForCustomer failed: unknown result");
1324
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderForCustomer failed: unknown result");
1325
    }
1325
    }
1326
 
1326
 
1327
    public List<Alert> getAlerts(long orderId, boolean valid) throws org.apache.thrift.TException
1327
    public List<Alert> getAlerts(long type, long status, long timestamp) throws org.apache.thrift.TException
1328
    {
1328
    {
1329
      send_getAlerts(orderId, valid);
1329
      send_getAlerts(type, status, timestamp);
1330
      return recv_getAlerts();
1330
      return recv_getAlerts();
1331
    }
1331
    }
1332
 
1332
 
1333
    public void send_getAlerts(long orderId, boolean valid) throws org.apache.thrift.TException
1333
    public void send_getAlerts(long type, long status, long timestamp) throws org.apache.thrift.TException
1334
    {
1334
    {
1335
      getAlerts_args args = new getAlerts_args();
1335
      getAlerts_args args = new getAlerts_args();
1336
      args.setOrderId(orderId);
1336
      args.setType(type);
1337
      args.setValid(valid);
1337
      args.setStatus(status);
-
 
1338
      args.setTimestamp(timestamp);
1338
      sendBase("getAlerts", args);
1339
      sendBase("getAlerts", args);
1339
    }
1340
    }
1340
 
1341
 
1341
    public List<Alert> recv_getAlerts() throws org.apache.thrift.TException
1342
    public List<Alert> recv_getAlerts() throws org.apache.thrift.TException
1342
    {
1343
    {
Line 1346... Line 1347...
1346
        return result.success;
1347
        return result.success;
1347
      }
1348
      }
1348
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAlerts failed: unknown result");
1349
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAlerts failed: unknown result");
1349
    }
1350
    }
1350
 
1351
 
1351
    public void setAlert(long orderId, boolean unset, long type, String comment) throws org.apache.thrift.TException
1352
    public void addAlert(long type, String description) throws org.apache.thrift.TException
1352
    {
1353
    {
1353
      send_setAlert(orderId, unset, type, comment);
1354
      send_addAlert(type, description);
1354
      recv_setAlert();
1355
      recv_addAlert();
1355
    }
1356
    }
1356
 
1357
 
1357
    public void send_setAlert(long orderId, boolean unset, long type, String comment) throws org.apache.thrift.TException
1358
    public void send_addAlert(long type, String description) throws org.apache.thrift.TException
1358
    {
1359
    {
1359
      setAlert_args args = new setAlert_args();
1360
      addAlert_args args = new addAlert_args();
1360
      args.setOrderId(orderId);
-
 
1361
      args.setUnset(unset);
-
 
1362
      args.setType(type);
1361
      args.setType(type);
1363
      args.setComment(comment);
1362
      args.setDescription(description);
1364
      sendBase("setAlert", args);
1363
      sendBase("addAlert", args);
1365
    }
1364
    }
1366
 
1365
 
1367
    public void recv_setAlert() throws org.apache.thrift.TException
1366
    public void recv_addAlert() throws org.apache.thrift.TException
1368
    {
1367
    {
1369
      setAlert_result result = new setAlert_result();
1368
      addAlert_result result = new addAlert_result();
1370
      receiveBase(result, "setAlert");
1369
      receiveBase(result, "addAlert");
1371
      return;
1370
      return;
1372
    }
1371
    }
1373
 
1372
 
1374
    public long getValidOrderCount() throws org.apache.thrift.TException
1373
    public long getValidOrderCount() throws org.apache.thrift.TException
1375
    {
1374
    {
Line 3358... Line 3357...
3358
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3357
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3359
        return (new Client(prot)).recv_getOrderForCustomer();
3358
        return (new Client(prot)).recv_getOrderForCustomer();
3360
      }
3359
      }
3361
    }
3360
    }
3362
 
3361
 
3363
    public void getAlerts(long orderId, boolean valid, org.apache.thrift.async.AsyncMethodCallback<getAlerts_call> resultHandler) throws org.apache.thrift.TException {
3362
    public void getAlerts(long type, long status, long timestamp, org.apache.thrift.async.AsyncMethodCallback<getAlerts_call> resultHandler) throws org.apache.thrift.TException {
3364
      checkReady();
3363
      checkReady();
3365
      getAlerts_call method_call = new getAlerts_call(orderId, valid, resultHandler, this, ___protocolFactory, ___transport);
3364
      getAlerts_call method_call = new getAlerts_call(type, status, timestamp, resultHandler, this, ___protocolFactory, ___transport);
3366
      this.___currentMethod = method_call;
3365
      this.___currentMethod = method_call;
3367
      ___manager.call(method_call);
3366
      ___manager.call(method_call);
3368
    }
3367
    }
3369
 
3368
 
3370
    public static class getAlerts_call extends org.apache.thrift.async.TAsyncMethodCall {
3369
    public static class getAlerts_call extends org.apache.thrift.async.TAsyncMethodCall {
3371
      private long orderId;
3370
      private long type;
3372
      private boolean valid;
3371
      private long status;
-
 
3372
      private long timestamp;
3373
      public getAlerts_call(long orderId, boolean valid, 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 {
3373
      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 {
3374
        super(client, protocolFactory, transport, resultHandler, false);
3374
        super(client, protocolFactory, transport, resultHandler, false);
3375
        this.orderId = orderId;
3375
        this.type = type;
3376
        this.valid = valid;
3376
        this.status = status;
-
 
3377
        this.timestamp = timestamp;
3377
      }
3378
      }
3378
 
3379
 
3379
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3380
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3380
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAlerts", org.apache.thrift.protocol.TMessageType.CALL, 0));
3381
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAlerts", org.apache.thrift.protocol.TMessageType.CALL, 0));
3381
        getAlerts_args args = new getAlerts_args();
3382
        getAlerts_args args = new getAlerts_args();
3382
        args.setOrderId(orderId);
3383
        args.setType(type);
3383
        args.setValid(valid);
3384
        args.setStatus(status);
-
 
3385
        args.setTimestamp(timestamp);
3384
        args.write(prot);
3386
        args.write(prot);
3385
        prot.writeMessageEnd();
3387
        prot.writeMessageEnd();
3386
      }
3388
      }
3387
 
3389
 
3388
      public List<Alert> getResult() throws org.apache.thrift.TException {
3390
      public List<Alert> getResult() throws org.apache.thrift.TException {
Line 3393... Line 3395...
3393
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3395
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3394
        return (new Client(prot)).recv_getAlerts();
3396
        return (new Client(prot)).recv_getAlerts();
3395
      }
3397
      }
3396
    }
3398
    }
3397
 
3399
 
3398
    public void setAlert(long orderId, boolean unset, long type, String comment, org.apache.thrift.async.AsyncMethodCallback<setAlert_call> resultHandler) throws org.apache.thrift.TException {
3400
    public void addAlert(long type, String description, org.apache.thrift.async.AsyncMethodCallback<addAlert_call> resultHandler) throws org.apache.thrift.TException {
3399
      checkReady();
3401
      checkReady();
3400
      setAlert_call method_call = new setAlert_call(orderId, unset, type, comment, resultHandler, this, ___protocolFactory, ___transport);
3402
      addAlert_call method_call = new addAlert_call(type, description, resultHandler, this, ___protocolFactory, ___transport);
3401
      this.___currentMethod = method_call;
3403
      this.___currentMethod = method_call;
3402
      ___manager.call(method_call);
3404
      ___manager.call(method_call);
3403
    }
3405
    }
3404
 
3406
 
3405
    public static class setAlert_call extends org.apache.thrift.async.TAsyncMethodCall {
3407
    public static class addAlert_call extends org.apache.thrift.async.TAsyncMethodCall {
3406
      private long orderId;
-
 
3407
      private boolean unset;
-
 
3408
      private long type;
3408
      private long type;
3409
      private String comment;
3409
      private String description;
3410
      public setAlert_call(long orderId, boolean unset, long type, String comment, org.apache.thrift.async.AsyncMethodCallback<setAlert_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 {
3410
      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 {
3411
        super(client, protocolFactory, transport, resultHandler, false);
3411
        super(client, protocolFactory, transport, resultHandler, false);
3412
        this.orderId = orderId;
-
 
3413
        this.unset = unset;
-
 
3414
        this.type = type;
3412
        this.type = type;
3415
        this.comment = comment;
3413
        this.description = description;
3416
      }
3414
      }
3417
 
3415
 
3418
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3416
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3419
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setAlert", org.apache.thrift.protocol.TMessageType.CALL, 0));
3417
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addAlert", org.apache.thrift.protocol.TMessageType.CALL, 0));
3420
        setAlert_args args = new setAlert_args();
3418
        addAlert_args args = new addAlert_args();
3421
        args.setOrderId(orderId);
-
 
3422
        args.setUnset(unset);
-
 
3423
        args.setType(type);
3419
        args.setType(type);
3424
        args.setComment(comment);
3420
        args.setDescription(description);
3425
        args.write(prot);
3421
        args.write(prot);
3426
        prot.writeMessageEnd();
3422
        prot.writeMessageEnd();
3427
      }
3423
      }
3428
 
3424
 
3429
      public void getResult() throws org.apache.thrift.TException {
3425
      public void getResult() throws org.apache.thrift.TException {
3430
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3426
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3431
          throw new IllegalStateException("Method call not finished!");
3427
          throw new IllegalStateException("Method call not finished!");
3432
        }
3428
        }
3433
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3429
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3434
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3430
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3435
        (new Client(prot)).recv_setAlert();
3431
        (new Client(prot)).recv_addAlert();
3436
      }
3432
      }
3437
    }
3433
    }
3438
 
3434
 
3439
    public void getValidOrderCount(org.apache.thrift.async.AsyncMethodCallback<getValidOrderCount_call> resultHandler) throws org.apache.thrift.TException {
3435
    public void getValidOrderCount(org.apache.thrift.async.AsyncMethodCallback<getValidOrderCount_call> resultHandler) throws org.apache.thrift.TException {
3440
      checkReady();
3436
      checkReady();
Line 5131... Line 5127...
5131
      processMap.put("createOrder", new createOrder());
5127
      processMap.put("createOrder", new createOrder());
5132
      processMap.put("getOrder", new getOrder());
5128
      processMap.put("getOrder", new getOrder());
5133
      processMap.put("getLineItemsForOrder", new getLineItemsForOrder());
5129
      processMap.put("getLineItemsForOrder", new getLineItemsForOrder());
5134
      processMap.put("getOrderForCustomer", new getOrderForCustomer());
5130
      processMap.put("getOrderForCustomer", new getOrderForCustomer());
5135
      processMap.put("getAlerts", new getAlerts());
5131
      processMap.put("getAlerts", new getAlerts());
5136
      processMap.put("setAlert", new setAlert());
5132
      processMap.put("addAlert", new addAlert());
5137
      processMap.put("getValidOrderCount", new getValidOrderCount());
5133
      processMap.put("getValidOrderCount", new getValidOrderCount());
5138
      processMap.put("getNoOfCustomersWithSuccessfulTransaction", new getNoOfCustomersWithSuccessfulTransaction());
5134
      processMap.put("getNoOfCustomersWithSuccessfulTransaction", new getNoOfCustomersWithSuccessfulTransaction());
5139
      processMap.put("getValidOrdersAmountRange", new getValidOrdersAmountRange());
5135
      processMap.put("getValidOrdersAmountRange", new getValidOrdersAmountRange());
5140
      processMap.put("getValidOrders", new getValidOrders());
5136
      processMap.put("getValidOrders", new getValidOrders());
5141
      processMap.put("batchOrders", new batchOrders());
5137
      processMap.put("batchOrders", new batchOrders());
Line 5620... Line 5616...
5620
        return new getAlerts_args();
5616
        return new getAlerts_args();
5621
      }
5617
      }
5622
 
5618
 
5623
      protected getAlerts_result getResult(I iface, getAlerts_args args) throws org.apache.thrift.TException {
5619
      protected getAlerts_result getResult(I iface, getAlerts_args args) throws org.apache.thrift.TException {
5624
        getAlerts_result result = new getAlerts_result();
5620
        getAlerts_result result = new getAlerts_result();
5625
        result.success = iface.getAlerts(args.orderId, args.valid);
5621
        result.success = iface.getAlerts(args.type, args.status, args.timestamp);
5626
        return result;
5622
        return result;
5627
      }
5623
      }
5628
    }
5624
    }
5629
 
5625
 
5630
    private static class setAlert<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setAlert_args> {
5626
    private static class addAlert<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAlert_args> {
5631
      public setAlert() {
5627
      public addAlert() {
5632
        super("setAlert");
5628
        super("addAlert");
5633
      }
5629
      }
5634
 
5630
 
5635
      protected setAlert_args getEmptyArgsInstance() {
5631
      protected addAlert_args getEmptyArgsInstance() {
5636
        return new setAlert_args();
5632
        return new addAlert_args();
5637
      }
5633
      }
5638
 
5634
 
5639
      protected setAlert_result getResult(I iface, setAlert_args args) throws org.apache.thrift.TException {
5635
      protected addAlert_result getResult(I iface, addAlert_args args) throws org.apache.thrift.TException {
5640
        setAlert_result result = new setAlert_result();
5636
        addAlert_result result = new addAlert_result();
5641
        iface.setAlert(args.orderId, args.unset, args.type, args.comment);
5637
        iface.addAlert(args.type, args.description);
5642
        return result;
5638
        return result;
5643
      }
5639
      }
5644
    }
5640
    }
5645
 
5641
 
5646
    private static class getValidOrderCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getValidOrderCount_args> {
5642
    private static class getValidOrderCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getValidOrderCount_args> {
Line 23720... Line 23716...
23720
  }
23716
  }
23721
 
23717
 
23722
  public static class getAlerts_args implements org.apache.thrift.TBase<getAlerts_args, getAlerts_args._Fields>, java.io.Serializable, Cloneable   {
23718
  public static class getAlerts_args implements org.apache.thrift.TBase<getAlerts_args, getAlerts_args._Fields>, java.io.Serializable, Cloneable   {
23723
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAlerts_args");
23719
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAlerts_args");
23724
 
23720
 
23725
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
23721
    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);
23726
    private static final org.apache.thrift.protocol.TField VALID_FIELD_DESC = new org.apache.thrift.protocol.TField("valid", org.apache.thrift.protocol.TType.BOOL, (short)2);
23722
    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);
-
 
23723
    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);
23727
 
23724
 
23728
    private long orderId; // required
23725
    private long type; // required
23729
    private boolean valid; // required
23726
    private long status; // required
-
 
23727
    private long timestamp; // required
23730
 
23728
 
23731
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23729
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23732
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23730
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23733
      ORDER_ID((short)1, "orderId"),
23731
      TYPE((short)1, "type"),
23734
      VALID((short)2, "valid");
23732
      STATUS((short)2, "status"),
-
 
23733
      TIMESTAMP((short)3, "timestamp");
23735
 
23734
 
23736
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23735
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23737
 
23736
 
23738
      static {
23737
      static {
23739
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23738
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 23744... Line 23743...
23744
      /**
23743
      /**
23745
       * Find the _Fields constant that matches fieldId, or null if its not found.
23744
       * Find the _Fields constant that matches fieldId, or null if its not found.
23746
       */
23745
       */
23747
      public static _Fields findByThriftId(int fieldId) {
23746
      public static _Fields findByThriftId(int fieldId) {
23748
        switch(fieldId) {
23747
        switch(fieldId) {
23749
          case 1: // ORDER_ID
23748
          case 1: // TYPE
23750
            return ORDER_ID;
23749
            return TYPE;
23751
          case 2: // VALID
23750
          case 2: // STATUS
23752
            return VALID;
23751
            return STATUS;
-
 
23752
          case 3: // TIMESTAMP
-
 
23753
            return TIMESTAMP;
23753
          default:
23754
          default:
23754
            return null;
23755
            return null;
23755
        }
23756
        }
23756
      }
23757
      }
23757
 
23758
 
Line 23788... Line 23789...
23788
        return _fieldName;
23789
        return _fieldName;
23789
      }
23790
      }
23790
    }
23791
    }
23791
 
23792
 
23792
    // isset id assignments
23793
    // isset id assignments
23793
    private static final int __ORDERID_ISSET_ID = 0;
23794
    private static final int __TYPE_ISSET_ID = 0;
23794
    private static final int __VALID_ISSET_ID = 1;
23795
    private static final int __STATUS_ISSET_ID = 1;
-
 
23796
    private static final int __TIMESTAMP_ISSET_ID = 2;
23795
    private BitSet __isset_bit_vector = new BitSet(2);
23797
    private BitSet __isset_bit_vector = new BitSet(3);
23796
 
23798
 
23797
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23799
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23798
    static {
23800
    static {
23799
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23801
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23800
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23802
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
23803
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
23804
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
23805
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
23806
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23801
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23807
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23802
      tmpMap.put(_Fields.VALID, new org.apache.thrift.meta_data.FieldMetaData("valid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
23803
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
23804
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23808
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23805
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAlerts_args.class, metaDataMap);
23809
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAlerts_args.class, metaDataMap);
23806
    }
23810
    }
23807
 
23811
 
23808
    public getAlerts_args() {
23812
    public getAlerts_args() {
23809
    }
23813
    }
23810
 
23814
 
23811
    public getAlerts_args(
23815
    public getAlerts_args(
23812
      long orderId,
23816
      long type,
23813
      boolean valid)
23817
      long status,
-
 
23818
      long timestamp)
23814
    {
23819
    {
23815
      this();
23820
      this();
23816
      this.orderId = orderId;
23821
      this.type = type;
23817
      setOrderIdIsSet(true);
23822
      setTypeIsSet(true);
23818
      this.valid = valid;
23823
      this.status = status;
23819
      setValidIsSet(true);
23824
      setStatusIsSet(true);
-
 
23825
      this.timestamp = timestamp;
-
 
23826
      setTimestampIsSet(true);
23820
    }
23827
    }
23821
 
23828
 
23822
    /**
23829
    /**
23823
     * Performs a deep copy on <i>other</i>.
23830
     * Performs a deep copy on <i>other</i>.
23824
     */
23831
     */
23825
    public getAlerts_args(getAlerts_args other) {
23832
    public getAlerts_args(getAlerts_args other) {
23826
      __isset_bit_vector.clear();
23833
      __isset_bit_vector.clear();
23827
      __isset_bit_vector.or(other.__isset_bit_vector);
23834
      __isset_bit_vector.or(other.__isset_bit_vector);
23828
      this.orderId = other.orderId;
23835
      this.type = other.type;
23829
      this.valid = other.valid;
23836
      this.status = other.status;
-
 
23837
      this.timestamp = other.timestamp;
23830
    }
23838
    }
23831
 
23839
 
23832
    public getAlerts_args deepCopy() {
23840
    public getAlerts_args deepCopy() {
23833
      return new getAlerts_args(this);
23841
      return new getAlerts_args(this);
23834
    }
23842
    }
23835
 
23843
 
23836
    @Override
23844
    @Override
23837
    public void clear() {
23845
    public void clear() {
23838
      setOrderIdIsSet(false);
23846
      setTypeIsSet(false);
23839
      this.orderId = 0;
23847
      this.type = 0;
23840
      setValidIsSet(false);
23848
      setStatusIsSet(false);
23841
      this.valid = false;
23849
      this.status = 0;
-
 
23850
      setTimestampIsSet(false);
-
 
23851
      this.timestamp = 0;
23842
    }
23852
    }
23843
 
23853
 
23844
    public long getOrderId() {
23854
    public long getType() {
23845
      return this.orderId;
23855
      return this.type;
23846
    }
23856
    }
23847
 
23857
 
23848
    public void setOrderId(long orderId) {
23858
    public void setType(long type) {
23849
      this.orderId = orderId;
23859
      this.type = type;
23850
      setOrderIdIsSet(true);
23860
      setTypeIsSet(true);
23851
    }
23861
    }
23852
 
23862
 
23853
    public void unsetOrderId() {
23863
    public void unsetType() {
23854
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
23864
      __isset_bit_vector.clear(__TYPE_ISSET_ID);
23855
    }
23865
    }
23856
 
23866
 
23857
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
23867
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
23858
    public boolean isSetOrderId() {
23868
    public boolean isSetType() {
23859
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
23869
      return __isset_bit_vector.get(__TYPE_ISSET_ID);
23860
    }
23870
    }
23861
 
23871
 
23862
    public void setOrderIdIsSet(boolean value) {
23872
    public void setTypeIsSet(boolean value) {
23863
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
23873
      __isset_bit_vector.set(__TYPE_ISSET_ID, value);
-
 
23874
    }
-
 
23875
 
-
 
23876
    public long getStatus() {
-
 
23877
      return this.status;
-
 
23878
    }
-
 
23879
 
-
 
23880
    public void setStatus(long status) {
-
 
23881
      this.status = status;
-
 
23882
      setStatusIsSet(true);
-
 
23883
    }
-
 
23884
 
-
 
23885
    public void unsetStatus() {
-
 
23886
      __isset_bit_vector.clear(__STATUS_ISSET_ID);
-
 
23887
    }
-
 
23888
 
-
 
23889
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
-
 
23890
    public boolean isSetStatus() {
-
 
23891
      return __isset_bit_vector.get(__STATUS_ISSET_ID);
-
 
23892
    }
-
 
23893
 
-
 
23894
    public void setStatusIsSet(boolean value) {
-
 
23895
      __isset_bit_vector.set(__STATUS_ISSET_ID, value);
23864
    }
23896
    }
23865
 
23897
 
23866
    public boolean isValid() {
23898
    public long getTimestamp() {
23867
      return this.valid;
23899
      return this.timestamp;
23868
    }
23900
    }
23869
 
23901
 
23870
    public void setValid(boolean valid) {
23902
    public void setTimestamp(long timestamp) {
23871
      this.valid = valid;
23903
      this.timestamp = timestamp;
23872
      setValidIsSet(true);
23904
      setTimestampIsSet(true);
23873
    }
23905
    }
23874
 
23906
 
23875
    public void unsetValid() {
23907
    public void unsetTimestamp() {
23876
      __isset_bit_vector.clear(__VALID_ISSET_ID);
23908
      __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
23877
    }
23909
    }
23878
 
23910
 
23879
    /** Returns true if field valid is set (has been assigned a value) and false otherwise */
23911
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
23880
    public boolean isSetValid() {
23912
    public boolean isSetTimestamp() {
23881
      return __isset_bit_vector.get(__VALID_ISSET_ID);
23913
      return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
23882
    }
23914
    }
23883
 
23915
 
23884
    public void setValidIsSet(boolean value) {
23916
    public void setTimestampIsSet(boolean value) {
23885
      __isset_bit_vector.set(__VALID_ISSET_ID, value);
23917
      __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);
23886
    }
23918
    }
23887
 
23919
 
23888
    public void setFieldValue(_Fields field, Object value) {
23920
    public void setFieldValue(_Fields field, Object value) {
23889
      switch (field) {
23921
      switch (field) {
23890
      case ORDER_ID:
23922
      case TYPE:
23891
        if (value == null) {
23923
        if (value == null) {
23892
          unsetOrderId();
23924
          unsetType();
23893
        } else {
23925
        } else {
23894
          setOrderId((Long)value);
23926
          setType((Long)value);
23895
        }
23927
        }
23896
        break;
23928
        break;
23897
 
23929
 
23898
      case VALID:
23930
      case STATUS:
23899
        if (value == null) {
23931
        if (value == null) {
23900
          unsetValid();
23932
          unsetStatus();
23901
        } else {
23933
        } else {
23902
          setValid((Boolean)value);
23934
          setStatus((Long)value);
-
 
23935
        }
-
 
23936
        break;
-
 
23937
 
-
 
23938
      case TIMESTAMP:
-
 
23939
        if (value == null) {
-
 
23940
          unsetTimestamp();
-
 
23941
        } else {
-
 
23942
          setTimestamp((Long)value);
23903
        }
23943
        }
23904
        break;
23944
        break;
23905
 
23945
 
23906
      }
23946
      }
23907
    }
23947
    }
23908
 
23948
 
23909
    public Object getFieldValue(_Fields field) {
23949
    public Object getFieldValue(_Fields field) {
23910
      switch (field) {
23950
      switch (field) {
23911
      case ORDER_ID:
23951
      case TYPE:
23912
        return Long.valueOf(getOrderId());
23952
        return Long.valueOf(getType());
-
 
23953
 
-
 
23954
      case STATUS:
-
 
23955
        return Long.valueOf(getStatus());
23913
 
23956
 
23914
      case VALID:
23957
      case TIMESTAMP:
23915
        return Boolean.valueOf(isValid());
23958
        return Long.valueOf(getTimestamp());
23916
 
23959
 
23917
      }
23960
      }
23918
      throw new IllegalStateException();
23961
      throw new IllegalStateException();
23919
    }
23962
    }
23920
 
23963
 
Line 23923... Line 23966...
23923
      if (field == null) {
23966
      if (field == null) {
23924
        throw new IllegalArgumentException();
23967
        throw new IllegalArgumentException();
23925
      }
23968
      }
23926
 
23969
 
23927
      switch (field) {
23970
      switch (field) {
23928
      case ORDER_ID:
23971
      case TYPE:
23929
        return isSetOrderId();
23972
        return isSetType();
23930
      case VALID:
23973
      case STATUS:
23931
        return isSetValid();
23974
        return isSetStatus();
-
 
23975
      case TIMESTAMP:
-
 
23976
        return isSetTimestamp();
23932
      }
23977
      }
23933
      throw new IllegalStateException();
23978
      throw new IllegalStateException();
23934
    }
23979
    }
23935
 
23980
 
23936
    @Override
23981
    @Override
Line 23944... Line 23989...
23944
 
23989
 
23945
    public boolean equals(getAlerts_args that) {
23990
    public boolean equals(getAlerts_args that) {
23946
      if (that == null)
23991
      if (that == null)
23947
        return false;
23992
        return false;
23948
 
23993
 
23949
      boolean this_present_orderId = true;
23994
      boolean this_present_type = true;
23950
      boolean that_present_orderId = true;
23995
      boolean that_present_type = true;
23951
      if (this_present_orderId || that_present_orderId) {
23996
      if (this_present_type || that_present_type) {
23952
        if (!(this_present_orderId && that_present_orderId))
23997
        if (!(this_present_type && that_present_type))
23953
          return false;
23998
          return false;
23954
        if (this.orderId != that.orderId)
23999
        if (this.type != that.type)
23955
          return false;
24000
          return false;
23956
      }
24001
      }
23957
 
24002
 
23958
      boolean this_present_valid = true;
24003
      boolean this_present_status = true;
23959
      boolean that_present_valid = true;
24004
      boolean that_present_status = true;
23960
      if (this_present_valid || that_present_valid) {
24005
      if (this_present_status || that_present_status) {
23961
        if (!(this_present_valid && that_present_valid))
24006
        if (!(this_present_status && that_present_status))
23962
          return false;
24007
          return false;
23963
        if (this.valid != that.valid)
24008
        if (this.status != that.status)
-
 
24009
          return false;
-
 
24010
      }
-
 
24011
 
-
 
24012
      boolean this_present_timestamp = true;
-
 
24013
      boolean that_present_timestamp = true;
-
 
24014
      if (this_present_timestamp || that_present_timestamp) {
-
 
24015
        if (!(this_present_timestamp && that_present_timestamp))
-
 
24016
          return false;
-
 
24017
        if (this.timestamp != that.timestamp)
23964
          return false;
24018
          return false;
23965
      }
24019
      }
23966
 
24020
 
23967
      return true;
24021
      return true;
23968
    }
24022
    }
Line 23978... Line 24032...
23978
      }
24032
      }
23979
 
24033
 
23980
      int lastComparison = 0;
24034
      int lastComparison = 0;
23981
      getAlerts_args typedOther = (getAlerts_args)other;
24035
      getAlerts_args typedOther = (getAlerts_args)other;
23982
 
24036
 
23983
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
24037
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
23984
      if (lastComparison != 0) {
24038
      if (lastComparison != 0) {
23985
        return lastComparison;
24039
        return lastComparison;
23986
      }
24040
      }
23987
      if (isSetOrderId()) {
24041
      if (isSetType()) {
23988
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
24042
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
23989
        if (lastComparison != 0) {
24043
        if (lastComparison != 0) {
23990
          return lastComparison;
24044
          return lastComparison;
23991
        }
24045
        }
23992
      }
24046
      }
23993
      lastComparison = Boolean.valueOf(isSetValid()).compareTo(typedOther.isSetValid());
24047
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
23994
      if (lastComparison != 0) {
24048
      if (lastComparison != 0) {
23995
        return lastComparison;
24049
        return lastComparison;
23996
      }
24050
      }
23997
      if (isSetValid()) {
24051
      if (isSetStatus()) {
23998
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.valid, typedOther.valid);
24052
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
-
 
24053
        if (lastComparison != 0) {
-
 
24054
          return lastComparison;
-
 
24055
        }
-
 
24056
      }
-
 
24057
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
-
 
24058
      if (lastComparison != 0) {
-
 
24059
        return lastComparison;
-
 
24060
      }
-
 
24061
      if (isSetTimestamp()) {
-
 
24062
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
23999
        if (lastComparison != 0) {
24063
        if (lastComparison != 0) {
24000
          return lastComparison;
24064
          return lastComparison;
24001
        }
24065
        }
24002
      }
24066
      }
24003
      return 0;
24067
      return 0;
Line 24015... Line 24079...
24015
        field = iprot.readFieldBegin();
24079
        field = iprot.readFieldBegin();
24016
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24080
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24017
          break;
24081
          break;
24018
        }
24082
        }
24019
        switch (field.id) {
24083
        switch (field.id) {
24020
          case 1: // ORDER_ID
24084
          case 1: // TYPE
24021
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24085
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24022
              this.orderId = iprot.readI64();
24086
              this.type = iprot.readI64();
24023
              setOrderIdIsSet(true);
24087
              setTypeIsSet(true);
24024
            } else { 
24088
            } else { 
24025
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24089
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24026
            }
24090
            }
24027
            break;
24091
            break;
24028
          case 2: // VALID
24092
          case 2: // STATUS
24029
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
24093
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24030
              this.valid = iprot.readBool();
24094
              this.status = iprot.readI64();
24031
              setValidIsSet(true);
24095
              setStatusIsSet(true);
-
 
24096
            } else { 
-
 
24097
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
24098
            }
-
 
24099
            break;
-
 
24100
          case 3: // TIMESTAMP
-
 
24101
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
24102
              this.timestamp = iprot.readI64();
-
 
24103
              setTimestampIsSet(true);
24032
            } else { 
24104
            } else { 
24033
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24105
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24034
            }
24106
            }
24035
            break;
24107
            break;
24036
          default:
24108
          default:
Line 24044... Line 24116...
24044
 
24116
 
24045
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24117
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24046
      validate();
24118
      validate();
24047
 
24119
 
24048
      oprot.writeStructBegin(STRUCT_DESC);
24120
      oprot.writeStructBegin(STRUCT_DESC);
24049
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
24121
      oprot.writeFieldBegin(TYPE_FIELD_DESC);
24050
      oprot.writeI64(this.orderId);
24122
      oprot.writeI64(this.type);
24051
      oprot.writeFieldEnd();
24123
      oprot.writeFieldEnd();
24052
      oprot.writeFieldBegin(VALID_FIELD_DESC);
24124
      oprot.writeFieldBegin(STATUS_FIELD_DESC);
24053
      oprot.writeBool(this.valid);
24125
      oprot.writeI64(this.status);
-
 
24126
      oprot.writeFieldEnd();
-
 
24127
      oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
-
 
24128
      oprot.writeI64(this.timestamp);
24054
      oprot.writeFieldEnd();
24129
      oprot.writeFieldEnd();
24055
      oprot.writeFieldStop();
24130
      oprot.writeFieldStop();
24056
      oprot.writeStructEnd();
24131
      oprot.writeStructEnd();
24057
    }
24132
    }
24058
 
24133
 
24059
    @Override
24134
    @Override
24060
    public String toString() {
24135
    public String toString() {
24061
      StringBuilder sb = new StringBuilder("getAlerts_args(");
24136
      StringBuilder sb = new StringBuilder("getAlerts_args(");
24062
      boolean first = true;
24137
      boolean first = true;
24063
 
24138
 
24064
      sb.append("orderId:");
24139
      sb.append("type:");
24065
      sb.append(this.orderId);
24140
      sb.append(this.type);
24066
      first = false;
24141
      first = false;
24067
      if (!first) sb.append(", ");
24142
      if (!first) sb.append(", ");
24068
      sb.append("valid:");
24143
      sb.append("status:");
24069
      sb.append(this.valid);
24144
      sb.append(this.status);
-
 
24145
      first = false;
-
 
24146
      if (!first) sb.append(", ");
-
 
24147
      sb.append("timestamp:");
-
 
24148
      sb.append(this.timestamp);
24070
      first = false;
24149
      first = false;
24071
      sb.append(")");
24150
      sb.append(")");
24072
      return sb.toString();
24151
      return sb.toString();
24073
    }
24152
    }
24074
 
24153
 
Line 24425... Line 24504...
24425
      }
24504
      }
24426
    }
24505
    }
24427
 
24506
 
24428
  }
24507
  }
24429
 
24508
 
24430
  public static class setAlert_args implements org.apache.thrift.TBase<setAlert_args, setAlert_args._Fields>, java.io.Serializable, Cloneable   {
24509
  public static class addAlert_args implements org.apache.thrift.TBase<addAlert_args, addAlert_args._Fields>, java.io.Serializable, Cloneable   {
24431
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setAlert_args");
24510
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAlert_args");
24432
 
24511
 
24433
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
24434
    private static final org.apache.thrift.protocol.TField UNSET_FIELD_DESC = new org.apache.thrift.protocol.TField("unset", org.apache.thrift.protocol.TType.BOOL, (short)2);
-
 
24435
    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)3);
24512
    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);
24436
    private static final org.apache.thrift.protocol.TField COMMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("comment", org.apache.thrift.protocol.TType.STRING, (short)4);
24513
    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);
24437
 
24514
 
24438
    private long orderId; // required
-
 
24439
    private boolean unset; // required
-
 
24440
    private long type; // required
24515
    private long type; // required
24441
    private String comment; // required
24516
    private String description; // required
24442
 
24517
 
24443
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24518
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24444
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24519
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24445
      ORDER_ID((short)1, "orderId"),
-
 
24446
      UNSET((short)2, "unset"),
-
 
24447
      TYPE((short)3, "type"),
24520
      TYPE((short)1, "type"),
24448
      COMMENT((short)4, "comment");
24521
      DESCRIPTION((short)2, "description");
24449
 
24522
 
24450
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24523
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24451
 
24524
 
24452
      static {
24525
      static {
24453
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24526
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 24458... Line 24531...
24458
      /**
24531
      /**
24459
       * Find the _Fields constant that matches fieldId, or null if its not found.
24532
       * Find the _Fields constant that matches fieldId, or null if its not found.
24460
       */
24533
       */
24461
      public static _Fields findByThriftId(int fieldId) {
24534
      public static _Fields findByThriftId(int fieldId) {
24462
        switch(fieldId) {
24535
        switch(fieldId) {
24463
          case 1: // ORDER_ID
-
 
24464
            return ORDER_ID;
-
 
24465
          case 2: // UNSET
-
 
24466
            return UNSET;
-
 
24467
          case 3: // TYPE
24536
          case 1: // TYPE
24468
            return TYPE;
24537
            return TYPE;
24469
          case 4: // COMMENT
24538
          case 2: // DESCRIPTION
24470
            return COMMENT;
24539
            return DESCRIPTION;
24471
          default:
24540
          default:
24472
            return null;
24541
            return null;
24473
        }
24542
        }
24474
      }
24543
      }
24475
 
24544
 
Line 24506... Line 24575...
24506
        return _fieldName;
24575
        return _fieldName;
24507
      }
24576
      }
24508
    }
24577
    }
24509
 
24578
 
24510
    // isset id assignments
24579
    // isset id assignments
24511
    private static final int __ORDERID_ISSET_ID = 0;
-
 
24512
    private static final int __UNSET_ISSET_ID = 1;
-
 
24513
    private static final int __TYPE_ISSET_ID = 2;
24580
    private static final int __TYPE_ISSET_ID = 0;
24514
    private BitSet __isset_bit_vector = new BitSet(3);
24581
    private BitSet __isset_bit_vector = new BitSet(1);
24515
 
24582
 
24516
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24583
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24517
    static {
24584
    static {
24518
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24585
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24519
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
24520
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
24521
      tmpMap.put(_Fields.UNSET, new org.apache.thrift.meta_data.FieldMetaData("unset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
24522
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
24523
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24586
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24524
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24587
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24525
      tmpMap.put(_Fields.COMMENT, new org.apache.thrift.meta_data.FieldMetaData("comment", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24588
      tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24526
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
24589
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
24527
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24590
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24528
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setAlert_args.class, metaDataMap);
24591
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAlert_args.class, metaDataMap);
24529
    }
24592
    }
24530
 
24593
 
24531
    public setAlert_args() {
24594
    public addAlert_args() {
24532
    }
24595
    }
24533
 
24596
 
24534
    public setAlert_args(
24597
    public addAlert_args(
24535
      long orderId,
-
 
24536
      boolean unset,
-
 
24537
      long type,
24598
      long type,
24538
      String comment)
24599
      String description)
24539
    {
24600
    {
24540
      this();
24601
      this();
24541
      this.orderId = orderId;
-
 
24542
      setOrderIdIsSet(true);
-
 
24543
      this.unset = unset;
-
 
24544
      setUnsetIsSet(true);
-
 
24545
      this.type = type;
24602
      this.type = type;
24546
      setTypeIsSet(true);
24603
      setTypeIsSet(true);
24547
      this.comment = comment;
24604
      this.description = description;
24548
    }
24605
    }
24549
 
24606
 
24550
    /**
24607
    /**
24551
     * Performs a deep copy on <i>other</i>.
24608
     * Performs a deep copy on <i>other</i>.
24552
     */
24609
     */
24553
    public setAlert_args(setAlert_args other) {
24610
    public addAlert_args(addAlert_args other) {
24554
      __isset_bit_vector.clear();
24611
      __isset_bit_vector.clear();
24555
      __isset_bit_vector.or(other.__isset_bit_vector);
24612
      __isset_bit_vector.or(other.__isset_bit_vector);
24556
      this.orderId = other.orderId;
-
 
24557
      this.unset = other.unset;
-
 
24558
      this.type = other.type;
24613
      this.type = other.type;
24559
      if (other.isSetComment()) {
24614
      if (other.isSetDescription()) {
24560
        this.comment = other.comment;
24615
        this.description = other.description;
24561
      }
24616
      }
24562
    }
24617
    }
24563
 
24618
 
24564
    public setAlert_args deepCopy() {
24619
    public addAlert_args deepCopy() {
24565
      return new setAlert_args(this);
24620
      return new addAlert_args(this);
24566
    }
24621
    }
24567
 
24622
 
24568
    @Override
24623
    @Override
24569
    public void clear() {
24624
    public void clear() {
24570
      setOrderIdIsSet(false);
-
 
24571
      this.orderId = 0;
-
 
24572
      setUnsetIsSet(false);
-
 
24573
      this.unset = false;
-
 
24574
      setTypeIsSet(false);
24625
      setTypeIsSet(false);
24575
      this.type = 0;
24626
      this.type = 0;
24576
      this.comment = null;
24627
      this.description = null;
24577
    }
-
 
24578
 
-
 
24579
    public long getOrderId() {
-
 
24580
      return this.orderId;
-
 
24581
    }
-
 
24582
 
-
 
24583
    public void setOrderId(long orderId) {
-
 
24584
      this.orderId = orderId;
-
 
24585
      setOrderIdIsSet(true);
-
 
24586
    }
-
 
24587
 
-
 
24588
    public void unsetOrderId() {
-
 
24589
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
24590
    }
-
 
24591
 
-
 
24592
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
24593
    public boolean isSetOrderId() {
-
 
24594
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
24595
    }
-
 
24596
 
-
 
24597
    public void setOrderIdIsSet(boolean value) {
-
 
24598
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
24599
    }
-
 
24600
 
-
 
24601
    public boolean isUnset() {
-
 
24602
      return this.unset;
-
 
24603
    }
-
 
24604
 
-
 
24605
    public void setUnset(boolean unset) {
-
 
24606
      this.unset = unset;
-
 
24607
      setUnsetIsSet(true);
-
 
24608
    }
-
 
24609
 
-
 
24610
    public void unsetUnset() {
-
 
24611
      __isset_bit_vector.clear(__UNSET_ISSET_ID);
-
 
24612
    }
-
 
24613
 
-
 
24614
    /** Returns true if field unset is set (has been assigned a value) and false otherwise */
-
 
24615
    public boolean isSetUnset() {
-
 
24616
      return __isset_bit_vector.get(__UNSET_ISSET_ID);
-
 
24617
    }
-
 
24618
 
-
 
24619
    public void setUnsetIsSet(boolean value) {
-
 
24620
      __isset_bit_vector.set(__UNSET_ISSET_ID, value);
-
 
24621
    }
24628
    }
24622
 
24629
 
24623
    public long getType() {
24630
    public long getType() {
24624
      return this.type;
24631
      return this.type;
24625
    }
24632
    }
Line 24640... Line 24647...
24640
 
24647
 
24641
    public void setTypeIsSet(boolean value) {
24648
    public void setTypeIsSet(boolean value) {
24642
      __isset_bit_vector.set(__TYPE_ISSET_ID, value);
24649
      __isset_bit_vector.set(__TYPE_ISSET_ID, value);
24643
    }
24650
    }
24644
 
24651
 
24645
    public String getComment() {
24652
    public String getDescription() {
24646
      return this.comment;
24653
      return this.description;
24647
    }
24654
    }
24648
 
24655
 
24649
    public void setComment(String comment) {
24656
    public void setDescription(String description) {
24650
      this.comment = comment;
24657
      this.description = description;
24651
    }
24658
    }
24652
 
24659
 
24653
    public void unsetComment() {
24660
    public void unsetDescription() {
24654
      this.comment = null;
24661
      this.description = null;
24655
    }
24662
    }
24656
 
24663
 
24657
    /** Returns true if field comment is set (has been assigned a value) and false otherwise */
24664
    /** Returns true if field description is set (has been assigned a value) and false otherwise */
24658
    public boolean isSetComment() {
24665
    public boolean isSetDescription() {
24659
      return this.comment != null;
24666
      return this.description != null;
24660
    }
24667
    }
24661
 
24668
 
24662
    public void setCommentIsSet(boolean value) {
24669
    public void setDescriptionIsSet(boolean value) {
24663
      if (!value) {
24670
      if (!value) {
24664
        this.comment = null;
24671
        this.description = null;
24665
      }
24672
      }
24666
    }
24673
    }
24667
 
24674
 
24668
    public void setFieldValue(_Fields field, Object value) {
24675
    public void setFieldValue(_Fields field, Object value) {
24669
      switch (field) {
24676
      switch (field) {
24670
      case ORDER_ID:
-
 
24671
        if (value == null) {
-
 
24672
          unsetOrderId();
-
 
24673
        } else {
-
 
24674
          setOrderId((Long)value);
-
 
24675
        }
-
 
24676
        break;
-
 
24677
 
-
 
24678
      case UNSET:
-
 
24679
        if (value == null) {
-
 
24680
          unsetUnset();
-
 
24681
        } else {
-
 
24682
          setUnset((Boolean)value);
-
 
24683
        }
-
 
24684
        break;
-
 
24685
 
-
 
24686
      case TYPE:
24677
      case TYPE:
24687
        if (value == null) {
24678
        if (value == null) {
24688
          unsetType();
24679
          unsetType();
24689
        } else {
24680
        } else {
24690
          setType((Long)value);
24681
          setType((Long)value);
24691
        }
24682
        }
24692
        break;
24683
        break;
24693
 
24684
 
24694
      case COMMENT:
24685
      case DESCRIPTION:
24695
        if (value == null) {
24686
        if (value == null) {
24696
          unsetComment();
24687
          unsetDescription();
24697
        } else {
24688
        } else {
24698
          setComment((String)value);
24689
          setDescription((String)value);
24699
        }
24690
        }
24700
        break;
24691
        break;
24701
 
24692
 
24702
      }
24693
      }
24703
    }
24694
    }
24704
 
24695
 
24705
    public Object getFieldValue(_Fields field) {
24696
    public Object getFieldValue(_Fields field) {
24706
      switch (field) {
24697
      switch (field) {
24707
      case ORDER_ID:
-
 
24708
        return Long.valueOf(getOrderId());
-
 
24709
 
-
 
24710
      case UNSET:
-
 
24711
        return Boolean.valueOf(isUnset());
-
 
24712
 
-
 
24713
      case TYPE:
24698
      case TYPE:
24714
        return Long.valueOf(getType());
24699
        return Long.valueOf(getType());
24715
 
24700
 
24716
      case COMMENT:
24701
      case DESCRIPTION:
24717
        return getComment();
24702
        return getDescription();
24718
 
24703
 
24719
      }
24704
      }
24720
      throw new IllegalStateException();
24705
      throw new IllegalStateException();
24721
    }
24706
    }
24722
 
24707
 
Line 24725... Line 24710...
24725
      if (field == null) {
24710
      if (field == null) {
24726
        throw new IllegalArgumentException();
24711
        throw new IllegalArgumentException();
24727
      }
24712
      }
24728
 
24713
 
24729
      switch (field) {
24714
      switch (field) {
24730
      case ORDER_ID:
-
 
24731
        return isSetOrderId();
-
 
24732
      case UNSET:
-
 
24733
        return isSetUnset();
-
 
24734
      case TYPE:
24715
      case TYPE:
24735
        return isSetType();
24716
        return isSetType();
24736
      case COMMENT:
24717
      case DESCRIPTION:
24737
        return isSetComment();
24718
        return isSetDescription();
24738
      }
24719
      }
24739
      throw new IllegalStateException();
24720
      throw new IllegalStateException();
24740
    }
24721
    }
24741
 
24722
 
24742
    @Override
24723
    @Override
24743
    public boolean equals(Object that) {
24724
    public boolean equals(Object that) {
24744
      if (that == null)
24725
      if (that == null)
24745
        return false;
24726
        return false;
24746
      if (that instanceof setAlert_args)
24727
      if (that instanceof addAlert_args)
24747
        return this.equals((setAlert_args)that);
24728
        return this.equals((addAlert_args)that);
24748
      return false;
24729
      return false;
24749
    }
24730
    }
24750
 
24731
 
24751
    public boolean equals(setAlert_args that) {
24732
    public boolean equals(addAlert_args that) {
24752
      if (that == null)
24733
      if (that == null)
24753
        return false;
24734
        return false;
24754
 
24735
 
24755
      boolean this_present_orderId = true;
-
 
24756
      boolean that_present_orderId = true;
-
 
24757
      if (this_present_orderId || that_present_orderId) {
-
 
24758
        if (!(this_present_orderId && that_present_orderId))
-
 
24759
          return false;
-
 
24760
        if (this.orderId != that.orderId)
-
 
24761
          return false;
-
 
24762
      }
-
 
24763
 
-
 
24764
      boolean this_present_unset = true;
-
 
24765
      boolean that_present_unset = true;
-
 
24766
      if (this_present_unset || that_present_unset) {
-
 
24767
        if (!(this_present_unset && that_present_unset))
-
 
24768
          return false;
-
 
24769
        if (this.unset != that.unset)
-
 
24770
          return false;
-
 
24771
      }
-
 
24772
 
-
 
24773
      boolean this_present_type = true;
24736
      boolean this_present_type = true;
24774
      boolean that_present_type = true;
24737
      boolean that_present_type = true;
24775
      if (this_present_type || that_present_type) {
24738
      if (this_present_type || that_present_type) {
24776
        if (!(this_present_type && that_present_type))
24739
        if (!(this_present_type && that_present_type))
24777
          return false;
24740
          return false;
24778
        if (this.type != that.type)
24741
        if (this.type != that.type)
24779
          return false;
24742
          return false;
24780
      }
24743
      }
24781
 
24744
 
24782
      boolean this_present_comment = true && this.isSetComment();
24745
      boolean this_present_description = true && this.isSetDescription();
24783
      boolean that_present_comment = true && that.isSetComment();
24746
      boolean that_present_description = true && that.isSetDescription();
24784
      if (this_present_comment || that_present_comment) {
24747
      if (this_present_description || that_present_description) {
24785
        if (!(this_present_comment && that_present_comment))
24748
        if (!(this_present_description && that_present_description))
24786
          return false;
24749
          return false;
24787
        if (!this.comment.equals(that.comment))
24750
        if (!this.description.equals(that.description))
24788
          return false;
24751
          return false;
24789
      }
24752
      }
24790
 
24753
 
24791
      return true;
24754
      return true;
24792
    }
24755
    }
Line 24794... Line 24757...
24794
    @Override
24757
    @Override
24795
    public int hashCode() {
24758
    public int hashCode() {
24796
      return 0;
24759
      return 0;
24797
    }
24760
    }
24798
 
24761
 
24799
    public int compareTo(setAlert_args other) {
24762
    public int compareTo(addAlert_args other) {
24800
      if (!getClass().equals(other.getClass())) {
24763
      if (!getClass().equals(other.getClass())) {
24801
        return getClass().getName().compareTo(other.getClass().getName());
24764
        return getClass().getName().compareTo(other.getClass().getName());
24802
      }
24765
      }
24803
 
24766
 
24804
      int lastComparison = 0;
24767
      int lastComparison = 0;
24805
      setAlert_args typedOther = (setAlert_args)other;
24768
      addAlert_args typedOther = (addAlert_args)other;
24806
 
24769
 
24807
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
24808
      if (lastComparison != 0) {
-
 
24809
        return lastComparison;
-
 
24810
      }
-
 
24811
      if (isSetOrderId()) {
-
 
24812
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
24813
        if (lastComparison != 0) {
-
 
24814
          return lastComparison;
-
 
24815
        }
-
 
24816
      }
-
 
24817
      lastComparison = Boolean.valueOf(isSetUnset()).compareTo(typedOther.isSetUnset());
-
 
24818
      if (lastComparison != 0) {
-
 
24819
        return lastComparison;
-
 
24820
      }
-
 
24821
      if (isSetUnset()) {
-
 
24822
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unset, typedOther.unset);
-
 
24823
        if (lastComparison != 0) {
-
 
24824
          return lastComparison;
-
 
24825
        }
-
 
24826
      }
-
 
24827
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
24770
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
24828
      if (lastComparison != 0) {
24771
      if (lastComparison != 0) {
24829
        return lastComparison;
24772
        return lastComparison;
24830
      }
24773
      }
24831
      if (isSetType()) {
24774
      if (isSetType()) {
24832
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
24775
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
24833
        if (lastComparison != 0) {
24776
        if (lastComparison != 0) {
24834
          return lastComparison;
24777
          return lastComparison;
24835
        }
24778
        }
24836
      }
24779
      }
24837
      lastComparison = Boolean.valueOf(isSetComment()).compareTo(typedOther.isSetComment());
24780
      lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
24838
      if (lastComparison != 0) {
24781
      if (lastComparison != 0) {
24839
        return lastComparison;
24782
        return lastComparison;
24840
      }
24783
      }
24841
      if (isSetComment()) {
24784
      if (isSetDescription()) {
24842
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comment, typedOther.comment);
24785
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
24843
        if (lastComparison != 0) {
24786
        if (lastComparison != 0) {
24844
          return lastComparison;
24787
          return lastComparison;
24845
        }
24788
        }
24846
      }
24789
      }
24847
      return 0;
24790
      return 0;
Line 24859... Line 24802...
24859
        field = iprot.readFieldBegin();
24802
        field = iprot.readFieldBegin();
24860
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24803
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24861
          break;
24804
          break;
24862
        }
24805
        }
24863
        switch (field.id) {
24806
        switch (field.id) {
24864
          case 1: // ORDER_ID
-
 
24865
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
24866
              this.orderId = iprot.readI64();
-
 
24867
              setOrderIdIsSet(true);
-
 
24868
            } else { 
-
 
24869
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
24870
            }
-
 
24871
            break;
-
 
24872
          case 2: // UNSET
-
 
24873
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
24874
              this.unset = iprot.readBool();
-
 
24875
              setUnsetIsSet(true);
-
 
24876
            } else { 
-
 
24877
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
24878
            }
-
 
24879
            break;
-
 
24880
          case 3: // TYPE
24807
          case 1: // TYPE
24881
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24808
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24882
              this.type = iprot.readI64();
24809
              this.type = iprot.readI64();
24883
              setTypeIsSet(true);
24810
              setTypeIsSet(true);
24884
            } else { 
24811
            } else { 
24885
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24812
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24886
            }
24813
            }
24887
            break;
24814
            break;
24888
          case 4: // COMMENT
24815
          case 2: // DESCRIPTION
24889
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
24816
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
24890
              this.comment = iprot.readString();
24817
              this.description = iprot.readString();
24891
            } else { 
24818
            } else { 
24892
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24819
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24893
            }
24820
            }
24894
            break;
24821
            break;
24895
          default:
24822
          default:
Line 24903... Line 24830...
24903
 
24830
 
24904
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24831
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24905
      validate();
24832
      validate();
24906
 
24833
 
24907
      oprot.writeStructBegin(STRUCT_DESC);
24834
      oprot.writeStructBegin(STRUCT_DESC);
24908
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
24909
      oprot.writeI64(this.orderId);
-
 
24910
      oprot.writeFieldEnd();
-
 
24911
      oprot.writeFieldBegin(UNSET_FIELD_DESC);
-
 
24912
      oprot.writeBool(this.unset);
-
 
24913
      oprot.writeFieldEnd();
-
 
24914
      oprot.writeFieldBegin(TYPE_FIELD_DESC);
24835
      oprot.writeFieldBegin(TYPE_FIELD_DESC);
24915
      oprot.writeI64(this.type);
24836
      oprot.writeI64(this.type);
24916
      oprot.writeFieldEnd();
24837
      oprot.writeFieldEnd();
24917
      if (this.comment != null) {
24838
      if (this.description != null) {
24918
        oprot.writeFieldBegin(COMMENT_FIELD_DESC);
24839
        oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
24919
        oprot.writeString(this.comment);
24840
        oprot.writeString(this.description);
24920
        oprot.writeFieldEnd();
24841
        oprot.writeFieldEnd();
24921
      }
24842
      }
24922
      oprot.writeFieldStop();
24843
      oprot.writeFieldStop();
24923
      oprot.writeStructEnd();
24844
      oprot.writeStructEnd();
24924
    }
24845
    }
24925
 
24846
 
24926
    @Override
24847
    @Override
24927
    public String toString() {
24848
    public String toString() {
24928
      StringBuilder sb = new StringBuilder("setAlert_args(");
24849
      StringBuilder sb = new StringBuilder("addAlert_args(");
24929
      boolean first = true;
24850
      boolean first = true;
24930
 
24851
 
24931
      sb.append("orderId:");
-
 
24932
      sb.append(this.orderId);
-
 
24933
      first = false;
-
 
24934
      if (!first) sb.append(", ");
-
 
24935
      sb.append("unset:");
-
 
24936
      sb.append(this.unset);
-
 
24937
      first = false;
-
 
24938
      if (!first) sb.append(", ");
-
 
24939
      sb.append("type:");
24852
      sb.append("type:");
24940
      sb.append(this.type);
24853
      sb.append(this.type);
24941
      first = false;
24854
      first = false;
24942
      if (!first) sb.append(", ");
24855
      if (!first) sb.append(", ");
24943
      sb.append("comment:");
24856
      sb.append("description:");
24944
      if (this.comment == null) {
24857
      if (this.description == null) {
24945
        sb.append("null");
24858
        sb.append("null");
24946
      } else {
24859
      } else {
24947
        sb.append(this.comment);
24860
        sb.append(this.description);
24948
      }
24861
      }
24949
      first = false;
24862
      first = false;
24950
      sb.append(")");
24863
      sb.append(")");
24951
      return sb.toString();
24864
      return sb.toString();
24952
    }
24865
    }
Line 24973... Line 24886...
24973
      }
24886
      }
24974
    }
24887
    }
24975
 
24888
 
24976
  }
24889
  }
24977
 
24890
 
24978
  public static class setAlert_result implements org.apache.thrift.TBase<setAlert_result, setAlert_result._Fields>, java.io.Serializable, Cloneable   {
24891
  public static class addAlert_result implements org.apache.thrift.TBase<addAlert_result, addAlert_result._Fields>, java.io.Serializable, Cloneable   {
24979
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setAlert_result");
24892
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAlert_result");
24980
 
24893
 
24981
 
24894
 
24982
 
24895
 
24983
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24896
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24984
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24897
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
Line 25037... Line 24950...
25037
    }
24950
    }
25038
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24951
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25039
    static {
24952
    static {
25040
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24953
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25041
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24954
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25042
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setAlert_result.class, metaDataMap);
24955
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAlert_result.class, metaDataMap);
25043
    }
24956
    }
25044
 
24957
 
25045
    public setAlert_result() {
24958
    public addAlert_result() {
25046
    }
24959
    }
25047
 
24960
 
25048
    /**
24961
    /**
25049
     * Performs a deep copy on <i>other</i>.
24962
     * Performs a deep copy on <i>other</i>.
25050
     */
24963
     */
25051
    public setAlert_result(setAlert_result other) {
24964
    public addAlert_result(addAlert_result other) {
25052
    }
24965
    }
25053
 
24966
 
25054
    public setAlert_result deepCopy() {
24967
    public addAlert_result deepCopy() {
25055
      return new setAlert_result(this);
24968
      return new addAlert_result(this);
25056
    }
24969
    }
25057
 
24970
 
25058
    @Override
24971
    @Override
25059
    public void clear() {
24972
    public void clear() {
25060
    }
24973
    }
Line 25083... Line 24996...
25083
 
24996
 
25084
    @Override
24997
    @Override
25085
    public boolean equals(Object that) {
24998
    public boolean equals(Object that) {
25086
      if (that == null)
24999
      if (that == null)
25087
        return false;
25000
        return false;
25088
      if (that instanceof setAlert_result)
25001
      if (that instanceof addAlert_result)
25089
        return this.equals((setAlert_result)that);
25002
        return this.equals((addAlert_result)that);
25090
      return false;
25003
      return false;
25091
    }
25004
    }
25092
 
25005
 
25093
    public boolean equals(setAlert_result that) {
25006
    public boolean equals(addAlert_result that) {
25094
      if (that == null)
25007
      if (that == null)
25095
        return false;
25008
        return false;
25096
 
25009
 
25097
      return true;
25010
      return true;
25098
    }
25011
    }
Line 25100... Line 25013...
25100
    @Override
25013
    @Override
25101
    public int hashCode() {
25014
    public int hashCode() {
25102
      return 0;
25015
      return 0;
25103
    }
25016
    }
25104
 
25017
 
25105
    public int compareTo(setAlert_result other) {
25018
    public int compareTo(addAlert_result other) {
25106
      if (!getClass().equals(other.getClass())) {
25019
      if (!getClass().equals(other.getClass())) {
25107
        return getClass().getName().compareTo(other.getClass().getName());
25020
        return getClass().getName().compareTo(other.getClass().getName());
25108
      }
25021
      }
25109
 
25022
 
25110
      int lastComparison = 0;
25023
      int lastComparison = 0;
25111
      setAlert_result typedOther = (setAlert_result)other;
25024
      addAlert_result typedOther = (addAlert_result)other;
25112
 
25025
 
25113
      return 0;
25026
      return 0;
25114
    }
25027
    }
25115
 
25028
 
25116
    public _Fields fieldForId(int fieldId) {
25029
    public _Fields fieldForId(int fieldId) {
Line 25143... Line 25056...
25143
      oprot.writeStructEnd();
25056
      oprot.writeStructEnd();
25144
    }
25057
    }
25145
 
25058
 
25146
    @Override
25059
    @Override
25147
    public String toString() {
25060
    public String toString() {
25148
      StringBuilder sb = new StringBuilder("setAlert_result(");
25061
      StringBuilder sb = new StringBuilder("addAlert_result(");
25149
      boolean first = true;
25062
      boolean first = true;
25150
 
25063
 
25151
      sb.append(")");
25064
      sb.append(")");
25152
      return sb.toString();
25065
      return sb.toString();
25153
    }
25066
    }
Line 27595... Line 27508...
27595
      }
27508
      }
27596
    }
27509
    }
27597
 
27510
 
27598
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27511
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27599
      try {
27512
      try {
27600
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
27601
        __isset_bit_vector = new BitSet(1);
-
 
27602
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27513
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27603
      } catch (org.apache.thrift.TException te) {
27514
      } catch (org.apache.thrift.TException te) {
27604
        throw new java.io.IOException(te);
27515
        throw new java.io.IOException(te);
27605
      }
27516
      }
27606
    }
27517
    }
Line 30923... Line 30834...
30923
      }
30834
      }
30924
    }
30835
    }
30925
 
30836
 
30926
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30837
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30927
      try {
30838
      try {
-
 
30839
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
30840
        __isset_bit_vector = new BitSet(1);
30928
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30841
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30929
      } catch (org.apache.thrift.TException te) {
30842
      } catch (org.apache.thrift.TException te) {
30930
        throw new java.io.IOException(te);
30843
        throw new java.io.IOException(te);
30931
      }
30844
      }
30932
    }
30845
    }