Subversion Repositories SmartDukaan

Rev

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

Rev 4065 Rev 4133
Line 39... Line 39...
39
    public boolean enqueueTransactionInfoEmail(long transactionId) throws TransactionServiceException, org.apache.thrift.TException;
39
    public boolean enqueueTransactionInfoEmail(long transactionId) throws TransactionServiceException, org.apache.thrift.TException;
40
 
40
 
41
    public List<Order> getAllOrders(OrderStatus status, long from_date, long to_date, long warehouse_id) throws TransactionServiceException, org.apache.thrift.TException;
41
    public List<Order> getAllOrders(OrderStatus status, long from_date, long to_date, long warehouse_id) throws TransactionServiceException, org.apache.thrift.TException;
42
 
42
 
43
    /**
43
    /**
-
 
44
     * Returns at most 'limit' orders with the given statuses for the given warehouse starting from the given offset.
-
 
45
     * Pass the status as null and the limit as 0 to ignore them.
-
 
46
     * 
-
 
47
     * @param statuses
-
 
48
     * @param offset
-
 
49
     * @param limit
-
 
50
     * @param warehouse_id
-
 
51
     */
-
 
52
    public List<Order> getOrdersInBatch(List<OrderStatus> statuses, long offset, long limit, long warehouse_id) throws TransactionServiceException, org.apache.thrift.TException;
-
 
53
 
-
 
54
    /**
-
 
55
     * Returns the count of orders with the given statuses assigned to the given warehouse.
-
 
56
     * 
-
 
57
     * @param statuses
-
 
58
     * @param warehouseId
-
 
59
     */
-
 
60
    public int getOrderCount(List<OrderStatus> statuses, long warehouseId) throws TransactionServiceException, org.apache.thrift.TException;
-
 
61
 
-
 
62
    /**
44
     * Returns orders within a range of their billing dates
63
     * Returns orders within a range of their billing dates
45
     * 
64
     * 
46
     * @param status
65
     * @param status
47
     * @param start_billing_date
66
     * @param start_billing_date
48
     * @param end_billing_date
67
     * @param end_billing_date
Line 506... Line 525...
506
 
525
 
507
    public void enqueueTransactionInfoEmail(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.enqueueTransactionInfoEmail_call> resultHandler) throws org.apache.thrift.TException;
526
    public void enqueueTransactionInfoEmail(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.enqueueTransactionInfoEmail_call> resultHandler) throws org.apache.thrift.TException;
508
 
527
 
509
    public void getAllOrders(OrderStatus status, long from_date, long to_date, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllOrders_call> resultHandler) throws org.apache.thrift.TException;
528
    public void getAllOrders(OrderStatus status, long from_date, long to_date, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllOrders_call> resultHandler) throws org.apache.thrift.TException;
510
 
529
 
-
 
530
    public void getOrdersInBatch(List<OrderStatus> statuses, long offset, long limit, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersInBatch_call> resultHandler) throws org.apache.thrift.TException;
-
 
531
 
-
 
532
    public void getOrderCount(List<OrderStatus> statuses, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderCount_call> resultHandler) throws org.apache.thrift.TException;
-
 
533
 
511
    public void getOrdersByBillingDate(OrderStatus status, long start_billing_date, long end_billing_date, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersByBillingDate_call> resultHandler) throws org.apache.thrift.TException;
534
    public void getOrdersByBillingDate(OrderStatus status, long start_billing_date, long end_billing_date, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersByBillingDate_call> resultHandler) throws org.apache.thrift.TException;
512
 
535
 
513
    public void getOrdersByShippingDate(long fromShippingDate, long toShippingDate, long providerId, long warehouseId, boolean cod, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersByShippingDate_call> resultHandler) throws org.apache.thrift.TException;
536
    public void getOrdersByShippingDate(long fromShippingDate, long toShippingDate, long providerId, long warehouseId, boolean cod, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersByShippingDate_call> resultHandler) throws org.apache.thrift.TException;
514
 
537
 
515
    public void getReturnableOrdersForCustomer(long customer_id, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnableOrdersForCustomer_call> resultHandler) throws org.apache.thrift.TException;
538
    public void getReturnableOrdersForCustomer(long customer_id, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnableOrdersForCustomer_call> resultHandler) throws org.apache.thrift.TException;
Line 844... Line 867...
844
        throw result.ex;
867
        throw result.ex;
845
      }
868
      }
846
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllOrders failed: unknown result");
869
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllOrders failed: unknown result");
847
    }
870
    }
848
 
871
 
-
 
872
    public List<Order> getOrdersInBatch(List<OrderStatus> statuses, long offset, long limit, long warehouse_id) throws TransactionServiceException, org.apache.thrift.TException
-
 
873
    {
-
 
874
      send_getOrdersInBatch(statuses, offset, limit, warehouse_id);
-
 
875
      return recv_getOrdersInBatch();
-
 
876
    }
-
 
877
 
-
 
878
    public void send_getOrdersInBatch(List<OrderStatus> statuses, long offset, long limit, long warehouse_id) throws org.apache.thrift.TException
-
 
879
    {
-
 
880
      getOrdersInBatch_args args = new getOrdersInBatch_args();
-
 
881
      args.setStatuses(statuses);
-
 
882
      args.setOffset(offset);
-
 
883
      args.setLimit(limit);
-
 
884
      args.setWarehouse_id(warehouse_id);
-
 
885
      sendBase("getOrdersInBatch", args);
-
 
886
    }
-
 
887
 
-
 
888
    public List<Order> recv_getOrdersInBatch() throws TransactionServiceException, org.apache.thrift.TException
-
 
889
    {
-
 
890
      getOrdersInBatch_result result = new getOrdersInBatch_result();
-
 
891
      receiveBase(result, "getOrdersInBatch");
-
 
892
      if (result.isSetSuccess()) {
-
 
893
        return result.success;
-
 
894
      }
-
 
895
      if (result.ex != null) {
-
 
896
        throw result.ex;
-
 
897
      }
-
 
898
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersInBatch failed: unknown result");
-
 
899
    }
-
 
900
 
-
 
901
    public int getOrderCount(List<OrderStatus> statuses, long warehouseId) throws TransactionServiceException, org.apache.thrift.TException
-
 
902
    {
-
 
903
      send_getOrderCount(statuses, warehouseId);
-
 
904
      return recv_getOrderCount();
-
 
905
    }
-
 
906
 
-
 
907
    public void send_getOrderCount(List<OrderStatus> statuses, long warehouseId) throws org.apache.thrift.TException
-
 
908
    {
-
 
909
      getOrderCount_args args = new getOrderCount_args();
-
 
910
      args.setStatuses(statuses);
-
 
911
      args.setWarehouseId(warehouseId);
-
 
912
      sendBase("getOrderCount", args);
-
 
913
    }
-
 
914
 
-
 
915
    public int recv_getOrderCount() throws TransactionServiceException, org.apache.thrift.TException
-
 
916
    {
-
 
917
      getOrderCount_result result = new getOrderCount_result();
-
 
918
      receiveBase(result, "getOrderCount");
-
 
919
      if (result.isSetSuccess()) {
-
 
920
        return result.success;
-
 
921
      }
-
 
922
      if (result.ex != null) {
-
 
923
        throw result.ex;
-
 
924
      }
-
 
925
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderCount failed: unknown result");
-
 
926
    }
-
 
927
 
849
    public List<Order> getOrdersByBillingDate(OrderStatus status, long start_billing_date, long end_billing_date, long warehouse_id) throws TransactionServiceException, org.apache.thrift.TException
928
    public List<Order> getOrdersByBillingDate(OrderStatus status, long start_billing_date, long end_billing_date, long warehouse_id) throws TransactionServiceException, org.apache.thrift.TException
850
    {
929
    {
851
      send_getOrdersByBillingDate(status, start_billing_date, end_billing_date, warehouse_id);
930
      send_getOrdersByBillingDate(status, start_billing_date, end_billing_date, warehouse_id);
852
      return recv_getOrdersByBillingDate();
931
      return recv_getOrdersByBillingDate();
853
    }
932
    }
Line 2434... Line 2513...
2434
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2513
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2435
        return (new Client(prot)).recv_getAllOrders();
2514
        return (new Client(prot)).recv_getAllOrders();
2436
      }
2515
      }
2437
    }
2516
    }
2438
 
2517
 
-
 
2518
    public void getOrdersInBatch(List<OrderStatus> statuses, long offset, long limit, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getOrdersInBatch_call> resultHandler) throws org.apache.thrift.TException {
-
 
2519
      checkReady();
-
 
2520
      getOrdersInBatch_call method_call = new getOrdersInBatch_call(statuses, offset, limit, warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
-
 
2521
      this.___currentMethod = method_call;
-
 
2522
      ___manager.call(method_call);
-
 
2523
    }
-
 
2524
 
-
 
2525
    public static class getOrdersInBatch_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2526
      private List<OrderStatus> statuses;
-
 
2527
      private long offset;
-
 
2528
      private long limit;
-
 
2529
      private long warehouse_id;
-
 
2530
      public getOrdersInBatch_call(List<OrderStatus> statuses, long offset, long limit, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getOrdersInBatch_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 {
-
 
2531
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2532
        this.statuses = statuses;
-
 
2533
        this.offset = offset;
-
 
2534
        this.limit = limit;
-
 
2535
        this.warehouse_id = warehouse_id;
-
 
2536
      }
-
 
2537
 
-
 
2538
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2539
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersInBatch", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2540
        getOrdersInBatch_args args = new getOrdersInBatch_args();
-
 
2541
        args.setStatuses(statuses);
-
 
2542
        args.setOffset(offset);
-
 
2543
        args.setLimit(limit);
-
 
2544
        args.setWarehouse_id(warehouse_id);
-
 
2545
        args.write(prot);
-
 
2546
        prot.writeMessageEnd();
-
 
2547
      }
-
 
2548
 
-
 
2549
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
2550
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2551
          throw new IllegalStateException("Method call not finished!");
-
 
2552
        }
-
 
2553
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2554
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2555
        return (new Client(prot)).recv_getOrdersInBatch();
-
 
2556
      }
-
 
2557
    }
-
 
2558
 
-
 
2559
    public void getOrderCount(List<OrderStatus> statuses, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getOrderCount_call> resultHandler) throws org.apache.thrift.TException {
-
 
2560
      checkReady();
-
 
2561
      getOrderCount_call method_call = new getOrderCount_call(statuses, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
-
 
2562
      this.___currentMethod = method_call;
-
 
2563
      ___manager.call(method_call);
-
 
2564
    }
-
 
2565
 
-
 
2566
    public static class getOrderCount_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2567
      private List<OrderStatus> statuses;
-
 
2568
      private long warehouseId;
-
 
2569
      public getOrderCount_call(List<OrderStatus> statuses, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getOrderCount_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 {
-
 
2570
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2571
        this.statuses = statuses;
-
 
2572
        this.warehouseId = warehouseId;
-
 
2573
      }
-
 
2574
 
-
 
2575
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2576
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2577
        getOrderCount_args args = new getOrderCount_args();
-
 
2578
        args.setStatuses(statuses);
-
 
2579
        args.setWarehouseId(warehouseId);
-
 
2580
        args.write(prot);
-
 
2581
        prot.writeMessageEnd();
-
 
2582
      }
-
 
2583
 
-
 
2584
      public int getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
2585
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2586
          throw new IllegalStateException("Method call not finished!");
-
 
2587
        }
-
 
2588
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2589
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2590
        return (new Client(prot)).recv_getOrderCount();
-
 
2591
      }
-
 
2592
    }
-
 
2593
 
2439
    public void getOrdersByBillingDate(OrderStatus status, long start_billing_date, long end_billing_date, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getOrdersByBillingDate_call> resultHandler) throws org.apache.thrift.TException {
2594
    public void getOrdersByBillingDate(OrderStatus status, long start_billing_date, long end_billing_date, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getOrdersByBillingDate_call> resultHandler) throws org.apache.thrift.TException {
2440
      checkReady();
2595
      checkReady();
2441
      getOrdersByBillingDate_call method_call = new getOrdersByBillingDate_call(status, start_billing_date, end_billing_date, warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
2596
      getOrdersByBillingDate_call method_call = new getOrdersByBillingDate_call(status, start_billing_date, end_billing_date, warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
2442
      this.___currentMethod = method_call;
2597
      this.___currentMethod = method_call;
2443
      ___manager.call(method_call);
2598
      ___manager.call(method_call);
Line 4193... Line 4348...
4193
      processMap.put("getTransactionsForShoppingCartId", new getTransactionsForShoppingCartId());
4348
      processMap.put("getTransactionsForShoppingCartId", new getTransactionsForShoppingCartId());
4194
      processMap.put("getTransactionStatus", new getTransactionStatus());
4349
      processMap.put("getTransactionStatus", new getTransactionStatus());
4195
      processMap.put("changeTransactionStatus", new changeTransactionStatus());
4350
      processMap.put("changeTransactionStatus", new changeTransactionStatus());
4196
      processMap.put("enqueueTransactionInfoEmail", new enqueueTransactionInfoEmail());
4351
      processMap.put("enqueueTransactionInfoEmail", new enqueueTransactionInfoEmail());
4197
      processMap.put("getAllOrders", new getAllOrders());
4352
      processMap.put("getAllOrders", new getAllOrders());
-
 
4353
      processMap.put("getOrdersInBatch", new getOrdersInBatch());
-
 
4354
      processMap.put("getOrderCount", new getOrderCount());
4198
      processMap.put("getOrdersByBillingDate", new getOrdersByBillingDate());
4355
      processMap.put("getOrdersByBillingDate", new getOrdersByBillingDate());
4199
      processMap.put("getOrdersByShippingDate", new getOrdersByShippingDate());
4356
      processMap.put("getOrdersByShippingDate", new getOrdersByShippingDate());
4200
      processMap.put("getReturnableOrdersForCustomer", new getReturnableOrdersForCustomer());
4357
      processMap.put("getReturnableOrdersForCustomer", new getReturnableOrdersForCustomer());
4201
      processMap.put("getCancellableOrdersForCustomer", new getCancellableOrdersForCustomer());
4358
      processMap.put("getCancellableOrdersForCustomer", new getCancellableOrdersForCustomer());
4202
      processMap.put("changeOrderStatus", new changeOrderStatus());
4359
      processMap.put("changeOrderStatus", new changeOrderStatus());
Line 4409... Line 4566...
4409
        }
4566
        }
4410
        return result;
4567
        return result;
4411
      }
4568
      }
4412
    }
4569
    }
4413
 
4570
 
-
 
4571
    private static class getOrdersInBatch<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersInBatch_args> {
-
 
4572
      public getOrdersInBatch() {
-
 
4573
        super("getOrdersInBatch");
-
 
4574
      }
-
 
4575
 
-
 
4576
      protected getOrdersInBatch_args getEmptyArgsInstance() {
-
 
4577
        return new getOrdersInBatch_args();
-
 
4578
      }
-
 
4579
 
-
 
4580
      protected getOrdersInBatch_result getResult(I iface, getOrdersInBatch_args args) throws org.apache.thrift.TException {
-
 
4581
        getOrdersInBatch_result result = new getOrdersInBatch_result();
-
 
4582
        try {
-
 
4583
          result.success = iface.getOrdersInBatch(args.statuses, args.offset, args.limit, args.warehouse_id);
-
 
4584
        } catch (TransactionServiceException ex) {
-
 
4585
          result.ex = ex;
-
 
4586
        }
-
 
4587
        return result;
-
 
4588
      }
-
 
4589
    }
-
 
4590
 
-
 
4591
    private static class getOrderCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderCount_args> {
-
 
4592
      public getOrderCount() {
-
 
4593
        super("getOrderCount");
-
 
4594
      }
-
 
4595
 
-
 
4596
      protected getOrderCount_args getEmptyArgsInstance() {
-
 
4597
        return new getOrderCount_args();
-
 
4598
      }
-
 
4599
 
-
 
4600
      protected getOrderCount_result getResult(I iface, getOrderCount_args args) throws org.apache.thrift.TException {
-
 
4601
        getOrderCount_result result = new getOrderCount_result();
-
 
4602
        try {
-
 
4603
          result.success = iface.getOrderCount(args.statuses, args.warehouseId);
-
 
4604
          result.setSuccessIsSet(true);
-
 
4605
        } catch (TransactionServiceException ex) {
-
 
4606
          result.ex = ex;
-
 
4607
        }
-
 
4608
        return result;
-
 
4609
      }
-
 
4610
    }
-
 
4611
 
4414
    private static class getOrdersByBillingDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersByBillingDate_args> {
4612
    private static class getOrdersByBillingDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersByBillingDate_args> {
4415
      public getOrdersByBillingDate() {
4613
      public getOrdersByBillingDate() {
4416
        super("getOrdersByBillingDate");
4614
        super("getOrdersByBillingDate");
4417
      }
4615
      }
4418
 
4616
 
Line 11631... Line 11829...
11631
      }
11829
      }
11632
    }
11830
    }
11633
 
11831
 
11634
  }
11832
  }
11635
 
11833
 
-
 
11834
  public static class getOrdersInBatch_args implements org.apache.thrift.TBase<getOrdersInBatch_args, getOrdersInBatch_args._Fields>, java.io.Serializable, Cloneable   {
-
 
11835
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersInBatch_args");
-
 
11836
 
-
 
11837
    private static final org.apache.thrift.protocol.TField STATUSES_FIELD_DESC = new org.apache.thrift.protocol.TField("statuses", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
11838
    private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
11839
    private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
11840
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouse_id", org.apache.thrift.protocol.TType.I64, (short)4);
-
 
11841
 
-
 
11842
    private List<OrderStatus> statuses; // required
-
 
11843
    private long offset; // required
-
 
11844
    private long limit; // required
-
 
11845
    private long warehouse_id; // required
-
 
11846
 
-
 
11847
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
11848
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
11849
      STATUSES((short)1, "statuses"),
-
 
11850
      OFFSET((short)2, "offset"),
-
 
11851
      LIMIT((short)3, "limit"),
-
 
11852
      WAREHOUSE_ID((short)4, "warehouse_id");
-
 
11853
 
-
 
11854
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
11855
 
-
 
11856
      static {
-
 
11857
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
11858
          byName.put(field.getFieldName(), field);
-
 
11859
        }
-
 
11860
      }
-
 
11861
 
-
 
11862
      /**
-
 
11863
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
11864
       */
-
 
11865
      public static _Fields findByThriftId(int fieldId) {
-
 
11866
        switch(fieldId) {
-
 
11867
          case 1: // STATUSES
-
 
11868
            return STATUSES;
-
 
11869
          case 2: // OFFSET
-
 
11870
            return OFFSET;
-
 
11871
          case 3: // LIMIT
-
 
11872
            return LIMIT;
-
 
11873
          case 4: // WAREHOUSE_ID
-
 
11874
            return WAREHOUSE_ID;
-
 
11875
          default:
-
 
11876
            return null;
-
 
11877
        }
-
 
11878
      }
-
 
11879
 
-
 
11880
      /**
-
 
11881
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
11882
       * if it is not found.
-
 
11883
       */
-
 
11884
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
11885
        _Fields fields = findByThriftId(fieldId);
-
 
11886
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
11887
        return fields;
-
 
11888
      }
-
 
11889
 
-
 
11890
      /**
-
 
11891
       * Find the _Fields constant that matches name, or null if its not found.
-
 
11892
       */
-
 
11893
      public static _Fields findByName(String name) {
-
 
11894
        return byName.get(name);
-
 
11895
      }
-
 
11896
 
-
 
11897
      private final short _thriftId;
-
 
11898
      private final String _fieldName;
-
 
11899
 
-
 
11900
      _Fields(short thriftId, String fieldName) {
-
 
11901
        _thriftId = thriftId;
-
 
11902
        _fieldName = fieldName;
-
 
11903
      }
-
 
11904
 
-
 
11905
      public short getThriftFieldId() {
-
 
11906
        return _thriftId;
-
 
11907
      }
-
 
11908
 
-
 
11909
      public String getFieldName() {
-
 
11910
        return _fieldName;
-
 
11911
      }
-
 
11912
    }
-
 
11913
 
-
 
11914
    // isset id assignments
-
 
11915
    private static final int __OFFSET_ISSET_ID = 0;
-
 
11916
    private static final int __LIMIT_ISSET_ID = 1;
-
 
11917
    private static final int __WAREHOUSE_ID_ISSET_ID = 2;
-
 
11918
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
11919
 
-
 
11920
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
11921
    static {
-
 
11922
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
11923
      tmpMap.put(_Fields.STATUSES, new org.apache.thrift.meta_data.FieldMetaData("statuses", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11924
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
11925
              new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class))));
-
 
11926
      tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11927
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
11928
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11929
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
11930
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11931
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
11932
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
11933
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersInBatch_args.class, metaDataMap);
-
 
11934
    }
-
 
11935
 
-
 
11936
    public getOrdersInBatch_args() {
-
 
11937
    }
-
 
11938
 
-
 
11939
    public getOrdersInBatch_args(
-
 
11940
      List<OrderStatus> statuses,
-
 
11941
      long offset,
-
 
11942
      long limit,
-
 
11943
      long warehouse_id)
-
 
11944
    {
-
 
11945
      this();
-
 
11946
      this.statuses = statuses;
-
 
11947
      this.offset = offset;
-
 
11948
      setOffsetIsSet(true);
-
 
11949
      this.limit = limit;
-
 
11950
      setLimitIsSet(true);
-
 
11951
      this.warehouse_id = warehouse_id;
-
 
11952
      setWarehouse_idIsSet(true);
-
 
11953
    }
-
 
11954
 
-
 
11955
    /**
-
 
11956
     * Performs a deep copy on <i>other</i>.
-
 
11957
     */
-
 
11958
    public getOrdersInBatch_args(getOrdersInBatch_args other) {
-
 
11959
      __isset_bit_vector.clear();
-
 
11960
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
11961
      if (other.isSetStatuses()) {
-
 
11962
        List<OrderStatus> __this__statuses = new ArrayList<OrderStatus>();
-
 
11963
        for (OrderStatus other_element : other.statuses) {
-
 
11964
          __this__statuses.add(other_element);
-
 
11965
        }
-
 
11966
        this.statuses = __this__statuses;
-
 
11967
      }
-
 
11968
      this.offset = other.offset;
-
 
11969
      this.limit = other.limit;
-
 
11970
      this.warehouse_id = other.warehouse_id;
-
 
11971
    }
-
 
11972
 
-
 
11973
    public getOrdersInBatch_args deepCopy() {
-
 
11974
      return new getOrdersInBatch_args(this);
-
 
11975
    }
-
 
11976
 
-
 
11977
    @Override
-
 
11978
    public void clear() {
-
 
11979
      this.statuses = null;
-
 
11980
      setOffsetIsSet(false);
-
 
11981
      this.offset = 0;
-
 
11982
      setLimitIsSet(false);
-
 
11983
      this.limit = 0;
-
 
11984
      setWarehouse_idIsSet(false);
-
 
11985
      this.warehouse_id = 0;
-
 
11986
    }
-
 
11987
 
-
 
11988
    public int getStatusesSize() {
-
 
11989
      return (this.statuses == null) ? 0 : this.statuses.size();
-
 
11990
    }
-
 
11991
 
-
 
11992
    public java.util.Iterator<OrderStatus> getStatusesIterator() {
-
 
11993
      return (this.statuses == null) ? null : this.statuses.iterator();
-
 
11994
    }
-
 
11995
 
-
 
11996
    public void addToStatuses(OrderStatus elem) {
-
 
11997
      if (this.statuses == null) {
-
 
11998
        this.statuses = new ArrayList<OrderStatus>();
-
 
11999
      }
-
 
12000
      this.statuses.add(elem);
-
 
12001
    }
-
 
12002
 
-
 
12003
    public List<OrderStatus> getStatuses() {
-
 
12004
      return this.statuses;
-
 
12005
    }
-
 
12006
 
-
 
12007
    public void setStatuses(List<OrderStatus> statuses) {
-
 
12008
      this.statuses = statuses;
-
 
12009
    }
-
 
12010
 
-
 
12011
    public void unsetStatuses() {
-
 
12012
      this.statuses = null;
-
 
12013
    }
-
 
12014
 
-
 
12015
    /** Returns true if field statuses is set (has been assigned a value) and false otherwise */
-
 
12016
    public boolean isSetStatuses() {
-
 
12017
      return this.statuses != null;
-
 
12018
    }
-
 
12019
 
-
 
12020
    public void setStatusesIsSet(boolean value) {
-
 
12021
      if (!value) {
-
 
12022
        this.statuses = null;
-
 
12023
      }
-
 
12024
    }
-
 
12025
 
-
 
12026
    public long getOffset() {
-
 
12027
      return this.offset;
-
 
12028
    }
-
 
12029
 
-
 
12030
    public void setOffset(long offset) {
-
 
12031
      this.offset = offset;
-
 
12032
      setOffsetIsSet(true);
-
 
12033
    }
-
 
12034
 
-
 
12035
    public void unsetOffset() {
-
 
12036
      __isset_bit_vector.clear(__OFFSET_ISSET_ID);
-
 
12037
    }
-
 
12038
 
-
 
12039
    /** Returns true if field offset is set (has been assigned a value) and false otherwise */
-
 
12040
    public boolean isSetOffset() {
-
 
12041
      return __isset_bit_vector.get(__OFFSET_ISSET_ID);
-
 
12042
    }
-
 
12043
 
-
 
12044
    public void setOffsetIsSet(boolean value) {
-
 
12045
      __isset_bit_vector.set(__OFFSET_ISSET_ID, value);
-
 
12046
    }
-
 
12047
 
-
 
12048
    public long getLimit() {
-
 
12049
      return this.limit;
-
 
12050
    }
-
 
12051
 
-
 
12052
    public void setLimit(long limit) {
-
 
12053
      this.limit = limit;
-
 
12054
      setLimitIsSet(true);
-
 
12055
    }
-
 
12056
 
-
 
12057
    public void unsetLimit() {
-
 
12058
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
-
 
12059
    }
-
 
12060
 
-
 
12061
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
-
 
12062
    public boolean isSetLimit() {
-
 
12063
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
-
 
12064
    }
-
 
12065
 
-
 
12066
    public void setLimitIsSet(boolean value) {
-
 
12067
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
-
 
12068
    }
-
 
12069
 
-
 
12070
    public long getWarehouse_id() {
-
 
12071
      return this.warehouse_id;
-
 
12072
    }
-
 
12073
 
-
 
12074
    public void setWarehouse_id(long warehouse_id) {
-
 
12075
      this.warehouse_id = warehouse_id;
-
 
12076
      setWarehouse_idIsSet(true);
-
 
12077
    }
-
 
12078
 
-
 
12079
    public void unsetWarehouse_id() {
-
 
12080
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
-
 
12081
    }
-
 
12082
 
-
 
12083
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
-
 
12084
    public boolean isSetWarehouse_id() {
-
 
12085
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
-
 
12086
    }
-
 
12087
 
-
 
12088
    public void setWarehouse_idIsSet(boolean value) {
-
 
12089
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
-
 
12090
    }
-
 
12091
 
-
 
12092
    public void setFieldValue(_Fields field, Object value) {
-
 
12093
      switch (field) {
-
 
12094
      case STATUSES:
-
 
12095
        if (value == null) {
-
 
12096
          unsetStatuses();
-
 
12097
        } else {
-
 
12098
          setStatuses((List<OrderStatus>)value);
-
 
12099
        }
-
 
12100
        break;
-
 
12101
 
-
 
12102
      case OFFSET:
-
 
12103
        if (value == null) {
-
 
12104
          unsetOffset();
-
 
12105
        } else {
-
 
12106
          setOffset((Long)value);
-
 
12107
        }
-
 
12108
        break;
-
 
12109
 
-
 
12110
      case LIMIT:
-
 
12111
        if (value == null) {
-
 
12112
          unsetLimit();
-
 
12113
        } else {
-
 
12114
          setLimit((Long)value);
-
 
12115
        }
-
 
12116
        break;
-
 
12117
 
-
 
12118
      case WAREHOUSE_ID:
-
 
12119
        if (value == null) {
-
 
12120
          unsetWarehouse_id();
-
 
12121
        } else {
-
 
12122
          setWarehouse_id((Long)value);
-
 
12123
        }
-
 
12124
        break;
-
 
12125
 
-
 
12126
      }
-
 
12127
    }
-
 
12128
 
-
 
12129
    public Object getFieldValue(_Fields field) {
-
 
12130
      switch (field) {
-
 
12131
      case STATUSES:
-
 
12132
        return getStatuses();
-
 
12133
 
-
 
12134
      case OFFSET:
-
 
12135
        return Long.valueOf(getOffset());
-
 
12136
 
-
 
12137
      case LIMIT:
-
 
12138
        return Long.valueOf(getLimit());
-
 
12139
 
-
 
12140
      case WAREHOUSE_ID:
-
 
12141
        return Long.valueOf(getWarehouse_id());
-
 
12142
 
-
 
12143
      }
-
 
12144
      throw new IllegalStateException();
-
 
12145
    }
-
 
12146
 
-
 
12147
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
12148
    public boolean isSet(_Fields field) {
-
 
12149
      if (field == null) {
-
 
12150
        throw new IllegalArgumentException();
-
 
12151
      }
-
 
12152
 
-
 
12153
      switch (field) {
-
 
12154
      case STATUSES:
-
 
12155
        return isSetStatuses();
-
 
12156
      case OFFSET:
-
 
12157
        return isSetOffset();
-
 
12158
      case LIMIT:
-
 
12159
        return isSetLimit();
-
 
12160
      case WAREHOUSE_ID:
-
 
12161
        return isSetWarehouse_id();
-
 
12162
      }
-
 
12163
      throw new IllegalStateException();
-
 
12164
    }
-
 
12165
 
-
 
12166
    @Override
-
 
12167
    public boolean equals(Object that) {
-
 
12168
      if (that == null)
-
 
12169
        return false;
-
 
12170
      if (that instanceof getOrdersInBatch_args)
-
 
12171
        return this.equals((getOrdersInBatch_args)that);
-
 
12172
      return false;
-
 
12173
    }
-
 
12174
 
-
 
12175
    public boolean equals(getOrdersInBatch_args that) {
-
 
12176
      if (that == null)
-
 
12177
        return false;
-
 
12178
 
-
 
12179
      boolean this_present_statuses = true && this.isSetStatuses();
-
 
12180
      boolean that_present_statuses = true && that.isSetStatuses();
-
 
12181
      if (this_present_statuses || that_present_statuses) {
-
 
12182
        if (!(this_present_statuses && that_present_statuses))
-
 
12183
          return false;
-
 
12184
        if (!this.statuses.equals(that.statuses))
-
 
12185
          return false;
-
 
12186
      }
-
 
12187
 
-
 
12188
      boolean this_present_offset = true;
-
 
12189
      boolean that_present_offset = true;
-
 
12190
      if (this_present_offset || that_present_offset) {
-
 
12191
        if (!(this_present_offset && that_present_offset))
-
 
12192
          return false;
-
 
12193
        if (this.offset != that.offset)
-
 
12194
          return false;
-
 
12195
      }
-
 
12196
 
-
 
12197
      boolean this_present_limit = true;
-
 
12198
      boolean that_present_limit = true;
-
 
12199
      if (this_present_limit || that_present_limit) {
-
 
12200
        if (!(this_present_limit && that_present_limit))
-
 
12201
          return false;
-
 
12202
        if (this.limit != that.limit)
-
 
12203
          return false;
-
 
12204
      }
-
 
12205
 
-
 
12206
      boolean this_present_warehouse_id = true;
-
 
12207
      boolean that_present_warehouse_id = true;
-
 
12208
      if (this_present_warehouse_id || that_present_warehouse_id) {
-
 
12209
        if (!(this_present_warehouse_id && that_present_warehouse_id))
-
 
12210
          return false;
-
 
12211
        if (this.warehouse_id != that.warehouse_id)
-
 
12212
          return false;
-
 
12213
      }
-
 
12214
 
-
 
12215
      return true;
-
 
12216
    }
-
 
12217
 
-
 
12218
    @Override
-
 
12219
    public int hashCode() {
-
 
12220
      return 0;
-
 
12221
    }
-
 
12222
 
-
 
12223
    public int compareTo(getOrdersInBatch_args other) {
-
 
12224
      if (!getClass().equals(other.getClass())) {
-
 
12225
        return getClass().getName().compareTo(other.getClass().getName());
-
 
12226
      }
-
 
12227
 
-
 
12228
      int lastComparison = 0;
-
 
12229
      getOrdersInBatch_args typedOther = (getOrdersInBatch_args)other;
-
 
12230
 
-
 
12231
      lastComparison = Boolean.valueOf(isSetStatuses()).compareTo(typedOther.isSetStatuses());
-
 
12232
      if (lastComparison != 0) {
-
 
12233
        return lastComparison;
-
 
12234
      }
-
 
12235
      if (isSetStatuses()) {
-
 
12236
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statuses, typedOther.statuses);
-
 
12237
        if (lastComparison != 0) {
-
 
12238
          return lastComparison;
-
 
12239
        }
-
 
12240
      }
-
 
12241
      lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());
-
 
12242
      if (lastComparison != 0) {
-
 
12243
        return lastComparison;
-
 
12244
      }
-
 
12245
      if (isSetOffset()) {
-
 
12246
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);
-
 
12247
        if (lastComparison != 0) {
-
 
12248
          return lastComparison;
-
 
12249
        }
-
 
12250
      }
-
 
12251
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
-
 
12252
      if (lastComparison != 0) {
-
 
12253
        return lastComparison;
-
 
12254
      }
-
 
12255
      if (isSetLimit()) {
-
 
12256
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
-
 
12257
        if (lastComparison != 0) {
-
 
12258
          return lastComparison;
-
 
12259
        }
-
 
12260
      }
-
 
12261
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
-
 
12262
      if (lastComparison != 0) {
-
 
12263
        return lastComparison;
-
 
12264
      }
-
 
12265
      if (isSetWarehouse_id()) {
-
 
12266
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
-
 
12267
        if (lastComparison != 0) {
-
 
12268
          return lastComparison;
-
 
12269
        }
-
 
12270
      }
-
 
12271
      return 0;
-
 
12272
    }
-
 
12273
 
-
 
12274
    public _Fields fieldForId(int fieldId) {
-
 
12275
      return _Fields.findByThriftId(fieldId);
-
 
12276
    }
-
 
12277
 
-
 
12278
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
12279
      org.apache.thrift.protocol.TField field;
-
 
12280
      iprot.readStructBegin();
-
 
12281
      while (true)
-
 
12282
      {
-
 
12283
        field = iprot.readFieldBegin();
-
 
12284
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
12285
          break;
-
 
12286
        }
-
 
12287
        switch (field.id) {
-
 
12288
          case 1: // STATUSES
-
 
12289
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
12290
              {
-
 
12291
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
-
 
12292
                this.statuses = new ArrayList<OrderStatus>(_list20.size);
-
 
12293
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
-
 
12294
                {
-
 
12295
                  OrderStatus _elem22; // required
-
 
12296
                  _elem22 = OrderStatus.findByValue(iprot.readI32());
-
 
12297
                  this.statuses.add(_elem22);
-
 
12298
                }
-
 
12299
                iprot.readListEnd();
-
 
12300
              }
-
 
12301
            } else { 
-
 
12302
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12303
            }
-
 
12304
            break;
-
 
12305
          case 2: // OFFSET
-
 
12306
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
12307
              this.offset = iprot.readI64();
-
 
12308
              setOffsetIsSet(true);
-
 
12309
            } else { 
-
 
12310
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12311
            }
-
 
12312
            break;
-
 
12313
          case 3: // LIMIT
-
 
12314
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
12315
              this.limit = iprot.readI64();
-
 
12316
              setLimitIsSet(true);
-
 
12317
            } else { 
-
 
12318
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12319
            }
-
 
12320
            break;
-
 
12321
          case 4: // WAREHOUSE_ID
-
 
12322
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
12323
              this.warehouse_id = iprot.readI64();
-
 
12324
              setWarehouse_idIsSet(true);
-
 
12325
            } else { 
-
 
12326
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12327
            }
-
 
12328
            break;
-
 
12329
          default:
-
 
12330
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12331
        }
-
 
12332
        iprot.readFieldEnd();
-
 
12333
      }
-
 
12334
      iprot.readStructEnd();
-
 
12335
      validate();
-
 
12336
    }
-
 
12337
 
-
 
12338
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
12339
      validate();
-
 
12340
 
-
 
12341
      oprot.writeStructBegin(STRUCT_DESC);
-
 
12342
      if (this.statuses != null) {
-
 
12343
        oprot.writeFieldBegin(STATUSES_FIELD_DESC);
-
 
12344
        {
-
 
12345
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.statuses.size()));
-
 
12346
          for (OrderStatus _iter23 : this.statuses)
-
 
12347
          {
-
 
12348
            oprot.writeI32(_iter23.getValue());
-
 
12349
          }
-
 
12350
          oprot.writeListEnd();
-
 
12351
        }
-
 
12352
        oprot.writeFieldEnd();
-
 
12353
      }
-
 
12354
      oprot.writeFieldBegin(OFFSET_FIELD_DESC);
-
 
12355
      oprot.writeI64(this.offset);
-
 
12356
      oprot.writeFieldEnd();
-
 
12357
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
-
 
12358
      oprot.writeI64(this.limit);
-
 
12359
      oprot.writeFieldEnd();
-
 
12360
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
12361
      oprot.writeI64(this.warehouse_id);
-
 
12362
      oprot.writeFieldEnd();
-
 
12363
      oprot.writeFieldStop();
-
 
12364
      oprot.writeStructEnd();
-
 
12365
    }
-
 
12366
 
-
 
12367
    @Override
-
 
12368
    public String toString() {
-
 
12369
      StringBuilder sb = new StringBuilder("getOrdersInBatch_args(");
-
 
12370
      boolean first = true;
-
 
12371
 
-
 
12372
      sb.append("statuses:");
-
 
12373
      if (this.statuses == null) {
-
 
12374
        sb.append("null");
-
 
12375
      } else {
-
 
12376
        sb.append(this.statuses);
-
 
12377
      }
-
 
12378
      first = false;
-
 
12379
      if (!first) sb.append(", ");
-
 
12380
      sb.append("offset:");
-
 
12381
      sb.append(this.offset);
-
 
12382
      first = false;
-
 
12383
      if (!first) sb.append(", ");
-
 
12384
      sb.append("limit:");
-
 
12385
      sb.append(this.limit);
-
 
12386
      first = false;
-
 
12387
      if (!first) sb.append(", ");
-
 
12388
      sb.append("warehouse_id:");
-
 
12389
      sb.append(this.warehouse_id);
-
 
12390
      first = false;
-
 
12391
      sb.append(")");
-
 
12392
      return sb.toString();
-
 
12393
    }
-
 
12394
 
-
 
12395
    public void validate() throws org.apache.thrift.TException {
-
 
12396
      // check for required fields
-
 
12397
    }
-
 
12398
 
-
 
12399
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
12400
      try {
-
 
12401
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
12402
      } catch (org.apache.thrift.TException te) {
-
 
12403
        throw new java.io.IOException(te);
-
 
12404
      }
-
 
12405
    }
-
 
12406
 
-
 
12407
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
12408
      try {
-
 
12409
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
12410
      } catch (org.apache.thrift.TException te) {
-
 
12411
        throw new java.io.IOException(te);
-
 
12412
      }
-
 
12413
    }
-
 
12414
 
-
 
12415
  }
-
 
12416
 
-
 
12417
  public static class getOrdersInBatch_result implements org.apache.thrift.TBase<getOrdersInBatch_result, getOrdersInBatch_result._Fields>, java.io.Serializable, Cloneable   {
-
 
12418
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersInBatch_result");
-
 
12419
 
-
 
12420
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
12421
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
12422
 
-
 
12423
    private List<Order> success; // required
-
 
12424
    private TransactionServiceException ex; // required
-
 
12425
 
-
 
12426
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
12427
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
12428
      SUCCESS((short)0, "success"),
-
 
12429
      EX((short)1, "ex");
-
 
12430
 
-
 
12431
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
12432
 
-
 
12433
      static {
-
 
12434
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
12435
          byName.put(field.getFieldName(), field);
-
 
12436
        }
-
 
12437
      }
-
 
12438
 
-
 
12439
      /**
-
 
12440
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
12441
       */
-
 
12442
      public static _Fields findByThriftId(int fieldId) {
-
 
12443
        switch(fieldId) {
-
 
12444
          case 0: // SUCCESS
-
 
12445
            return SUCCESS;
-
 
12446
          case 1: // EX
-
 
12447
            return EX;
-
 
12448
          default:
-
 
12449
            return null;
-
 
12450
        }
-
 
12451
      }
-
 
12452
 
-
 
12453
      /**
-
 
12454
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
12455
       * if it is not found.
-
 
12456
       */
-
 
12457
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
12458
        _Fields fields = findByThriftId(fieldId);
-
 
12459
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
12460
        return fields;
-
 
12461
      }
-
 
12462
 
-
 
12463
      /**
-
 
12464
       * Find the _Fields constant that matches name, or null if its not found.
-
 
12465
       */
-
 
12466
      public static _Fields findByName(String name) {
-
 
12467
        return byName.get(name);
-
 
12468
      }
-
 
12469
 
-
 
12470
      private final short _thriftId;
-
 
12471
      private final String _fieldName;
-
 
12472
 
-
 
12473
      _Fields(short thriftId, String fieldName) {
-
 
12474
        _thriftId = thriftId;
-
 
12475
        _fieldName = fieldName;
-
 
12476
      }
-
 
12477
 
-
 
12478
      public short getThriftFieldId() {
-
 
12479
        return _thriftId;
-
 
12480
      }
-
 
12481
 
-
 
12482
      public String getFieldName() {
-
 
12483
        return _fieldName;
-
 
12484
      }
-
 
12485
    }
-
 
12486
 
-
 
12487
    // isset id assignments
-
 
12488
 
-
 
12489
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
12490
    static {
-
 
12491
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
12492
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
12493
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
12494
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
-
 
12495
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
12496
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
12497
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
12498
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersInBatch_result.class, metaDataMap);
-
 
12499
    }
-
 
12500
 
-
 
12501
    public getOrdersInBatch_result() {
-
 
12502
    }
-
 
12503
 
-
 
12504
    public getOrdersInBatch_result(
-
 
12505
      List<Order> success,
-
 
12506
      TransactionServiceException ex)
-
 
12507
    {
-
 
12508
      this();
-
 
12509
      this.success = success;
-
 
12510
      this.ex = ex;
-
 
12511
    }
-
 
12512
 
-
 
12513
    /**
-
 
12514
     * Performs a deep copy on <i>other</i>.
-
 
12515
     */
-
 
12516
    public getOrdersInBatch_result(getOrdersInBatch_result other) {
-
 
12517
      if (other.isSetSuccess()) {
-
 
12518
        List<Order> __this__success = new ArrayList<Order>();
-
 
12519
        for (Order other_element : other.success) {
-
 
12520
          __this__success.add(new Order(other_element));
-
 
12521
        }
-
 
12522
        this.success = __this__success;
-
 
12523
      }
-
 
12524
      if (other.isSetEx()) {
-
 
12525
        this.ex = new TransactionServiceException(other.ex);
-
 
12526
      }
-
 
12527
    }
-
 
12528
 
-
 
12529
    public getOrdersInBatch_result deepCopy() {
-
 
12530
      return new getOrdersInBatch_result(this);
-
 
12531
    }
-
 
12532
 
-
 
12533
    @Override
-
 
12534
    public void clear() {
-
 
12535
      this.success = null;
-
 
12536
      this.ex = null;
-
 
12537
    }
-
 
12538
 
-
 
12539
    public int getSuccessSize() {
-
 
12540
      return (this.success == null) ? 0 : this.success.size();
-
 
12541
    }
-
 
12542
 
-
 
12543
    public java.util.Iterator<Order> getSuccessIterator() {
-
 
12544
      return (this.success == null) ? null : this.success.iterator();
-
 
12545
    }
-
 
12546
 
-
 
12547
    public void addToSuccess(Order elem) {
-
 
12548
      if (this.success == null) {
-
 
12549
        this.success = new ArrayList<Order>();
-
 
12550
      }
-
 
12551
      this.success.add(elem);
-
 
12552
    }
-
 
12553
 
-
 
12554
    public List<Order> getSuccess() {
-
 
12555
      return this.success;
-
 
12556
    }
-
 
12557
 
-
 
12558
    public void setSuccess(List<Order> success) {
-
 
12559
      this.success = success;
-
 
12560
    }
-
 
12561
 
-
 
12562
    public void unsetSuccess() {
-
 
12563
      this.success = null;
-
 
12564
    }
-
 
12565
 
-
 
12566
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
12567
    public boolean isSetSuccess() {
-
 
12568
      return this.success != null;
-
 
12569
    }
-
 
12570
 
-
 
12571
    public void setSuccessIsSet(boolean value) {
-
 
12572
      if (!value) {
-
 
12573
        this.success = null;
-
 
12574
      }
-
 
12575
    }
-
 
12576
 
-
 
12577
    public TransactionServiceException getEx() {
-
 
12578
      return this.ex;
-
 
12579
    }
-
 
12580
 
-
 
12581
    public void setEx(TransactionServiceException ex) {
-
 
12582
      this.ex = ex;
-
 
12583
    }
-
 
12584
 
-
 
12585
    public void unsetEx() {
-
 
12586
      this.ex = null;
-
 
12587
    }
-
 
12588
 
-
 
12589
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
12590
    public boolean isSetEx() {
-
 
12591
      return this.ex != null;
-
 
12592
    }
-
 
12593
 
-
 
12594
    public void setExIsSet(boolean value) {
-
 
12595
      if (!value) {
-
 
12596
        this.ex = null;
-
 
12597
      }
-
 
12598
    }
-
 
12599
 
-
 
12600
    public void setFieldValue(_Fields field, Object value) {
-
 
12601
      switch (field) {
-
 
12602
      case SUCCESS:
-
 
12603
        if (value == null) {
-
 
12604
          unsetSuccess();
-
 
12605
        } else {
-
 
12606
          setSuccess((List<Order>)value);
-
 
12607
        }
-
 
12608
        break;
-
 
12609
 
-
 
12610
      case EX:
-
 
12611
        if (value == null) {
-
 
12612
          unsetEx();
-
 
12613
        } else {
-
 
12614
          setEx((TransactionServiceException)value);
-
 
12615
        }
-
 
12616
        break;
-
 
12617
 
-
 
12618
      }
-
 
12619
    }
-
 
12620
 
-
 
12621
    public Object getFieldValue(_Fields field) {
-
 
12622
      switch (field) {
-
 
12623
      case SUCCESS:
-
 
12624
        return getSuccess();
-
 
12625
 
-
 
12626
      case EX:
-
 
12627
        return getEx();
-
 
12628
 
-
 
12629
      }
-
 
12630
      throw new IllegalStateException();
-
 
12631
    }
-
 
12632
 
-
 
12633
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
12634
    public boolean isSet(_Fields field) {
-
 
12635
      if (field == null) {
-
 
12636
        throw new IllegalArgumentException();
-
 
12637
      }
-
 
12638
 
-
 
12639
      switch (field) {
-
 
12640
      case SUCCESS:
-
 
12641
        return isSetSuccess();
-
 
12642
      case EX:
-
 
12643
        return isSetEx();
-
 
12644
      }
-
 
12645
      throw new IllegalStateException();
-
 
12646
    }
-
 
12647
 
-
 
12648
    @Override
-
 
12649
    public boolean equals(Object that) {
-
 
12650
      if (that == null)
-
 
12651
        return false;
-
 
12652
      if (that instanceof getOrdersInBatch_result)
-
 
12653
        return this.equals((getOrdersInBatch_result)that);
-
 
12654
      return false;
-
 
12655
    }
-
 
12656
 
-
 
12657
    public boolean equals(getOrdersInBatch_result that) {
-
 
12658
      if (that == null)
-
 
12659
        return false;
-
 
12660
 
-
 
12661
      boolean this_present_success = true && this.isSetSuccess();
-
 
12662
      boolean that_present_success = true && that.isSetSuccess();
-
 
12663
      if (this_present_success || that_present_success) {
-
 
12664
        if (!(this_present_success && that_present_success))
-
 
12665
          return false;
-
 
12666
        if (!this.success.equals(that.success))
-
 
12667
          return false;
-
 
12668
      }
-
 
12669
 
-
 
12670
      boolean this_present_ex = true && this.isSetEx();
-
 
12671
      boolean that_present_ex = true && that.isSetEx();
-
 
12672
      if (this_present_ex || that_present_ex) {
-
 
12673
        if (!(this_present_ex && that_present_ex))
-
 
12674
          return false;
-
 
12675
        if (!this.ex.equals(that.ex))
-
 
12676
          return false;
-
 
12677
      }
-
 
12678
 
-
 
12679
      return true;
-
 
12680
    }
-
 
12681
 
-
 
12682
    @Override
-
 
12683
    public int hashCode() {
-
 
12684
      return 0;
-
 
12685
    }
-
 
12686
 
-
 
12687
    public int compareTo(getOrdersInBatch_result other) {
-
 
12688
      if (!getClass().equals(other.getClass())) {
-
 
12689
        return getClass().getName().compareTo(other.getClass().getName());
-
 
12690
      }
-
 
12691
 
-
 
12692
      int lastComparison = 0;
-
 
12693
      getOrdersInBatch_result typedOther = (getOrdersInBatch_result)other;
-
 
12694
 
-
 
12695
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
12696
      if (lastComparison != 0) {
-
 
12697
        return lastComparison;
-
 
12698
      }
-
 
12699
      if (isSetSuccess()) {
-
 
12700
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
12701
        if (lastComparison != 0) {
-
 
12702
          return lastComparison;
-
 
12703
        }
-
 
12704
      }
-
 
12705
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
12706
      if (lastComparison != 0) {
-
 
12707
        return lastComparison;
-
 
12708
      }
-
 
12709
      if (isSetEx()) {
-
 
12710
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
12711
        if (lastComparison != 0) {
-
 
12712
          return lastComparison;
-
 
12713
        }
-
 
12714
      }
-
 
12715
      return 0;
-
 
12716
    }
-
 
12717
 
-
 
12718
    public _Fields fieldForId(int fieldId) {
-
 
12719
      return _Fields.findByThriftId(fieldId);
-
 
12720
    }
-
 
12721
 
-
 
12722
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
12723
      org.apache.thrift.protocol.TField field;
-
 
12724
      iprot.readStructBegin();
-
 
12725
      while (true)
-
 
12726
      {
-
 
12727
        field = iprot.readFieldBegin();
-
 
12728
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
12729
          break;
-
 
12730
        }
-
 
12731
        switch (field.id) {
-
 
12732
          case 0: // SUCCESS
-
 
12733
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
12734
              {
-
 
12735
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
-
 
12736
                this.success = new ArrayList<Order>(_list24.size);
-
 
12737
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
-
 
12738
                {
-
 
12739
                  Order _elem26; // required
-
 
12740
                  _elem26 = new Order();
-
 
12741
                  _elem26.read(iprot);
-
 
12742
                  this.success.add(_elem26);
-
 
12743
                }
-
 
12744
                iprot.readListEnd();
-
 
12745
              }
-
 
12746
            } else { 
-
 
12747
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12748
            }
-
 
12749
            break;
-
 
12750
          case 1: // EX
-
 
12751
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
12752
              this.ex = new TransactionServiceException();
-
 
12753
              this.ex.read(iprot);
-
 
12754
            } else { 
-
 
12755
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12756
            }
-
 
12757
            break;
-
 
12758
          default:
-
 
12759
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12760
        }
-
 
12761
        iprot.readFieldEnd();
-
 
12762
      }
-
 
12763
      iprot.readStructEnd();
-
 
12764
      validate();
-
 
12765
    }
-
 
12766
 
-
 
12767
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
12768
      oprot.writeStructBegin(STRUCT_DESC);
-
 
12769
 
-
 
12770
      if (this.isSetSuccess()) {
-
 
12771
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
12772
        {
-
 
12773
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
12774
          for (Order _iter27 : this.success)
-
 
12775
          {
-
 
12776
            _iter27.write(oprot);
-
 
12777
          }
-
 
12778
          oprot.writeListEnd();
-
 
12779
        }
-
 
12780
        oprot.writeFieldEnd();
-
 
12781
      } else if (this.isSetEx()) {
-
 
12782
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
12783
        this.ex.write(oprot);
-
 
12784
        oprot.writeFieldEnd();
-
 
12785
      }
-
 
12786
      oprot.writeFieldStop();
-
 
12787
      oprot.writeStructEnd();
-
 
12788
    }
-
 
12789
 
-
 
12790
    @Override
-
 
12791
    public String toString() {
-
 
12792
      StringBuilder sb = new StringBuilder("getOrdersInBatch_result(");
-
 
12793
      boolean first = true;
-
 
12794
 
-
 
12795
      sb.append("success:");
-
 
12796
      if (this.success == null) {
-
 
12797
        sb.append("null");
-
 
12798
      } else {
-
 
12799
        sb.append(this.success);
-
 
12800
      }
-
 
12801
      first = false;
-
 
12802
      if (!first) sb.append(", ");
-
 
12803
      sb.append("ex:");
-
 
12804
      if (this.ex == null) {
-
 
12805
        sb.append("null");
-
 
12806
      } else {
-
 
12807
        sb.append(this.ex);
-
 
12808
      }
-
 
12809
      first = false;
-
 
12810
      sb.append(")");
-
 
12811
      return sb.toString();
-
 
12812
    }
-
 
12813
 
-
 
12814
    public void validate() throws org.apache.thrift.TException {
-
 
12815
      // check for required fields
-
 
12816
    }
-
 
12817
 
-
 
12818
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
12819
      try {
-
 
12820
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
12821
      } catch (org.apache.thrift.TException te) {
-
 
12822
        throw new java.io.IOException(te);
-
 
12823
      }
-
 
12824
    }
-
 
12825
 
-
 
12826
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
12827
      try {
-
 
12828
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
12829
      } catch (org.apache.thrift.TException te) {
-
 
12830
        throw new java.io.IOException(te);
-
 
12831
      }
-
 
12832
    }
-
 
12833
 
-
 
12834
  }
-
 
12835
 
-
 
12836
  public static class getOrderCount_args implements org.apache.thrift.TBase<getOrderCount_args, getOrderCount_args._Fields>, java.io.Serializable, Cloneable   {
-
 
12837
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderCount_args");
-
 
12838
 
-
 
12839
    private static final org.apache.thrift.protocol.TField STATUSES_FIELD_DESC = new org.apache.thrift.protocol.TField("statuses", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
12840
    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);
-
 
12841
 
-
 
12842
    private List<OrderStatus> statuses; // required
-
 
12843
    private long warehouseId; // required
-
 
12844
 
-
 
12845
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
12846
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
12847
      STATUSES((short)1, "statuses"),
-
 
12848
      WAREHOUSE_ID((short)2, "warehouseId");
-
 
12849
 
-
 
12850
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
12851
 
-
 
12852
      static {
-
 
12853
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
12854
          byName.put(field.getFieldName(), field);
-
 
12855
        }
-
 
12856
      }
-
 
12857
 
-
 
12858
      /**
-
 
12859
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
12860
       */
-
 
12861
      public static _Fields findByThriftId(int fieldId) {
-
 
12862
        switch(fieldId) {
-
 
12863
          case 1: // STATUSES
-
 
12864
            return STATUSES;
-
 
12865
          case 2: // WAREHOUSE_ID
-
 
12866
            return WAREHOUSE_ID;
-
 
12867
          default:
-
 
12868
            return null;
-
 
12869
        }
-
 
12870
      }
-
 
12871
 
-
 
12872
      /**
-
 
12873
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
12874
       * if it is not found.
-
 
12875
       */
-
 
12876
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
12877
        _Fields fields = findByThriftId(fieldId);
-
 
12878
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
12879
        return fields;
-
 
12880
      }
-
 
12881
 
-
 
12882
      /**
-
 
12883
       * Find the _Fields constant that matches name, or null if its not found.
-
 
12884
       */
-
 
12885
      public static _Fields findByName(String name) {
-
 
12886
        return byName.get(name);
-
 
12887
      }
-
 
12888
 
-
 
12889
      private final short _thriftId;
-
 
12890
      private final String _fieldName;
-
 
12891
 
-
 
12892
      _Fields(short thriftId, String fieldName) {
-
 
12893
        _thriftId = thriftId;
-
 
12894
        _fieldName = fieldName;
-
 
12895
      }
-
 
12896
 
-
 
12897
      public short getThriftFieldId() {
-
 
12898
        return _thriftId;
-
 
12899
      }
-
 
12900
 
-
 
12901
      public String getFieldName() {
-
 
12902
        return _fieldName;
-
 
12903
      }
-
 
12904
    }
-
 
12905
 
-
 
12906
    // isset id assignments
-
 
12907
    private static final int __WAREHOUSEID_ISSET_ID = 0;
-
 
12908
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
12909
 
-
 
12910
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
12911
    static {
-
 
12912
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
12913
      tmpMap.put(_Fields.STATUSES, new org.apache.thrift.meta_data.FieldMetaData("statuses", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
12914
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
12915
              new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class))));
-
 
12916
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
12917
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
12918
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
12919
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderCount_args.class, metaDataMap);
-
 
12920
    }
-
 
12921
 
-
 
12922
    public getOrderCount_args() {
-
 
12923
    }
-
 
12924
 
-
 
12925
    public getOrderCount_args(
-
 
12926
      List<OrderStatus> statuses,
-
 
12927
      long warehouseId)
-
 
12928
    {
-
 
12929
      this();
-
 
12930
      this.statuses = statuses;
-
 
12931
      this.warehouseId = warehouseId;
-
 
12932
      setWarehouseIdIsSet(true);
-
 
12933
    }
-
 
12934
 
-
 
12935
    /**
-
 
12936
     * Performs a deep copy on <i>other</i>.
-
 
12937
     */
-
 
12938
    public getOrderCount_args(getOrderCount_args other) {
-
 
12939
      __isset_bit_vector.clear();
-
 
12940
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
12941
      if (other.isSetStatuses()) {
-
 
12942
        List<OrderStatus> __this__statuses = new ArrayList<OrderStatus>();
-
 
12943
        for (OrderStatus other_element : other.statuses) {
-
 
12944
          __this__statuses.add(other_element);
-
 
12945
        }
-
 
12946
        this.statuses = __this__statuses;
-
 
12947
      }
-
 
12948
      this.warehouseId = other.warehouseId;
-
 
12949
    }
-
 
12950
 
-
 
12951
    public getOrderCount_args deepCopy() {
-
 
12952
      return new getOrderCount_args(this);
-
 
12953
    }
-
 
12954
 
-
 
12955
    @Override
-
 
12956
    public void clear() {
-
 
12957
      this.statuses = null;
-
 
12958
      setWarehouseIdIsSet(false);
-
 
12959
      this.warehouseId = 0;
-
 
12960
    }
-
 
12961
 
-
 
12962
    public int getStatusesSize() {
-
 
12963
      return (this.statuses == null) ? 0 : this.statuses.size();
-
 
12964
    }
-
 
12965
 
-
 
12966
    public java.util.Iterator<OrderStatus> getStatusesIterator() {
-
 
12967
      return (this.statuses == null) ? null : this.statuses.iterator();
-
 
12968
    }
-
 
12969
 
-
 
12970
    public void addToStatuses(OrderStatus elem) {
-
 
12971
      if (this.statuses == null) {
-
 
12972
        this.statuses = new ArrayList<OrderStatus>();
-
 
12973
      }
-
 
12974
      this.statuses.add(elem);
-
 
12975
    }
-
 
12976
 
-
 
12977
    public List<OrderStatus> getStatuses() {
-
 
12978
      return this.statuses;
-
 
12979
    }
-
 
12980
 
-
 
12981
    public void setStatuses(List<OrderStatus> statuses) {
-
 
12982
      this.statuses = statuses;
-
 
12983
    }
-
 
12984
 
-
 
12985
    public void unsetStatuses() {
-
 
12986
      this.statuses = null;
-
 
12987
    }
-
 
12988
 
-
 
12989
    /** Returns true if field statuses is set (has been assigned a value) and false otherwise */
-
 
12990
    public boolean isSetStatuses() {
-
 
12991
      return this.statuses != null;
-
 
12992
    }
-
 
12993
 
-
 
12994
    public void setStatusesIsSet(boolean value) {
-
 
12995
      if (!value) {
-
 
12996
        this.statuses = null;
-
 
12997
      }
-
 
12998
    }
-
 
12999
 
-
 
13000
    public long getWarehouseId() {
-
 
13001
      return this.warehouseId;
-
 
13002
    }
-
 
13003
 
-
 
13004
    public void setWarehouseId(long warehouseId) {
-
 
13005
      this.warehouseId = warehouseId;
-
 
13006
      setWarehouseIdIsSet(true);
-
 
13007
    }
-
 
13008
 
-
 
13009
    public void unsetWarehouseId() {
-
 
13010
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
-
 
13011
    }
-
 
13012
 
-
 
13013
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
-
 
13014
    public boolean isSetWarehouseId() {
-
 
13015
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
-
 
13016
    }
-
 
13017
 
-
 
13018
    public void setWarehouseIdIsSet(boolean value) {
-
 
13019
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
-
 
13020
    }
-
 
13021
 
-
 
13022
    public void setFieldValue(_Fields field, Object value) {
-
 
13023
      switch (field) {
-
 
13024
      case STATUSES:
-
 
13025
        if (value == null) {
-
 
13026
          unsetStatuses();
-
 
13027
        } else {
-
 
13028
          setStatuses((List<OrderStatus>)value);
-
 
13029
        }
-
 
13030
        break;
-
 
13031
 
-
 
13032
      case WAREHOUSE_ID:
-
 
13033
        if (value == null) {
-
 
13034
          unsetWarehouseId();
-
 
13035
        } else {
-
 
13036
          setWarehouseId((Long)value);
-
 
13037
        }
-
 
13038
        break;
-
 
13039
 
-
 
13040
      }
-
 
13041
    }
-
 
13042
 
-
 
13043
    public Object getFieldValue(_Fields field) {
-
 
13044
      switch (field) {
-
 
13045
      case STATUSES:
-
 
13046
        return getStatuses();
-
 
13047
 
-
 
13048
      case WAREHOUSE_ID:
-
 
13049
        return Long.valueOf(getWarehouseId());
-
 
13050
 
-
 
13051
      }
-
 
13052
      throw new IllegalStateException();
-
 
13053
    }
-
 
13054
 
-
 
13055
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
13056
    public boolean isSet(_Fields field) {
-
 
13057
      if (field == null) {
-
 
13058
        throw new IllegalArgumentException();
-
 
13059
      }
-
 
13060
 
-
 
13061
      switch (field) {
-
 
13062
      case STATUSES:
-
 
13063
        return isSetStatuses();
-
 
13064
      case WAREHOUSE_ID:
-
 
13065
        return isSetWarehouseId();
-
 
13066
      }
-
 
13067
      throw new IllegalStateException();
-
 
13068
    }
-
 
13069
 
-
 
13070
    @Override
-
 
13071
    public boolean equals(Object that) {
-
 
13072
      if (that == null)
-
 
13073
        return false;
-
 
13074
      if (that instanceof getOrderCount_args)
-
 
13075
        return this.equals((getOrderCount_args)that);
-
 
13076
      return false;
-
 
13077
    }
-
 
13078
 
-
 
13079
    public boolean equals(getOrderCount_args that) {
-
 
13080
      if (that == null)
-
 
13081
        return false;
-
 
13082
 
-
 
13083
      boolean this_present_statuses = true && this.isSetStatuses();
-
 
13084
      boolean that_present_statuses = true && that.isSetStatuses();
-
 
13085
      if (this_present_statuses || that_present_statuses) {
-
 
13086
        if (!(this_present_statuses && that_present_statuses))
-
 
13087
          return false;
-
 
13088
        if (!this.statuses.equals(that.statuses))
-
 
13089
          return false;
-
 
13090
      }
-
 
13091
 
-
 
13092
      boolean this_present_warehouseId = true;
-
 
13093
      boolean that_present_warehouseId = true;
-
 
13094
      if (this_present_warehouseId || that_present_warehouseId) {
-
 
13095
        if (!(this_present_warehouseId && that_present_warehouseId))
-
 
13096
          return false;
-
 
13097
        if (this.warehouseId != that.warehouseId)
-
 
13098
          return false;
-
 
13099
      }
-
 
13100
 
-
 
13101
      return true;
-
 
13102
    }
-
 
13103
 
-
 
13104
    @Override
-
 
13105
    public int hashCode() {
-
 
13106
      return 0;
-
 
13107
    }
-
 
13108
 
-
 
13109
    public int compareTo(getOrderCount_args other) {
-
 
13110
      if (!getClass().equals(other.getClass())) {
-
 
13111
        return getClass().getName().compareTo(other.getClass().getName());
-
 
13112
      }
-
 
13113
 
-
 
13114
      int lastComparison = 0;
-
 
13115
      getOrderCount_args typedOther = (getOrderCount_args)other;
-
 
13116
 
-
 
13117
      lastComparison = Boolean.valueOf(isSetStatuses()).compareTo(typedOther.isSetStatuses());
-
 
13118
      if (lastComparison != 0) {
-
 
13119
        return lastComparison;
-
 
13120
      }
-
 
13121
      if (isSetStatuses()) {
-
 
13122
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statuses, typedOther.statuses);
-
 
13123
        if (lastComparison != 0) {
-
 
13124
          return lastComparison;
-
 
13125
        }
-
 
13126
      }
-
 
13127
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
-
 
13128
      if (lastComparison != 0) {
-
 
13129
        return lastComparison;
-
 
13130
      }
-
 
13131
      if (isSetWarehouseId()) {
-
 
13132
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
-
 
13133
        if (lastComparison != 0) {
-
 
13134
          return lastComparison;
-
 
13135
        }
-
 
13136
      }
-
 
13137
      return 0;
-
 
13138
    }
-
 
13139
 
-
 
13140
    public _Fields fieldForId(int fieldId) {
-
 
13141
      return _Fields.findByThriftId(fieldId);
-
 
13142
    }
-
 
13143
 
-
 
13144
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
13145
      org.apache.thrift.protocol.TField field;
-
 
13146
      iprot.readStructBegin();
-
 
13147
      while (true)
-
 
13148
      {
-
 
13149
        field = iprot.readFieldBegin();
-
 
13150
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
13151
          break;
-
 
13152
        }
-
 
13153
        switch (field.id) {
-
 
13154
          case 1: // STATUSES
-
 
13155
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
13156
              {
-
 
13157
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
-
 
13158
                this.statuses = new ArrayList<OrderStatus>(_list28.size);
-
 
13159
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
-
 
13160
                {
-
 
13161
                  OrderStatus _elem30; // required
-
 
13162
                  _elem30 = OrderStatus.findByValue(iprot.readI32());
-
 
13163
                  this.statuses.add(_elem30);
-
 
13164
                }
-
 
13165
                iprot.readListEnd();
-
 
13166
              }
-
 
13167
            } else { 
-
 
13168
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
13169
            }
-
 
13170
            break;
-
 
13171
          case 2: // WAREHOUSE_ID
-
 
13172
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
13173
              this.warehouseId = iprot.readI64();
-
 
13174
              setWarehouseIdIsSet(true);
-
 
13175
            } else { 
-
 
13176
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
13177
            }
-
 
13178
            break;
-
 
13179
          default:
-
 
13180
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
13181
        }
-
 
13182
        iprot.readFieldEnd();
-
 
13183
      }
-
 
13184
      iprot.readStructEnd();
-
 
13185
      validate();
-
 
13186
    }
-
 
13187
 
-
 
13188
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
13189
      validate();
-
 
13190
 
-
 
13191
      oprot.writeStructBegin(STRUCT_DESC);
-
 
13192
      if (this.statuses != null) {
-
 
13193
        oprot.writeFieldBegin(STATUSES_FIELD_DESC);
-
 
13194
        {
-
 
13195
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.statuses.size()));
-
 
13196
          for (OrderStatus _iter31 : this.statuses)
-
 
13197
          {
-
 
13198
            oprot.writeI32(_iter31.getValue());
-
 
13199
          }
-
 
13200
          oprot.writeListEnd();
-
 
13201
        }
-
 
13202
        oprot.writeFieldEnd();
-
 
13203
      }
-
 
13204
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
13205
      oprot.writeI64(this.warehouseId);
-
 
13206
      oprot.writeFieldEnd();
-
 
13207
      oprot.writeFieldStop();
-
 
13208
      oprot.writeStructEnd();
-
 
13209
    }
-
 
13210
 
-
 
13211
    @Override
-
 
13212
    public String toString() {
-
 
13213
      StringBuilder sb = new StringBuilder("getOrderCount_args(");
-
 
13214
      boolean first = true;
-
 
13215
 
-
 
13216
      sb.append("statuses:");
-
 
13217
      if (this.statuses == null) {
-
 
13218
        sb.append("null");
-
 
13219
      } else {
-
 
13220
        sb.append(this.statuses);
-
 
13221
      }
-
 
13222
      first = false;
-
 
13223
      if (!first) sb.append(", ");
-
 
13224
      sb.append("warehouseId:");
-
 
13225
      sb.append(this.warehouseId);
-
 
13226
      first = false;
-
 
13227
      sb.append(")");
-
 
13228
      return sb.toString();
-
 
13229
    }
-
 
13230
 
-
 
13231
    public void validate() throws org.apache.thrift.TException {
-
 
13232
      // check for required fields
-
 
13233
    }
-
 
13234
 
-
 
13235
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
13236
      try {
-
 
13237
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
13238
      } catch (org.apache.thrift.TException te) {
-
 
13239
        throw new java.io.IOException(te);
-
 
13240
      }
-
 
13241
    }
-
 
13242
 
-
 
13243
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
13244
      try {
-
 
13245
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
13246
      } catch (org.apache.thrift.TException te) {
-
 
13247
        throw new java.io.IOException(te);
-
 
13248
      }
-
 
13249
    }
-
 
13250
 
-
 
13251
  }
-
 
13252
 
-
 
13253
  public static class getOrderCount_result implements org.apache.thrift.TBase<getOrderCount_result, getOrderCount_result._Fields>, java.io.Serializable, Cloneable   {
-
 
13254
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderCount_result");
-
 
13255
 
-
 
13256
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
-
 
13257
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
13258
 
-
 
13259
    private int success; // required
-
 
13260
    private TransactionServiceException ex; // required
-
 
13261
 
-
 
13262
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
13263
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
13264
      SUCCESS((short)0, "success"),
-
 
13265
      EX((short)1, "ex");
-
 
13266
 
-
 
13267
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
13268
 
-
 
13269
      static {
-
 
13270
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
13271
          byName.put(field.getFieldName(), field);
-
 
13272
        }
-
 
13273
      }
-
 
13274
 
-
 
13275
      /**
-
 
13276
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
13277
       */
-
 
13278
      public static _Fields findByThriftId(int fieldId) {
-
 
13279
        switch(fieldId) {
-
 
13280
          case 0: // SUCCESS
-
 
13281
            return SUCCESS;
-
 
13282
          case 1: // EX
-
 
13283
            return EX;
-
 
13284
          default:
-
 
13285
            return null;
-
 
13286
        }
-
 
13287
      }
-
 
13288
 
-
 
13289
      /**
-
 
13290
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
13291
       * if it is not found.
-
 
13292
       */
-
 
13293
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
13294
        _Fields fields = findByThriftId(fieldId);
-
 
13295
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
13296
        return fields;
-
 
13297
      }
-
 
13298
 
-
 
13299
      /**
-
 
13300
       * Find the _Fields constant that matches name, or null if its not found.
-
 
13301
       */
-
 
13302
      public static _Fields findByName(String name) {
-
 
13303
        return byName.get(name);
-
 
13304
      }
-
 
13305
 
-
 
13306
      private final short _thriftId;
-
 
13307
      private final String _fieldName;
-
 
13308
 
-
 
13309
      _Fields(short thriftId, String fieldName) {
-
 
13310
        _thriftId = thriftId;
-
 
13311
        _fieldName = fieldName;
-
 
13312
      }
-
 
13313
 
-
 
13314
      public short getThriftFieldId() {
-
 
13315
        return _thriftId;
-
 
13316
      }
-
 
13317
 
-
 
13318
      public String getFieldName() {
-
 
13319
        return _fieldName;
-
 
13320
      }
-
 
13321
    }
-
 
13322
 
-
 
13323
    // isset id assignments
-
 
13324
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
13325
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
13326
 
-
 
13327
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
13328
    static {
-
 
13329
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
13330
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
13331
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
-
 
13332
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
13333
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
13334
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
13335
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderCount_result.class, metaDataMap);
-
 
13336
    }
-
 
13337
 
-
 
13338
    public getOrderCount_result() {
-
 
13339
    }
-
 
13340
 
-
 
13341
    public getOrderCount_result(
-
 
13342
      int success,
-
 
13343
      TransactionServiceException ex)
-
 
13344
    {
-
 
13345
      this();
-
 
13346
      this.success = success;
-
 
13347
      setSuccessIsSet(true);
-
 
13348
      this.ex = ex;
-
 
13349
    }
-
 
13350
 
-
 
13351
    /**
-
 
13352
     * Performs a deep copy on <i>other</i>.
-
 
13353
     */
-
 
13354
    public getOrderCount_result(getOrderCount_result other) {
-
 
13355
      __isset_bit_vector.clear();
-
 
13356
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
13357
      this.success = other.success;
-
 
13358
      if (other.isSetEx()) {
-
 
13359
        this.ex = new TransactionServiceException(other.ex);
-
 
13360
      }
-
 
13361
    }
-
 
13362
 
-
 
13363
    public getOrderCount_result deepCopy() {
-
 
13364
      return new getOrderCount_result(this);
-
 
13365
    }
-
 
13366
 
-
 
13367
    @Override
-
 
13368
    public void clear() {
-
 
13369
      setSuccessIsSet(false);
-
 
13370
      this.success = 0;
-
 
13371
      this.ex = null;
-
 
13372
    }
-
 
13373
 
-
 
13374
    public int getSuccess() {
-
 
13375
      return this.success;
-
 
13376
    }
-
 
13377
 
-
 
13378
    public void setSuccess(int success) {
-
 
13379
      this.success = success;
-
 
13380
      setSuccessIsSet(true);
-
 
13381
    }
-
 
13382
 
-
 
13383
    public void unsetSuccess() {
-
 
13384
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
13385
    }
-
 
13386
 
-
 
13387
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
13388
    public boolean isSetSuccess() {
-
 
13389
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
13390
    }
-
 
13391
 
-
 
13392
    public void setSuccessIsSet(boolean value) {
-
 
13393
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
13394
    }
-
 
13395
 
-
 
13396
    public TransactionServiceException getEx() {
-
 
13397
      return this.ex;
-
 
13398
    }
-
 
13399
 
-
 
13400
    public void setEx(TransactionServiceException ex) {
-
 
13401
      this.ex = ex;
-
 
13402
    }
-
 
13403
 
-
 
13404
    public void unsetEx() {
-
 
13405
      this.ex = null;
-
 
13406
    }
-
 
13407
 
-
 
13408
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
13409
    public boolean isSetEx() {
-
 
13410
      return this.ex != null;
-
 
13411
    }
-
 
13412
 
-
 
13413
    public void setExIsSet(boolean value) {
-
 
13414
      if (!value) {
-
 
13415
        this.ex = null;
-
 
13416
      }
-
 
13417
    }
-
 
13418
 
-
 
13419
    public void setFieldValue(_Fields field, Object value) {
-
 
13420
      switch (field) {
-
 
13421
      case SUCCESS:
-
 
13422
        if (value == null) {
-
 
13423
          unsetSuccess();
-
 
13424
        } else {
-
 
13425
          setSuccess((Integer)value);
-
 
13426
        }
-
 
13427
        break;
-
 
13428
 
-
 
13429
      case EX:
-
 
13430
        if (value == null) {
-
 
13431
          unsetEx();
-
 
13432
        } else {
-
 
13433
          setEx((TransactionServiceException)value);
-
 
13434
        }
-
 
13435
        break;
-
 
13436
 
-
 
13437
      }
-
 
13438
    }
-
 
13439
 
-
 
13440
    public Object getFieldValue(_Fields field) {
-
 
13441
      switch (field) {
-
 
13442
      case SUCCESS:
-
 
13443
        return Integer.valueOf(getSuccess());
-
 
13444
 
-
 
13445
      case EX:
-
 
13446
        return getEx();
-
 
13447
 
-
 
13448
      }
-
 
13449
      throw new IllegalStateException();
-
 
13450
    }
-
 
13451
 
-
 
13452
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
13453
    public boolean isSet(_Fields field) {
-
 
13454
      if (field == null) {
-
 
13455
        throw new IllegalArgumentException();
-
 
13456
      }
-
 
13457
 
-
 
13458
      switch (field) {
-
 
13459
      case SUCCESS:
-
 
13460
        return isSetSuccess();
-
 
13461
      case EX:
-
 
13462
        return isSetEx();
-
 
13463
      }
-
 
13464
      throw new IllegalStateException();
-
 
13465
    }
-
 
13466
 
-
 
13467
    @Override
-
 
13468
    public boolean equals(Object that) {
-
 
13469
      if (that == null)
-
 
13470
        return false;
-
 
13471
      if (that instanceof getOrderCount_result)
-
 
13472
        return this.equals((getOrderCount_result)that);
-
 
13473
      return false;
-
 
13474
    }
-
 
13475
 
-
 
13476
    public boolean equals(getOrderCount_result that) {
-
 
13477
      if (that == null)
-
 
13478
        return false;
-
 
13479
 
-
 
13480
      boolean this_present_success = true;
-
 
13481
      boolean that_present_success = true;
-
 
13482
      if (this_present_success || that_present_success) {
-
 
13483
        if (!(this_present_success && that_present_success))
-
 
13484
          return false;
-
 
13485
        if (this.success != that.success)
-
 
13486
          return false;
-
 
13487
      }
-
 
13488
 
-
 
13489
      boolean this_present_ex = true && this.isSetEx();
-
 
13490
      boolean that_present_ex = true && that.isSetEx();
-
 
13491
      if (this_present_ex || that_present_ex) {
-
 
13492
        if (!(this_present_ex && that_present_ex))
-
 
13493
          return false;
-
 
13494
        if (!this.ex.equals(that.ex))
-
 
13495
          return false;
-
 
13496
      }
-
 
13497
 
-
 
13498
      return true;
-
 
13499
    }
-
 
13500
 
-
 
13501
    @Override
-
 
13502
    public int hashCode() {
-
 
13503
      return 0;
-
 
13504
    }
-
 
13505
 
-
 
13506
    public int compareTo(getOrderCount_result other) {
-
 
13507
      if (!getClass().equals(other.getClass())) {
-
 
13508
        return getClass().getName().compareTo(other.getClass().getName());
-
 
13509
      }
-
 
13510
 
-
 
13511
      int lastComparison = 0;
-
 
13512
      getOrderCount_result typedOther = (getOrderCount_result)other;
-
 
13513
 
-
 
13514
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
13515
      if (lastComparison != 0) {
-
 
13516
        return lastComparison;
-
 
13517
      }
-
 
13518
      if (isSetSuccess()) {
-
 
13519
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
13520
        if (lastComparison != 0) {
-
 
13521
          return lastComparison;
-
 
13522
        }
-
 
13523
      }
-
 
13524
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
13525
      if (lastComparison != 0) {
-
 
13526
        return lastComparison;
-
 
13527
      }
-
 
13528
      if (isSetEx()) {
-
 
13529
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
13530
        if (lastComparison != 0) {
-
 
13531
          return lastComparison;
-
 
13532
        }
-
 
13533
      }
-
 
13534
      return 0;
-
 
13535
    }
-
 
13536
 
-
 
13537
    public _Fields fieldForId(int fieldId) {
-
 
13538
      return _Fields.findByThriftId(fieldId);
-
 
13539
    }
-
 
13540
 
-
 
13541
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
13542
      org.apache.thrift.protocol.TField field;
-
 
13543
      iprot.readStructBegin();
-
 
13544
      while (true)
-
 
13545
      {
-
 
13546
        field = iprot.readFieldBegin();
-
 
13547
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
13548
          break;
-
 
13549
        }
-
 
13550
        switch (field.id) {
-
 
13551
          case 0: // SUCCESS
-
 
13552
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
13553
              this.success = iprot.readI32();
-
 
13554
              setSuccessIsSet(true);
-
 
13555
            } else { 
-
 
13556
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
13557
            }
-
 
13558
            break;
-
 
13559
          case 1: // EX
-
 
13560
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
13561
              this.ex = new TransactionServiceException();
-
 
13562
              this.ex.read(iprot);
-
 
13563
            } else { 
-
 
13564
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
13565
            }
-
 
13566
            break;
-
 
13567
          default:
-
 
13568
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
13569
        }
-
 
13570
        iprot.readFieldEnd();
-
 
13571
      }
-
 
13572
      iprot.readStructEnd();
-
 
13573
      validate();
-
 
13574
    }
-
 
13575
 
-
 
13576
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
13577
      oprot.writeStructBegin(STRUCT_DESC);
-
 
13578
 
-
 
13579
      if (this.isSetSuccess()) {
-
 
13580
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
13581
        oprot.writeI32(this.success);
-
 
13582
        oprot.writeFieldEnd();
-
 
13583
      } else if (this.isSetEx()) {
-
 
13584
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
13585
        this.ex.write(oprot);
-
 
13586
        oprot.writeFieldEnd();
-
 
13587
      }
-
 
13588
      oprot.writeFieldStop();
-
 
13589
      oprot.writeStructEnd();
-
 
13590
    }
-
 
13591
 
-
 
13592
    @Override
-
 
13593
    public String toString() {
-
 
13594
      StringBuilder sb = new StringBuilder("getOrderCount_result(");
-
 
13595
      boolean first = true;
-
 
13596
 
-
 
13597
      sb.append("success:");
-
 
13598
      sb.append(this.success);
-
 
13599
      first = false;
-
 
13600
      if (!first) sb.append(", ");
-
 
13601
      sb.append("ex:");
-
 
13602
      if (this.ex == null) {
-
 
13603
        sb.append("null");
-
 
13604
      } else {
-
 
13605
        sb.append(this.ex);
-
 
13606
      }
-
 
13607
      first = false;
-
 
13608
      sb.append(")");
-
 
13609
      return sb.toString();
-
 
13610
    }
-
 
13611
 
-
 
13612
    public void validate() throws org.apache.thrift.TException {
-
 
13613
      // check for required fields
-
 
13614
    }
-
 
13615
 
-
 
13616
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
13617
      try {
-
 
13618
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
13619
      } catch (org.apache.thrift.TException te) {
-
 
13620
        throw new java.io.IOException(te);
-
 
13621
      }
-
 
13622
    }
-
 
13623
 
-
 
13624
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
13625
      try {
-
 
13626
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
13627
      } catch (org.apache.thrift.TException te) {
-
 
13628
        throw new java.io.IOException(te);
-
 
13629
      }
-
 
13630
    }
-
 
13631
 
-
 
13632
  }
-
 
13633
 
11636
  public static class getOrdersByBillingDate_args implements org.apache.thrift.TBase<getOrdersByBillingDate_args, getOrdersByBillingDate_args._Fields>, java.io.Serializable, Cloneable   {
13634
  public static class getOrdersByBillingDate_args implements org.apache.thrift.TBase<getOrdersByBillingDate_args, getOrdersByBillingDate_args._Fields>, java.io.Serializable, Cloneable   {
11637
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersByBillingDate_args");
13635
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersByBillingDate_args");
11638
 
13636
 
11639
    private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)1);
13637
    private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)1);
11640
    private static final org.apache.thrift.protocol.TField START_BILLING_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("start_billing_date", org.apache.thrift.protocol.TType.I64, (short)2);
13638
    private static final org.apache.thrift.protocol.TField START_BILLING_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("start_billing_date", org.apache.thrift.protocol.TType.I64, (short)2);
Line 12509... Line 14507...
12509
        }
14507
        }
12510
        switch (field.id) {
14508
        switch (field.id) {
12511
          case 0: // SUCCESS
14509
          case 0: // SUCCESS
12512
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
14510
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12513
              {
14511
              {
12514
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
14512
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
12515
                this.success = new ArrayList<Order>(_list20.size);
14513
                this.success = new ArrayList<Order>(_list32.size);
12516
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
14514
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
12517
                {
14515
                {
12518
                  Order _elem22; // required
14516
                  Order _elem34; // required
12519
                  _elem22 = new Order();
14517
                  _elem34 = new Order();
12520
                  _elem22.read(iprot);
14518
                  _elem34.read(iprot);
12521
                  this.success.add(_elem22);
14519
                  this.success.add(_elem34);
12522
                }
14520
                }
12523
                iprot.readListEnd();
14521
                iprot.readListEnd();
12524
              }
14522
              }
12525
            } else { 
14523
            } else { 
12526
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14524
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 12548... Line 14546...
12548
 
14546
 
12549
      if (this.isSetSuccess()) {
14547
      if (this.isSetSuccess()) {
12550
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14548
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12551
        {
14549
        {
12552
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
14550
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
12553
          for (Order _iter23 : this.success)
14551
          for (Order _iter35 : this.success)
12554
          {
14552
          {
12555
            _iter23.write(oprot);
14553
            _iter35.write(oprot);
12556
          }
14554
          }
12557
          oprot.writeListEnd();
14555
          oprot.writeListEnd();
12558
        }
14556
        }
12559
        oprot.writeFieldEnd();
14557
        oprot.writeFieldEnd();
12560
      } else if (this.isSetEx()) {
14558
      } else if (this.isSetEx()) {
Line 13552... Line 15550...
13552
        }
15550
        }
13553
        switch (field.id) {
15551
        switch (field.id) {
13554
          case 0: // SUCCESS
15552
          case 0: // SUCCESS
13555
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15553
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13556
              {
15554
              {
13557
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
15555
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
13558
                this.success = new ArrayList<Order>(_list24.size);
15556
                this.success = new ArrayList<Order>(_list36.size);
13559
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
15557
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
13560
                {
15558
                {
13561
                  Order _elem26; // required
15559
                  Order _elem38; // required
13562
                  _elem26 = new Order();
15560
                  _elem38 = new Order();
13563
                  _elem26.read(iprot);
15561
                  _elem38.read(iprot);
13564
                  this.success.add(_elem26);
15562
                  this.success.add(_elem38);
13565
                }
15563
                }
13566
                iprot.readListEnd();
15564
                iprot.readListEnd();
13567
              }
15565
              }
13568
            } else { 
15566
            } else { 
13569
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15567
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 13591... Line 15589...
13591
 
15589
 
13592
      if (this.isSetSuccess()) {
15590
      if (this.isSetSuccess()) {
13593
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15591
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13594
        {
15592
        {
13595
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
15593
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
13596
          for (Order _iter27 : this.success)
15594
          for (Order _iter39 : this.success)
13597
          {
15595
          {
13598
            _iter27.write(oprot);
15596
            _iter39.write(oprot);
13599
          }
15597
          }
13600
          oprot.writeListEnd();
15598
          oprot.writeListEnd();
13601
        }
15599
        }
13602
        oprot.writeFieldEnd();
15600
        oprot.writeFieldEnd();
13603
      } else if (this.isSetEx()) {
15601
      } else if (this.isSetEx()) {
Line 14348... Line 16346...
14348
        }
16346
        }
14349
        switch (field.id) {
16347
        switch (field.id) {
14350
          case 0: // SUCCESS
16348
          case 0: // SUCCESS
14351
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16349
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
14352
              {
16350
              {
14353
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
16351
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
14354
                this.success = new ArrayList<Long>(_list28.size);
16352
                this.success = new ArrayList<Long>(_list40.size);
14355
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
16353
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
14356
                {
16354
                {
14357
                  long _elem30; // required
16355
                  long _elem42; // required
14358
                  _elem30 = iprot.readI64();
16356
                  _elem42 = iprot.readI64();
14359
                  this.success.add(_elem30);
16357
                  this.success.add(_elem42);
14360
                }
16358
                }
14361
                iprot.readListEnd();
16359
                iprot.readListEnd();
14362
              }
16360
              }
14363
            } else { 
16361
            } else { 
14364
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16362
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 14386... Line 16384...
14386
 
16384
 
14387
      if (this.isSetSuccess()) {
16385
      if (this.isSetSuccess()) {
14388
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16386
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14389
        {
16387
        {
14390
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
16388
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
14391
          for (long _iter31 : this.success)
16389
          for (long _iter43 : this.success)
14392
          {
16390
          {
14393
            oprot.writeI64(_iter31);
16391
            oprot.writeI64(_iter43);
14394
          }
16392
          }
14395
          oprot.writeListEnd();
16393
          oprot.writeListEnd();
14396
        }
16394
        }
14397
        oprot.writeFieldEnd();
16395
        oprot.writeFieldEnd();
14398
      } else if (this.isSetEx()) {
16396
      } else if (this.isSetEx()) {
Line 15143... Line 17141...
15143
        }
17141
        }
15144
        switch (field.id) {
17142
        switch (field.id) {
15145
          case 0: // SUCCESS
17143
          case 0: // SUCCESS
15146
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17144
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15147
              {
17145
              {
15148
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
17146
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
15149
                this.success = new ArrayList<Long>(_list32.size);
17147
                this.success = new ArrayList<Long>(_list44.size);
15150
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
17148
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
15151
                {
17149
                {
15152
                  long _elem34; // required
17150
                  long _elem46; // required
15153
                  _elem34 = iprot.readI64();
17151
                  _elem46 = iprot.readI64();
15154
                  this.success.add(_elem34);
17152
                  this.success.add(_elem46);
15155
                }
17153
                }
15156
                iprot.readListEnd();
17154
                iprot.readListEnd();
15157
              }
17155
              }
15158
            } else { 
17156
            } else { 
15159
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17157
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 15181... Line 17179...
15181
 
17179
 
15182
      if (this.isSetSuccess()) {
17180
      if (this.isSetSuccess()) {
15183
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17181
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15184
        {
17182
        {
15185
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
17183
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
15186
          for (long _iter35 : this.success)
17184
          for (long _iter47 : this.success)
15187
          {
17185
          {
15188
            oprot.writeI64(_iter35);
17186
            oprot.writeI64(_iter47);
15189
          }
17187
          }
15190
          oprot.writeListEnd();
17188
          oprot.writeListEnd();
15191
        }
17189
        }
15192
        oprot.writeFieldEnd();
17190
        oprot.writeFieldEnd();
15193
      } else if (this.isSetEx()) {
17191
      } else if (this.isSetEx()) {
Line 16799... Line 18797...
16799
        }
18797
        }
16800
        switch (field.id) {
18798
        switch (field.id) {
16801
          case 0: // SUCCESS
18799
          case 0: // SUCCESS
16802
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18800
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16803
              {
18801
              {
16804
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
18802
                org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
16805
                this.success = new ArrayList<Order>(_list36.size);
18803
                this.success = new ArrayList<Order>(_list48.size);
16806
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
18804
                for (int _i49 = 0; _i49 < _list48.size; ++_i49)
16807
                {
18805
                {
16808
                  Order _elem38; // required
18806
                  Order _elem50; // required
16809
                  _elem38 = new Order();
18807
                  _elem50 = new Order();
16810
                  _elem38.read(iprot);
18808
                  _elem50.read(iprot);
16811
                  this.success.add(_elem38);
18809
                  this.success.add(_elem50);
16812
                }
18810
                }
16813
                iprot.readListEnd();
18811
                iprot.readListEnd();
16814
              }
18812
              }
16815
            } else { 
18813
            } else { 
16816
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18814
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 16838... Line 18836...
16838
 
18836
 
16839
      if (this.isSetSuccess()) {
18837
      if (this.isSetSuccess()) {
16840
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18838
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16841
        {
18839
        {
16842
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
18840
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
16843
          for (Order _iter39 : this.success)
18841
          for (Order _iter51 : this.success)
16844
          {
18842
          {
16845
            _iter39.write(oprot);
18843
            _iter51.write(oprot);
16846
          }
18844
          }
16847
          oprot.writeListEnd();
18845
          oprot.writeListEnd();
16848
        }
18846
        }
16849
        oprot.writeFieldEnd();
18847
        oprot.writeFieldEnd();
16850
      } else if (this.isSetEx()) {
18848
      } else if (this.isSetEx()) {
Line 17381... Line 19379...
17381
            }
19379
            }
17382
            break;
19380
            break;
17383
          case 4: // STATUSES
19381
          case 4: // STATUSES
17384
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19382
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17385
              {
19383
              {
17386
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
19384
                org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
17387
                this.statuses = new ArrayList<OrderStatus>(_list40.size);
19385
                this.statuses = new ArrayList<OrderStatus>(_list52.size);
17388
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
19386
                for (int _i53 = 0; _i53 < _list52.size; ++_i53)
17389
                {
19387
                {
17390
                  OrderStatus _elem42; // required
19388
                  OrderStatus _elem54; // required
17391
                  _elem42 = OrderStatus.findByValue(iprot.readI32());
19389
                  _elem54 = OrderStatus.findByValue(iprot.readI32());
17392
                  this.statuses.add(_elem42);
19390
                  this.statuses.add(_elem54);
17393
                }
19391
                }
17394
                iprot.readListEnd();
19392
                iprot.readListEnd();
17395
              }
19393
              }
17396
            } else { 
19394
            } else { 
17397
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19395
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 17421... Line 19419...
17421
      oprot.writeFieldEnd();
19419
      oprot.writeFieldEnd();
17422
      if (this.statuses != null) {
19420
      if (this.statuses != null) {
17423
        oprot.writeFieldBegin(STATUSES_FIELD_DESC);
19421
        oprot.writeFieldBegin(STATUSES_FIELD_DESC);
17424
        {
19422
        {
17425
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.statuses.size()));
19423
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.statuses.size()));
17426
          for (OrderStatus _iter43 : this.statuses)
19424
          for (OrderStatus _iter55 : this.statuses)
17427
          {
19425
          {
17428
            oprot.writeI32(_iter43.getValue());
19426
            oprot.writeI32(_iter55.getValue());
17429
          }
19427
          }
17430
          oprot.writeListEnd();
19428
          oprot.writeListEnd();
17431
        }
19429
        }
17432
        oprot.writeFieldEnd();
19430
        oprot.writeFieldEnd();
17433
      }
19431
      }
Line 17801... Line 19799...
17801
        }
19799
        }
17802
        switch (field.id) {
19800
        switch (field.id) {
17803
          case 0: // SUCCESS
19801
          case 0: // SUCCESS
17804
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19802
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17805
              {
19803
              {
17806
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
19804
                org.apache.thrift.protocol.TList _list56 = iprot.readListBegin();
17807
                this.success = new ArrayList<Order>(_list44.size);
19805
                this.success = new ArrayList<Order>(_list56.size);
17808
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
19806
                for (int _i57 = 0; _i57 < _list56.size; ++_i57)
17809
                {
19807
                {
17810
                  Order _elem46; // required
19808
                  Order _elem58; // required
17811
                  _elem46 = new Order();
19809
                  _elem58 = new Order();
17812
                  _elem46.read(iprot);
19810
                  _elem58.read(iprot);
17813
                  this.success.add(_elem46);
19811
                  this.success.add(_elem58);
17814
                }
19812
                }
17815
                iprot.readListEnd();
19813
                iprot.readListEnd();
17816
              }
19814
              }
17817
            } else { 
19815
            } else { 
17818
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19816
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 17840... Line 19838...
17840
 
19838
 
17841
      if (this.isSetSuccess()) {
19839
      if (this.isSetSuccess()) {
17842
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19840
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17843
        {
19841
        {
17844
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
19842
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
17845
          for (Order _iter47 : this.success)
19843
          for (Order _iter59 : this.success)
17846
          {
19844
          {
17847
            _iter47.write(oprot);
19845
            _iter59.write(oprot);
17848
          }
19846
          }
17849
          oprot.writeListEnd();
19847
          oprot.writeListEnd();
17850
        }
19848
        }
17851
        oprot.writeFieldEnd();
19849
        oprot.writeFieldEnd();
17852
      } else if (this.isSetEx()) {
19850
      } else if (this.isSetEx()) {
Line 19866... Line 21864...
19866
        }
21864
        }
19867
        switch (field.id) {
21865
        switch (field.id) {
19868
          case 0: // SUCCESS
21866
          case 0: // SUCCESS
19869
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
21867
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19870
              {
21868
              {
19871
                org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
21869
                org.apache.thrift.protocol.TList _list60 = iprot.readListBegin();
19872
                this.success = new ArrayList<LineItem>(_list48.size);
21870
                this.success = new ArrayList<LineItem>(_list60.size);
19873
                for (int _i49 = 0; _i49 < _list48.size; ++_i49)
21871
                for (int _i61 = 0; _i61 < _list60.size; ++_i61)
19874
                {
21872
                {
19875
                  LineItem _elem50; // required
21873
                  LineItem _elem62; // required
19876
                  _elem50 = new LineItem();
21874
                  _elem62 = new LineItem();
19877
                  _elem50.read(iprot);
21875
                  _elem62.read(iprot);
19878
                  this.success.add(_elem50);
21876
                  this.success.add(_elem62);
19879
                }
21877
                }
19880
                iprot.readListEnd();
21878
                iprot.readListEnd();
19881
              }
21879
              }
19882
            } else { 
21880
            } else { 
19883
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21881
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 19905... Line 21903...
19905
 
21903
 
19906
      if (this.isSetSuccess()) {
21904
      if (this.isSetSuccess()) {
19907
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21905
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19908
        {
21906
        {
19909
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
21907
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
19910
          for (LineItem _iter51 : this.success)
21908
          for (LineItem _iter63 : this.success)
19911
          {
21909
          {
19912
            _iter51.write(oprot);
21910
            _iter63.write(oprot);
19913
          }
21911
          }
19914
          oprot.writeListEnd();
21912
          oprot.writeListEnd();
19915
        }
21913
        }
19916
        oprot.writeFieldEnd();
21914
        oprot.writeFieldEnd();
19917
      } else if (this.isSetEx()) {
21915
      } else if (this.isSetEx()) {
Line 21351... Line 23349...
21351
        }
23349
        }
21352
        switch (field.id) {
23350
        switch (field.id) {
21353
          case 0: // SUCCESS
23351
          case 0: // SUCCESS
21354
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23352
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
21355
              {
23353
              {
21356
                org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
23354
                org.apache.thrift.protocol.TList _list64 = iprot.readListBegin();
21357
                this.success = new ArrayList<Alert>(_list52.size);
23355
                this.success = new ArrayList<Alert>(_list64.size);
21358
                for (int _i53 = 0; _i53 < _list52.size; ++_i53)
23356
                for (int _i65 = 0; _i65 < _list64.size; ++_i65)
21359
                {
23357
                {
21360
                  Alert _elem54; // required
23358
                  Alert _elem66; // required
21361
                  _elem54 = new Alert();
23359
                  _elem66 = new Alert();
21362
                  _elem54.read(iprot);
23360
                  _elem66.read(iprot);
21363
                  this.success.add(_elem54);
23361
                  this.success.add(_elem66);
21364
                }
23362
                }
21365
                iprot.readListEnd();
23363
                iprot.readListEnd();
21366
              }
23364
              }
21367
            } else { 
23365
            } else { 
21368
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23366
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 21382... Line 23380...
21382
 
23380
 
21383
      if (this.isSetSuccess()) {
23381
      if (this.isSetSuccess()) {
21384
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23382
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21385
        {
23383
        {
21386
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
23384
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
21387
          for (Alert _iter55 : this.success)
23385
          for (Alert _iter67 : this.success)
21388
          {
23386
          {
21389
            _iter55.write(oprot);
23387
            _iter67.write(oprot);
21390
          }
23388
          }
21391
          oprot.writeListEnd();
23389
          oprot.writeListEnd();
21392
        }
23390
        }
21393
        oprot.writeFieldEnd();
23391
        oprot.writeFieldEnd();
21394
      }
23392
      }
Line 23615... Line 25613...
23615
        }
25613
        }
23616
        switch (field.id) {
25614
        switch (field.id) {
23617
          case 0: // SUCCESS
25615
          case 0: // SUCCESS
23618
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
25616
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23619
              {
25617
              {
23620
                org.apache.thrift.protocol.TList _list56 = iprot.readListBegin();
25618
                org.apache.thrift.protocol.TList _list68 = iprot.readListBegin();
23621
                this.success = new ArrayList<Double>(_list56.size);
25619
                this.success = new ArrayList<Double>(_list68.size);
23622
                for (int _i57 = 0; _i57 < _list56.size; ++_i57)
25620
                for (int _i69 = 0; _i69 < _list68.size; ++_i69)
23623
                {
25621
                {
23624
                  double _elem58; // required
25622
                  double _elem70; // required
23625
                  _elem58 = iprot.readDouble();
25623
                  _elem70 = iprot.readDouble();
23626
                  this.success.add(_elem58);
25624
                  this.success.add(_elem70);
23627
                }
25625
                }
23628
                iprot.readListEnd();
25626
                iprot.readListEnd();
23629
              }
25627
              }
23630
            } else { 
25628
            } else { 
23631
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25629
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 23645... Line 25643...
23645
 
25643
 
23646
      if (this.isSetSuccess()) {
25644
      if (this.isSetSuccess()) {
23647
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25645
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23648
        {
25646
        {
23649
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));
25647
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));
23650
          for (double _iter59 : this.success)
25648
          for (double _iter71 : this.success)
23651
          {
25649
          {
23652
            oprot.writeDouble(_iter59);
25650
            oprot.writeDouble(_iter71);
23653
          }
25651
          }
23654
          oprot.writeListEnd();
25652
          oprot.writeListEnd();
23655
        }
25653
        }
23656
        oprot.writeFieldEnd();
25654
        oprot.writeFieldEnd();
23657
      }
25655
      }
Line 24237... Line 26235...
24237
        }
26235
        }
24238
        switch (field.id) {
26236
        switch (field.id) {
24239
          case 0: // SUCCESS
26237
          case 0: // SUCCESS
24240
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
26238
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24241
              {
26239
              {
24242
                org.apache.thrift.protocol.TList _list60 = iprot.readListBegin();
26240
                org.apache.thrift.protocol.TList _list72 = iprot.readListBegin();
24243
                this.success = new ArrayList<Order>(_list60.size);
26241
                this.success = new ArrayList<Order>(_list72.size);
24244
                for (int _i61 = 0; _i61 < _list60.size; ++_i61)
26242
                for (int _i73 = 0; _i73 < _list72.size; ++_i73)
24245
                {
26243
                {
24246
                  Order _elem62; // required
26244
                  Order _elem74; // required
24247
                  _elem62 = new Order();
26245
                  _elem74 = new Order();
24248
                  _elem62.read(iprot);
26246
                  _elem74.read(iprot);
24249
                  this.success.add(_elem62);
26247
                  this.success.add(_elem74);
24250
                }
26248
                }
24251
                iprot.readListEnd();
26249
                iprot.readListEnd();
24252
              }
26250
              }
24253
            } else { 
26251
            } else { 
24254
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26252
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 24268... Line 26266...
24268
 
26266
 
24269
      if (this.isSetSuccess()) {
26267
      if (this.isSetSuccess()) {
24270
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26268
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24271
        {
26269
        {
24272
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
26270
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
24273
          for (Order _iter63 : this.success)
26271
          for (Order _iter75 : this.success)
24274
          {
26272
          {
24275
            _iter63.write(oprot);
26273
            _iter75.write(oprot);
24276
          }
26274
          }
24277
          oprot.writeListEnd();
26275
          oprot.writeListEnd();
24278
        }
26276
        }
24279
        oprot.writeFieldEnd();
26277
        oprot.writeFieldEnd();
24280
      }
26278
      }
Line 24928... Line 26926...
24928
        }
26926
        }
24929
        switch (field.id) {
26927
        switch (field.id) {
24930
          case 0: // SUCCESS
26928
          case 0: // SUCCESS
24931
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
26929
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24932
              {
26930
              {
24933
                org.apache.thrift.protocol.TList _list64 = iprot.readListBegin();
26931
                org.apache.thrift.protocol.TList _list76 = iprot.readListBegin();
24934
                this.success = new ArrayList<Order>(_list64.size);
26932
                this.success = new ArrayList<Order>(_list76.size);
24935
                for (int _i65 = 0; _i65 < _list64.size; ++_i65)
26933
                for (int _i77 = 0; _i77 < _list76.size; ++_i77)
24936
                {
26934
                {
24937
                  Order _elem66; // required
26935
                  Order _elem78; // required
24938
                  _elem66 = new Order();
26936
                  _elem78 = new Order();
24939
                  _elem66.read(iprot);
26937
                  _elem78.read(iprot);
24940
                  this.success.add(_elem66);
26938
                  this.success.add(_elem78);
24941
                }
26939
                }
24942
                iprot.readListEnd();
26940
                iprot.readListEnd();
24943
              }
26941
              }
24944
            } else { 
26942
            } else { 
24945
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26943
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 24967... Line 26965...
24967
 
26965
 
24968
      if (this.isSetSuccess()) {
26966
      if (this.isSetSuccess()) {
24969
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26967
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24970
        {
26968
        {
24971
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
26969
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
24972
          for (Order _iter67 : this.success)
26970
          for (Order _iter79 : this.success)
24973
          {
26971
          {
24974
            _iter67.write(oprot);
26972
            _iter79.write(oprot);
24975
          }
26973
          }
24976
          oprot.writeListEnd();
26974
          oprot.writeListEnd();
24977
        }
26975
        }
24978
        oprot.writeFieldEnd();
26976
        oprot.writeFieldEnd();
24979
      } else if (this.isSetEx()) {
26977
      } else if (this.isSetEx()) {
Line 30847... Line 32845...
30847
            }
32845
            }
30848
            break;
32846
            break;
30849
          case 2: // PICKUP_DETAILS
32847
          case 2: // PICKUP_DETAILS
30850
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
32848
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
30851
              {
32849
              {
30852
                org.apache.thrift.protocol.TMap _map68 = iprot.readMapBegin();
32850
                org.apache.thrift.protocol.TMap _map80 = iprot.readMapBegin();
30853
                this.pickupDetails = new HashMap<String,String>(2*_map68.size);
32851
                this.pickupDetails = new HashMap<String,String>(2*_map80.size);
30854
                for (int _i69 = 0; _i69 < _map68.size; ++_i69)
32852
                for (int _i81 = 0; _i81 < _map80.size; ++_i81)
30855
                {
32853
                {
30856
                  String _key70; // required
32854
                  String _key82; // required
30857
                  String _val71; // required
32855
                  String _val83; // required
30858
                  _key70 = iprot.readString();
32856
                  _key82 = iprot.readString();
30859
                  _val71 = iprot.readString();
32857
                  _val83 = iprot.readString();
30860
                  this.pickupDetails.put(_key70, _val71);
32858
                  this.pickupDetails.put(_key82, _val83);
30861
                }
32859
                }
30862
                iprot.readMapEnd();
32860
                iprot.readMapEnd();
30863
              }
32861
              }
30864
            } else { 
32862
            } else { 
30865
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32863
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 30883... Line 32881...
30883
      oprot.writeFieldEnd();
32881
      oprot.writeFieldEnd();
30884
      if (this.pickupDetails != null) {
32882
      if (this.pickupDetails != null) {
30885
        oprot.writeFieldBegin(PICKUP_DETAILS_FIELD_DESC);
32883
        oprot.writeFieldBegin(PICKUP_DETAILS_FIELD_DESC);
30886
        {
32884
        {
30887
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.pickupDetails.size()));
32885
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.pickupDetails.size()));
30888
          for (Map.Entry<String, String> _iter72 : this.pickupDetails.entrySet())
32886
          for (Map.Entry<String, String> _iter84 : this.pickupDetails.entrySet())
30889
          {
32887
          {
30890
            oprot.writeString(_iter72.getKey());
32888
            oprot.writeString(_iter84.getKey());
30891
            oprot.writeString(_iter72.getValue());
32889
            oprot.writeString(_iter84.getValue());
30892
          }
32890
          }
30893
          oprot.writeMapEnd();
32891
          oprot.writeMapEnd();
30894
        }
32892
        }
30895
        oprot.writeFieldEnd();
32893
        oprot.writeFieldEnd();
30896
      }
32894
      }
Line 31256... Line 33254...
31256
        }
33254
        }
31257
        switch (field.id) {
33255
        switch (field.id) {
31258
          case 0: // SUCCESS
33256
          case 0: // SUCCESS
31259
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
33257
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
31260
              {
33258
              {
31261
                org.apache.thrift.protocol.TList _list73 = iprot.readListBegin();
33259
                org.apache.thrift.protocol.TList _list85 = iprot.readListBegin();
31262
                this.success = new ArrayList<Order>(_list73.size);
33260
                this.success = new ArrayList<Order>(_list85.size);
31263
                for (int _i74 = 0; _i74 < _list73.size; ++_i74)
33261
                for (int _i86 = 0; _i86 < _list85.size; ++_i86)
31264
                {
33262
                {
31265
                  Order _elem75; // required
33263
                  Order _elem87; // required
31266
                  _elem75 = new Order();
33264
                  _elem87 = new Order();
31267
                  _elem75.read(iprot);
33265
                  _elem87.read(iprot);
31268
                  this.success.add(_elem75);
33266
                  this.success.add(_elem87);
31269
                }
33267
                }
31270
                iprot.readListEnd();
33268
                iprot.readListEnd();
31271
              }
33269
              }
31272
            } else { 
33270
            } else { 
31273
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33271
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 31295... Line 33293...
31295
 
33293
 
31296
      if (this.isSetSuccess()) {
33294
      if (this.isSetSuccess()) {
31297
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33295
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31298
        {
33296
        {
31299
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
33297
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
31300
          for (Order _iter76 : this.success)
33298
          for (Order _iter88 : this.success)
31301
          {
33299
          {
31302
            _iter76.write(oprot);
33300
            _iter88.write(oprot);
31303
          }
33301
          }
31304
          oprot.writeListEnd();
33302
          oprot.writeListEnd();
31305
        }
33303
        }
31306
        oprot.writeFieldEnd();
33304
        oprot.writeFieldEnd();
31307
      } else if (this.isSetEx()) {
33305
      } else if (this.isSetEx()) {
Line 31691... Line 33689...
31691
            }
33689
            }
31692
            break;
33690
            break;
31693
          case 2: // DELIVERED_ORDERS
33691
          case 2: // DELIVERED_ORDERS
31694
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
33692
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
31695
              {
33693
              {
31696
                org.apache.thrift.protocol.TMap _map77 = iprot.readMapBegin();
33694
                org.apache.thrift.protocol.TMap _map89 = iprot.readMapBegin();
31697
                this.deliveredOrders = new HashMap<String,String>(2*_map77.size);
33695
                this.deliveredOrders = new HashMap<String,String>(2*_map89.size);
31698
                for (int _i78 = 0; _i78 < _map77.size; ++_i78)
33696
                for (int _i90 = 0; _i90 < _map89.size; ++_i90)
31699
                {
33697
                {
31700
                  String _key79; // required
33698
                  String _key91; // required
31701
                  String _val80; // required
33699
                  String _val92; // required
31702
                  _key79 = iprot.readString();
33700
                  _key91 = iprot.readString();
31703
                  _val80 = iprot.readString();
33701
                  _val92 = iprot.readString();
31704
                  this.deliveredOrders.put(_key79, _val80);
33702
                  this.deliveredOrders.put(_key91, _val92);
31705
                }
33703
                }
31706
                iprot.readMapEnd();
33704
                iprot.readMapEnd();
31707
              }
33705
              }
31708
            } else { 
33706
            } else { 
31709
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33707
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 31727... Line 33725...
31727
      oprot.writeFieldEnd();
33725
      oprot.writeFieldEnd();
31728
      if (this.deliveredOrders != null) {
33726
      if (this.deliveredOrders != null) {
31729
        oprot.writeFieldBegin(DELIVERED_ORDERS_FIELD_DESC);
33727
        oprot.writeFieldBegin(DELIVERED_ORDERS_FIELD_DESC);
31730
        {
33728
        {
31731
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.deliveredOrders.size()));
33729
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.deliveredOrders.size()));
31732
          for (Map.Entry<String, String> _iter81 : this.deliveredOrders.entrySet())
33730
          for (Map.Entry<String, String> _iter93 : this.deliveredOrders.entrySet())
31733
          {
33731
          {
31734
            oprot.writeString(_iter81.getKey());
33732
            oprot.writeString(_iter93.getKey());
31735
            oprot.writeString(_iter81.getValue());
33733
            oprot.writeString(_iter93.getValue());
31736
          }
33734
          }
31737
          oprot.writeMapEnd();
33735
          oprot.writeMapEnd();
31738
        }
33736
        }
31739
        oprot.writeFieldEnd();
33737
        oprot.writeFieldEnd();
31740
      }
33738
      }
Line 32410... Line 34408...
32410
            }
34408
            }
32411
            break;
34409
            break;
32412
          case 2: // RETURNED_ORDERS
34410
          case 2: // RETURNED_ORDERS
32413
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
34411
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
32414
              {
34412
              {
32415
                org.apache.thrift.protocol.TMap _map82 = iprot.readMapBegin();
34413
                org.apache.thrift.protocol.TMap _map94 = iprot.readMapBegin();
32416
                this.returnedOrders = new HashMap<String,String>(2*_map82.size);
34414
                this.returnedOrders = new HashMap<String,String>(2*_map94.size);
32417
                for (int _i83 = 0; _i83 < _map82.size; ++_i83)
34415
                for (int _i95 = 0; _i95 < _map94.size; ++_i95)
32418
                {
34416
                {
32419
                  String _key84; // required
34417
                  String _key96; // required
32420
                  String _val85; // required
34418
                  String _val97; // required
32421
                  _key84 = iprot.readString();
34419
                  _key96 = iprot.readString();
32422
                  _val85 = iprot.readString();
34420
                  _val97 = iprot.readString();
32423
                  this.returnedOrders.put(_key84, _val85);
34421
                  this.returnedOrders.put(_key96, _val97);
32424
                }
34422
                }
32425
                iprot.readMapEnd();
34423
                iprot.readMapEnd();
32426
              }
34424
              }
32427
            } else { 
34425
            } else { 
32428
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34426
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 32446... Line 34444...
32446
      oprot.writeFieldEnd();
34444
      oprot.writeFieldEnd();
32447
      if (this.returnedOrders != null) {
34445
      if (this.returnedOrders != null) {
32448
        oprot.writeFieldBegin(RETURNED_ORDERS_FIELD_DESC);
34446
        oprot.writeFieldBegin(RETURNED_ORDERS_FIELD_DESC);
32449
        {
34447
        {
32450
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.returnedOrders.size()));
34448
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.returnedOrders.size()));
32451
          for (Map.Entry<String, String> _iter86 : this.returnedOrders.entrySet())
34449
          for (Map.Entry<String, String> _iter98 : this.returnedOrders.entrySet())
32452
          {
34450
          {
32453
            oprot.writeString(_iter86.getKey());
34451
            oprot.writeString(_iter98.getKey());
32454
            oprot.writeString(_iter86.getValue());
34452
            oprot.writeString(_iter98.getValue());
32455
          }
34453
          }
32456
          oprot.writeMapEnd();
34454
          oprot.writeMapEnd();
32457
        }
34455
        }
32458
        oprot.writeFieldEnd();
34456
        oprot.writeFieldEnd();
32459
      }
34457
      }
Line 33129... Line 35127...
33129
            }
35127
            }
33130
            break;
35128
            break;
33131
          case 2: // UNDELIVERED_ORDERS
35129
          case 2: // UNDELIVERED_ORDERS
33132
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
35130
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
33133
              {
35131
              {
33134
                org.apache.thrift.protocol.TMap _map87 = iprot.readMapBegin();
35132
                org.apache.thrift.protocol.TMap _map99 = iprot.readMapBegin();
33135
                this.undeliveredOrders = new HashMap<String,String>(2*_map87.size);
35133
                this.undeliveredOrders = new HashMap<String,String>(2*_map99.size);
33136
                for (int _i88 = 0; _i88 < _map87.size; ++_i88)
35134
                for (int _i100 = 0; _i100 < _map99.size; ++_i100)
33137
                {
35135
                {
33138
                  String _key89; // required
35136
                  String _key101; // required
33139
                  String _val90; // required
35137
                  String _val102; // required
33140
                  _key89 = iprot.readString();
35138
                  _key101 = iprot.readString();
33141
                  _val90 = iprot.readString();
35139
                  _val102 = iprot.readString();
33142
                  this.undeliveredOrders.put(_key89, _val90);
35140
                  this.undeliveredOrders.put(_key101, _val102);
33143
                }
35141
                }
33144
                iprot.readMapEnd();
35142
                iprot.readMapEnd();
33145
              }
35143
              }
33146
            } else { 
35144
            } else { 
33147
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35145
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 33165... Line 35163...
33165
      oprot.writeFieldEnd();
35163
      oprot.writeFieldEnd();
33166
      if (this.undeliveredOrders != null) {
35164
      if (this.undeliveredOrders != null) {
33167
        oprot.writeFieldBegin(UNDELIVERED_ORDERS_FIELD_DESC);
35165
        oprot.writeFieldBegin(UNDELIVERED_ORDERS_FIELD_DESC);
33168
        {
35166
        {
33169
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.undeliveredOrders.size()));
35167
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.undeliveredOrders.size()));
33170
          for (Map.Entry<String, String> _iter91 : this.undeliveredOrders.entrySet())
35168
          for (Map.Entry<String, String> _iter103 : this.undeliveredOrders.entrySet())
33171
          {
35169
          {
33172
            oprot.writeString(_iter91.getKey());
35170
            oprot.writeString(_iter103.getKey());
33173
            oprot.writeString(_iter91.getValue());
35171
            oprot.writeString(_iter103.getValue());
33174
          }
35172
          }
33175
          oprot.writeMapEnd();
35173
          oprot.writeMapEnd();
33176
        }
35174
        }
33177
        oprot.writeFieldEnd();
35175
        oprot.writeFieldEnd();
33178
      }
35176
      }
Line 34139... Line 36137...
34139
        }
36137
        }
34140
        switch (field.id) {
36138
        switch (field.id) {
34141
          case 0: // SUCCESS
36139
          case 0: // SUCCESS
34142
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
36140
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
34143
              {
36141
              {
34144
                org.apache.thrift.protocol.TList _list92 = iprot.readListBegin();
36142
                org.apache.thrift.protocol.TList _list104 = iprot.readListBegin();
34145
                this.success = new ArrayList<Order>(_list92.size);
36143
                this.success = new ArrayList<Order>(_list104.size);
34146
                for (int _i93 = 0; _i93 < _list92.size; ++_i93)
36144
                for (int _i105 = 0; _i105 < _list104.size; ++_i105)
34147
                {
36145
                {
34148
                  Order _elem94; // required
36146
                  Order _elem106; // required
34149
                  _elem94 = new Order();
36147
                  _elem106 = new Order();
34150
                  _elem94.read(iprot);
36148
                  _elem106.read(iprot);
34151
                  this.success.add(_elem94);
36149
                  this.success.add(_elem106);
34152
                }
36150
                }
34153
                iprot.readListEnd();
36151
                iprot.readListEnd();
34154
              }
36152
              }
34155
            } else { 
36153
            } else { 
34156
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36154
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 34170... Line 36168...
34170
 
36168
 
34171
      if (this.isSetSuccess()) {
36169
      if (this.isSetSuccess()) {
34172
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
36170
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34173
        {
36171
        {
34174
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
36172
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
34175
          for (Order _iter95 : this.success)
36173
          for (Order _iter107 : this.success)
34176
          {
36174
          {
34177
            _iter95.write(oprot);
36175
            _iter107.write(oprot);
34178
          }
36176
          }
34179
          oprot.writeListEnd();
36177
          oprot.writeListEnd();
34180
        }
36178
        }
34181
        oprot.writeFieldEnd();
36179
        oprot.writeFieldEnd();
34182
      }
36180
      }
Line 36661... Line 38659...
36661
            }
38659
            }
36662
            break;
38660
            break;
36663
          case 2: // PICKUP_DETAILS
38661
          case 2: // PICKUP_DETAILS
36664
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
38662
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
36665
              {
38663
              {
36666
                org.apache.thrift.protocol.TMap _map96 = iprot.readMapBegin();
38664
                org.apache.thrift.protocol.TMap _map108 = iprot.readMapBegin();
36667
                this.pickupDetails = new HashMap<String,String>(2*_map96.size);
38665
                this.pickupDetails = new HashMap<String,String>(2*_map108.size);
36668
                for (int _i97 = 0; _i97 < _map96.size; ++_i97)
38666
                for (int _i109 = 0; _i109 < _map108.size; ++_i109)
36669
                {
38667
                {
36670
                  String _key98; // required
38668
                  String _key110; // required
36671
                  String _val99; // required
38669
                  String _val111; // required
36672
                  _key98 = iprot.readString();
38670
                  _key110 = iprot.readString();
36673
                  _val99 = iprot.readString();
38671
                  _val111 = iprot.readString();
36674
                  this.pickupDetails.put(_key98, _val99);
38672
                  this.pickupDetails.put(_key110, _val111);
36675
                }
38673
                }
36676
                iprot.readMapEnd();
38674
                iprot.readMapEnd();
36677
              }
38675
              }
36678
            } else { 
38676
            } else { 
36679
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38677
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 36697... Line 38695...
36697
      oprot.writeFieldEnd();
38695
      oprot.writeFieldEnd();
36698
      if (this.pickupDetails != null) {
38696
      if (this.pickupDetails != null) {
36699
        oprot.writeFieldBegin(PICKUP_DETAILS_FIELD_DESC);
38697
        oprot.writeFieldBegin(PICKUP_DETAILS_FIELD_DESC);
36700
        {
38698
        {
36701
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.pickupDetails.size()));
38699
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.pickupDetails.size()));
36702
          for (Map.Entry<String, String> _iter100 : this.pickupDetails.entrySet())
38700
          for (Map.Entry<String, String> _iter112 : this.pickupDetails.entrySet())
36703
          {
38701
          {
36704
            oprot.writeString(_iter100.getKey());
38702
            oprot.writeString(_iter112.getKey());
36705
            oprot.writeString(_iter100.getValue());
38703
            oprot.writeString(_iter112.getValue());
36706
          }
38704
          }
36707
          oprot.writeMapEnd();
38705
          oprot.writeMapEnd();
36708
        }
38706
        }
36709
        oprot.writeFieldEnd();
38707
        oprot.writeFieldEnd();
36710
      }
38708
      }
Line 37002... Line 39000...
37002
        }
39000
        }
37003
        switch (field.id) {
39001
        switch (field.id) {
37004
          case 0: // SUCCESS
39002
          case 0: // SUCCESS
37005
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
39003
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
37006
              {
39004
              {
37007
                org.apache.thrift.protocol.TList _list101 = iprot.readListBegin();
39005
                org.apache.thrift.protocol.TList _list113 = iprot.readListBegin();
37008
                this.success = new ArrayList<Order>(_list101.size);
39006
                this.success = new ArrayList<Order>(_list113.size);
37009
                for (int _i102 = 0; _i102 < _list101.size; ++_i102)
39007
                for (int _i114 = 0; _i114 < _list113.size; ++_i114)
37010
                {
39008
                {
37011
                  Order _elem103; // required
39009
                  Order _elem115; // required
37012
                  _elem103 = new Order();
39010
                  _elem115 = new Order();
37013
                  _elem103.read(iprot);
39011
                  _elem115.read(iprot);
37014
                  this.success.add(_elem103);
39012
                  this.success.add(_elem115);
37015
                }
39013
                }
37016
                iprot.readListEnd();
39014
                iprot.readListEnd();
37017
              }
39015
              }
37018
            } else { 
39016
            } else { 
37019
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39017
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 37033... Line 39031...
37033
 
39031
 
37034
      if (this.isSetSuccess()) {
39032
      if (this.isSetSuccess()) {
37035
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
39033
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
37036
        {
39034
        {
37037
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
39035
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
37038
          for (Order _iter104 : this.success)
39036
          for (Order _iter116 : this.success)
37039
          {
39037
          {
37040
            _iter104.write(oprot);
39038
            _iter116.write(oprot);
37041
          }
39039
          }
37042
          oprot.writeListEnd();
39040
          oprot.writeListEnd();
37043
        }
39041
        }
37044
        oprot.writeFieldEnd();
39042
        oprot.writeFieldEnd();
37045
      }
39043
      }
Line 40742... Line 42740...
40742
        }
42740
        }
40743
        switch (field.id) {
42741
        switch (field.id) {
40744
          case 0: // SUCCESS
42742
          case 0: // SUCCESS
40745
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
42743
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
40746
              {
42744
              {
40747
                org.apache.thrift.protocol.TList _list105 = iprot.readListBegin();
42745
                org.apache.thrift.protocol.TList _list117 = iprot.readListBegin();
40748
                this.success = new ArrayList<ReturnOrder>(_list105.size);
42746
                this.success = new ArrayList<ReturnOrder>(_list117.size);
40749
                for (int _i106 = 0; _i106 < _list105.size; ++_i106)
42747
                for (int _i118 = 0; _i118 < _list117.size; ++_i118)
40750
                {
42748
                {
40751
                  ReturnOrder _elem107; // required
42749
                  ReturnOrder _elem119; // required
40752
                  _elem107 = new ReturnOrder();
42750
                  _elem119 = new ReturnOrder();
40753
                  _elem107.read(iprot);
42751
                  _elem119.read(iprot);
40754
                  this.success.add(_elem107);
42752
                  this.success.add(_elem119);
40755
                }
42753
                }
40756
                iprot.readListEnd();
42754
                iprot.readListEnd();
40757
              }
42755
              }
40758
            } else { 
42756
            } else { 
40759
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42757
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 40773... Line 42771...
40773
 
42771
 
40774
      if (this.isSetSuccess()) {
42772
      if (this.isSetSuccess()) {
40775
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
42773
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
40776
        {
42774
        {
40777
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
42775
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
40778
          for (ReturnOrder _iter108 : this.success)
42776
          for (ReturnOrder _iter120 : this.success)
40779
          {
42777
          {
40780
            _iter108.write(oprot);
42778
            _iter120.write(oprot);
40781
          }
42779
          }
40782
          oprot.writeListEnd();
42780
          oprot.writeListEnd();
40783
        }
42781
        }
40784
        oprot.writeFieldEnd();
42782
        oprot.writeFieldEnd();
40785
      }
42783
      }
Line 46345... Line 48343...
46345
        }
48343
        }
46346
        switch (field.id) {
48344
        switch (field.id) {
46347
          case 1: // COLLECTED_AMOUNT_MAP
48345
          case 1: // COLLECTED_AMOUNT_MAP
46348
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
48346
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
46349
              {
48347
              {
46350
                org.apache.thrift.protocol.TMap _map109 = iprot.readMapBegin();
48348
                org.apache.thrift.protocol.TMap _map121 = iprot.readMapBegin();
46351
                this.collectedAmountMap = new HashMap<String,Double>(2*_map109.size);
48349
                this.collectedAmountMap = new HashMap<String,Double>(2*_map121.size);
46352
                for (int _i110 = 0; _i110 < _map109.size; ++_i110)
48350
                for (int _i122 = 0; _i122 < _map121.size; ++_i122)
46353
                {
48351
                {
46354
                  String _key111; // required
48352
                  String _key123; // required
46355
                  double _val112; // required
48353
                  double _val124; // required
46356
                  _key111 = iprot.readString();
48354
                  _key123 = iprot.readString();
46357
                  _val112 = iprot.readDouble();
48355
                  _val124 = iprot.readDouble();
46358
                  this.collectedAmountMap.put(_key111, _val112);
48356
                  this.collectedAmountMap.put(_key123, _val124);
46359
                }
48357
                }
46360
                iprot.readMapEnd();
48358
                iprot.readMapEnd();
46361
              }
48359
              }
46362
            } else { 
48360
            } else { 
46363
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48361
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 46400... Line 48398...
46400
      oprot.writeStructBegin(STRUCT_DESC);
48398
      oprot.writeStructBegin(STRUCT_DESC);
46401
      if (this.collectedAmountMap != null) {
48399
      if (this.collectedAmountMap != null) {
46402
        oprot.writeFieldBegin(COLLECTED_AMOUNT_MAP_FIELD_DESC);
48400
        oprot.writeFieldBegin(COLLECTED_AMOUNT_MAP_FIELD_DESC);
46403
        {
48401
        {
46404
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.DOUBLE, this.collectedAmountMap.size()));
48402
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.DOUBLE, this.collectedAmountMap.size()));
46405
          for (Map.Entry<String, Double> _iter113 : this.collectedAmountMap.entrySet())
48403
          for (Map.Entry<String, Double> _iter125 : this.collectedAmountMap.entrySet())
46406
          {
48404
          {
46407
            oprot.writeString(_iter113.getKey());
48405
            oprot.writeString(_iter125.getKey());
46408
            oprot.writeDouble(_iter113.getValue());
48406
            oprot.writeDouble(_iter125.getValue());
46409
          }
48407
          }
46410
          oprot.writeMapEnd();
48408
          oprot.writeMapEnd();
46411
        }
48409
        }
46412
        oprot.writeFieldEnd();
48410
        oprot.writeFieldEnd();
46413
      }
48411
      }
Line 46807... Line 48805...
46807
        }
48805
        }
46808
        switch (field.id) {
48806
        switch (field.id) {
46809
          case 0: // SUCCESS
48807
          case 0: // SUCCESS
46810
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
48808
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
46811
              {
48809
              {
46812
                org.apache.thrift.protocol.TMap _map114 = iprot.readMapBegin();
48810
                org.apache.thrift.protocol.TMap _map126 = iprot.readMapBegin();
46813
                this.success = new HashMap<String,String>(2*_map114.size);
48811
                this.success = new HashMap<String,String>(2*_map126.size);
46814
                for (int _i115 = 0; _i115 < _map114.size; ++_i115)
48812
                for (int _i127 = 0; _i127 < _map126.size; ++_i127)
46815
                {
48813
                {
46816
                  String _key116; // required
48814
                  String _key128; // required
46817
                  String _val117; // required
48815
                  String _val129; // required
46818
                  _key116 = iprot.readString();
48816
                  _key128 = iprot.readString();
46819
                  _val117 = iprot.readString();
48817
                  _val129 = iprot.readString();
46820
                  this.success.put(_key116, _val117);
48818
                  this.success.put(_key128, _val129);
46821
                }
48819
                }
46822
                iprot.readMapEnd();
48820
                iprot.readMapEnd();
46823
              }
48821
              }
46824
            } else { 
48822
            } else { 
46825
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48823
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 46847... Line 48845...
46847
 
48845
 
46848
      if (this.isSetSuccess()) {
48846
      if (this.isSetSuccess()) {
46849
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
48847
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
46850
        {
48848
        {
46851
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.success.size()));
48849
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.success.size()));
46852
          for (Map.Entry<String, String> _iter118 : this.success.entrySet())
48850
          for (Map.Entry<String, String> _iter130 : this.success.entrySet())
46853
          {
48851
          {
46854
            oprot.writeString(_iter118.getKey());
48852
            oprot.writeString(_iter130.getKey());
46855
            oprot.writeString(_iter118.getValue());
48853
            oprot.writeString(_iter130.getValue());
46856
          }
48854
          }
46857
          oprot.writeMapEnd();
48855
          oprot.writeMapEnd();
46858
        }
48856
        }
46859
        oprot.writeFieldEnd();
48857
        oprot.writeFieldEnd();
46860
      } else if (this.isSetEx()) {
48858
      } else if (this.isSetEx()) {
Line 47466... Line 49464...
47466
        }
49464
        }
47467
        switch (field.id) {
49465
        switch (field.id) {
47468
          case 0: // SUCCESS
49466
          case 0: // SUCCESS
47469
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
49467
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
47470
              {
49468
              {
47471
                org.apache.thrift.protocol.TList _list119 = iprot.readListBegin();
49469
                org.apache.thrift.protocol.TList _list131 = iprot.readListBegin();
47472
                this.success = new ArrayList<Long>(_list119.size);
49470
                this.success = new ArrayList<Long>(_list131.size);
47473
                for (int _i120 = 0; _i120 < _list119.size; ++_i120)
49471
                for (int _i132 = 0; _i132 < _list131.size; ++_i132)
47474
                {
49472
                {
47475
                  long _elem121; // required
49473
                  long _elem133; // required
47476
                  _elem121 = iprot.readI64();
49474
                  _elem133 = iprot.readI64();
47477
                  this.success.add(_elem121);
49475
                  this.success.add(_elem133);
47478
                }
49476
                }
47479
                iprot.readListEnd();
49477
                iprot.readListEnd();
47480
              }
49478
              }
47481
            } else { 
49479
            } else { 
47482
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49480
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 47496... Line 49494...
47496
 
49494
 
47497
      if (this.isSetSuccess()) {
49495
      if (this.isSetSuccess()) {
47498
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
49496
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
47499
        {
49497
        {
47500
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
49498
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
47501
          for (long _iter122 : this.success)
49499
          for (long _iter134 : this.success)
47502
          {
49500
          {
47503
            oprot.writeI64(_iter122);
49501
            oprot.writeI64(_iter134);
47504
          }
49502
          }
47505
          oprot.writeListEnd();
49503
          oprot.writeListEnd();
47506
        }
49504
        }
47507
        oprot.writeFieldEnd();
49505
        oprot.writeFieldEnd();
47508
      }
49506
      }
Line 48592... Line 50590...
48592
        }
50590
        }
48593
        switch (field.id) {
50591
        switch (field.id) {
48594
          case 0: // SUCCESS
50592
          case 0: // SUCCESS
48595
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
50593
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
48596
              {
50594
              {
48597
                org.apache.thrift.protocol.TMap _map123 = iprot.readMapBegin();
50595
                org.apache.thrift.protocol.TMap _map135 = iprot.readMapBegin();
48598
                this.success = new HashMap<Long,Long>(2*_map123.size);
50596
                this.success = new HashMap<Long,Long>(2*_map135.size);
48599
                for (int _i124 = 0; _i124 < _map123.size; ++_i124)
50597
                for (int _i136 = 0; _i136 < _map135.size; ++_i136)
48600
                {
50598
                {
48601
                  long _key125; // required
50599
                  long _key137; // required
48602
                  long _val126; // required
50600
                  long _val138; // required
48603
                  _key125 = iprot.readI64();
50601
                  _key137 = iprot.readI64();
48604
                  _val126 = iprot.readI64();
50602
                  _val138 = iprot.readI64();
48605
                  this.success.put(_key125, _val126);
50603
                  this.success.put(_key137, _val138);
48606
                }
50604
                }
48607
                iprot.readMapEnd();
50605
                iprot.readMapEnd();
48608
              }
50606
              }
48609
            } else { 
50607
            } else { 
48610
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50608
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 48624... Line 50622...
48624
 
50622
 
48625
      if (this.isSetSuccess()) {
50623
      if (this.isSetSuccess()) {
48626
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
50624
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
48627
        {
50625
        {
48628
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
50626
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
48629
          for (Map.Entry<Long, Long> _iter127 : this.success.entrySet())
50627
          for (Map.Entry<Long, Long> _iter139 : this.success.entrySet())
48630
          {
50628
          {
48631
            oprot.writeI64(_iter127.getKey());
50629
            oprot.writeI64(_iter139.getKey());
48632
            oprot.writeI64(_iter127.getValue());
50630
            oprot.writeI64(_iter139.getValue());
48633
          }
50631
          }
48634
          oprot.writeMapEnd();
50632
          oprot.writeMapEnd();
48635
        }
50633
        }
48636
        oprot.writeFieldEnd();
50634
        oprot.writeFieldEnd();
48637
      }
50635
      }