Subversion Repositories SmartDukaan

Rev

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

Rev 6747 Rev 6821
Line 293... Line 293...
293
 
293
 
294
    public int getAllIgnoredInventoryupdateItemsCount() throws org.apache.thrift.TException;
294
    public int getAllIgnoredInventoryupdateItemsCount() throws org.apache.thrift.TException;
295
 
295
 
296
    public List<Long> getIgnoredInventoryUpdateItemids(int offset, int limit) throws org.apache.thrift.TException;
296
    public List<Long> getIgnoredInventoryUpdateItemids(int offset, int limit) throws org.apache.thrift.TException;
297
 
297
 
-
 
298
    public void updateItemStockPurchaseParams(long item_id, int numOfDaysStock, long minStockLevel) throws org.apache.thrift.TException;
-
 
299
 
-
 
300
    public ItemStockPurchaseParams getItemStockPurchaseParams(long itemId) throws org.apache.thrift.TException;
-
 
301
 
-
 
302
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date) throws org.apache.thrift.TException;
-
 
303
 
298
  }
304
  }
299
 
305
 
300
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
306
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
301
 
307
 
302
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
308
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
Line 385... Line 391...
385
 
391
 
386
    public void getAllIgnoredInventoryupdateItemsCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllIgnoredInventoryupdateItemsCount_call> resultHandler) throws org.apache.thrift.TException;
392
    public void getAllIgnoredInventoryupdateItemsCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllIgnoredInventoryupdateItemsCount_call> resultHandler) throws org.apache.thrift.TException;
387
 
393
 
388
    public void getIgnoredInventoryUpdateItemids(int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getIgnoredInventoryUpdateItemids_call> resultHandler) throws org.apache.thrift.TException;
394
    public void getIgnoredInventoryUpdateItemids(int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getIgnoredInventoryUpdateItemids_call> resultHandler) throws org.apache.thrift.TException;
389
 
395
 
-
 
396
    public void updateItemStockPurchaseParams(long item_id, int numOfDaysStock, long minStockLevel, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException;
-
 
397
 
-
 
398
    public void getItemStockPurchaseParams(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException;
-
 
399
 
-
 
400
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOosStatusForItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
401
 
390
  }
402
  }
391
 
403
 
392
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
404
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
393
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
405
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
394
      public Factory() {}
406
      public Factory() {}
Line 1476... Line 1488...
1476
        return result.success;
1488
        return result.success;
1477
      }
1489
      }
1478
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getIgnoredInventoryUpdateItemids failed: unknown result");
1490
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getIgnoredInventoryUpdateItemids failed: unknown result");
1479
    }
1491
    }
1480
 
1492
 
-
 
1493
    public void updateItemStockPurchaseParams(long item_id, int numOfDaysStock, long minStockLevel) throws org.apache.thrift.TException
-
 
1494
    {
-
 
1495
      send_updateItemStockPurchaseParams(item_id, numOfDaysStock, minStockLevel);
-
 
1496
      recv_updateItemStockPurchaseParams();
-
 
1497
    }
-
 
1498
 
-
 
1499
    public void send_updateItemStockPurchaseParams(long item_id, int numOfDaysStock, long minStockLevel) throws org.apache.thrift.TException
-
 
1500
    {
-
 
1501
      updateItemStockPurchaseParams_args args = new updateItemStockPurchaseParams_args();
-
 
1502
      args.setItem_id(item_id);
-
 
1503
      args.setNumOfDaysStock(numOfDaysStock);
-
 
1504
      args.setMinStockLevel(minStockLevel);
-
 
1505
      sendBase("updateItemStockPurchaseParams", args);
-
 
1506
    }
-
 
1507
 
-
 
1508
    public void recv_updateItemStockPurchaseParams() throws org.apache.thrift.TException
-
 
1509
    {
-
 
1510
      updateItemStockPurchaseParams_result result = new updateItemStockPurchaseParams_result();
-
 
1511
      receiveBase(result, "updateItemStockPurchaseParams");
-
 
1512
      return;
-
 
1513
    }
-
 
1514
 
-
 
1515
    public ItemStockPurchaseParams getItemStockPurchaseParams(long itemId) throws org.apache.thrift.TException
-
 
1516
    {
-
 
1517
      send_getItemStockPurchaseParams(itemId);
-
 
1518
      return recv_getItemStockPurchaseParams();
-
 
1519
    }
-
 
1520
 
-
 
1521
    public void send_getItemStockPurchaseParams(long itemId) throws org.apache.thrift.TException
-
 
1522
    {
-
 
1523
      getItemStockPurchaseParams_args args = new getItemStockPurchaseParams_args();
-
 
1524
      args.setItemId(itemId);
-
 
1525
      sendBase("getItemStockPurchaseParams", args);
-
 
1526
    }
-
 
1527
 
-
 
1528
    public ItemStockPurchaseParams recv_getItemStockPurchaseParams() throws org.apache.thrift.TException
-
 
1529
    {
-
 
1530
      getItemStockPurchaseParams_result result = new getItemStockPurchaseParams_result();
-
 
1531
      receiveBase(result, "getItemStockPurchaseParams");
-
 
1532
      if (result.isSetSuccess()) {
-
 
1533
        return result.success;
-
 
1534
      }
-
 
1535
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemStockPurchaseParams failed: unknown result");
-
 
1536
    }
-
 
1537
 
-
 
1538
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date) throws org.apache.thrift.TException
-
 
1539
    {
-
 
1540
      send_addOosStatusForItem(oosStatusMap, date);
-
 
1541
      recv_addOosStatusForItem();
-
 
1542
    }
-
 
1543
 
-
 
1544
    public void send_addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date) throws org.apache.thrift.TException
-
 
1545
    {
-
 
1546
      addOosStatusForItem_args args = new addOosStatusForItem_args();
-
 
1547
      args.setOosStatusMap(oosStatusMap);
-
 
1548
      args.setDate(date);
-
 
1549
      sendBase("addOosStatusForItem", args);
-
 
1550
    }
-
 
1551
 
-
 
1552
    public void recv_addOosStatusForItem() throws org.apache.thrift.TException
-
 
1553
    {
-
 
1554
      addOosStatusForItem_result result = new addOosStatusForItem_result();
-
 
1555
      receiveBase(result, "addOosStatusForItem");
-
 
1556
      return;
-
 
1557
    }
-
 
1558
 
1481
  }
1559
  }
1482
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1560
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1483
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1561
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1484
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1562
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1485
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1563
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 2992... Line 3070...
2992
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3070
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2993
        return (new Client(prot)).recv_getIgnoredInventoryUpdateItemids();
3071
        return (new Client(prot)).recv_getIgnoredInventoryUpdateItemids();
2994
      }
3072
      }
2995
    }
3073
    }
2996
 
3074
 
-
 
3075
    public void updateItemStockPurchaseParams(long item_id, int numOfDaysStock, long minStockLevel, org.apache.thrift.async.AsyncMethodCallback<updateItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException {
-
 
3076
      checkReady();
-
 
3077
      updateItemStockPurchaseParams_call method_call = new updateItemStockPurchaseParams_call(item_id, numOfDaysStock, minStockLevel, resultHandler, this, ___protocolFactory, ___transport);
-
 
3078
      this.___currentMethod = method_call;
-
 
3079
      ___manager.call(method_call);
-
 
3080
    }
-
 
3081
 
-
 
3082
    public static class updateItemStockPurchaseParams_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3083
      private long item_id;
-
 
3084
      private int numOfDaysStock;
-
 
3085
      private long minStockLevel;
-
 
3086
      public updateItemStockPurchaseParams_call(long item_id, int numOfDaysStock, long minStockLevel, org.apache.thrift.async.AsyncMethodCallback<updateItemStockPurchaseParams_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 {
-
 
3087
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3088
        this.item_id = item_id;
-
 
3089
        this.numOfDaysStock = numOfDaysStock;
-
 
3090
        this.minStockLevel = minStockLevel;
-
 
3091
      }
-
 
3092
 
-
 
3093
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3094
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateItemStockPurchaseParams", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3095
        updateItemStockPurchaseParams_args args = new updateItemStockPurchaseParams_args();
-
 
3096
        args.setItem_id(item_id);
-
 
3097
        args.setNumOfDaysStock(numOfDaysStock);
-
 
3098
        args.setMinStockLevel(minStockLevel);
-
 
3099
        args.write(prot);
-
 
3100
        prot.writeMessageEnd();
-
 
3101
      }
-
 
3102
 
-
 
3103
      public void getResult() throws org.apache.thrift.TException {
-
 
3104
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3105
          throw new IllegalStateException("Method call not finished!");
-
 
3106
        }
-
 
3107
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3108
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3109
        (new Client(prot)).recv_updateItemStockPurchaseParams();
-
 
3110
      }
-
 
3111
    }
-
 
3112
 
-
 
3113
    public void getItemStockPurchaseParams(long itemId, org.apache.thrift.async.AsyncMethodCallback<getItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException {
-
 
3114
      checkReady();
-
 
3115
      getItemStockPurchaseParams_call method_call = new getItemStockPurchaseParams_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
-
 
3116
      this.___currentMethod = method_call;
-
 
3117
      ___manager.call(method_call);
-
 
3118
    }
-
 
3119
 
-
 
3120
    public static class getItemStockPurchaseParams_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3121
      private long itemId;
-
 
3122
      public getItemStockPurchaseParams_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<getItemStockPurchaseParams_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 {
-
 
3123
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3124
        this.itemId = itemId;
-
 
3125
      }
-
 
3126
 
-
 
3127
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3128
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemStockPurchaseParams", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3129
        getItemStockPurchaseParams_args args = new getItemStockPurchaseParams_args();
-
 
3130
        args.setItemId(itemId);
-
 
3131
        args.write(prot);
-
 
3132
        prot.writeMessageEnd();
-
 
3133
      }
-
 
3134
 
-
 
3135
      public ItemStockPurchaseParams getResult() throws org.apache.thrift.TException {
-
 
3136
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3137
          throw new IllegalStateException("Method call not finished!");
-
 
3138
        }
-
 
3139
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3140
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3141
        return (new Client(prot)).recv_getItemStockPurchaseParams();
-
 
3142
      }
-
 
3143
    }
-
 
3144
 
-
 
3145
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date, org.apache.thrift.async.AsyncMethodCallback<addOosStatusForItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
3146
      checkReady();
-
 
3147
      addOosStatusForItem_call method_call = new addOosStatusForItem_call(oosStatusMap, date, resultHandler, this, ___protocolFactory, ___transport);
-
 
3148
      this.___currentMethod = method_call;
-
 
3149
      ___manager.call(method_call);
-
 
3150
    }
-
 
3151
 
-
 
3152
    public static class addOosStatusForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3153
      private Map<Long,Boolean> oosStatusMap;
-
 
3154
      private long date;
-
 
3155
      public addOosStatusForItem_call(Map<Long,Boolean> oosStatusMap, long date, org.apache.thrift.async.AsyncMethodCallback<addOosStatusForItem_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 {
-
 
3156
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3157
        this.oosStatusMap = oosStatusMap;
-
 
3158
        this.date = date;
-
 
3159
      }
-
 
3160
 
-
 
3161
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3162
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOosStatusForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3163
        addOosStatusForItem_args args = new addOosStatusForItem_args();
-
 
3164
        args.setOosStatusMap(oosStatusMap);
-
 
3165
        args.setDate(date);
-
 
3166
        args.write(prot);
-
 
3167
        prot.writeMessageEnd();
-
 
3168
      }
-
 
3169
 
-
 
3170
      public void getResult() throws org.apache.thrift.TException {
-
 
3171
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3172
          throw new IllegalStateException("Method call not finished!");
-
 
3173
        }
-
 
3174
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3175
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3176
        (new Client(prot)).recv_addOosStatusForItem();
-
 
3177
      }
-
 
3178
    }
-
 
3179
 
2997
  }
3180
  }
2998
 
3181
 
2999
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
3182
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
3000
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
3183
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
3001
    public Processor(I iface) {
3184
    public Processor(I iface) {
Line 3049... Line 3232...
3049
      processMap.put("getIgnoredWarehouseidsAndItemids", new getIgnoredWarehouseidsAndItemids());
3232
      processMap.put("getIgnoredWarehouseidsAndItemids", new getIgnoredWarehouseidsAndItemids());
3050
      processMap.put("insertItemtoIgnoreInventoryUpdatelist", new insertItemtoIgnoreInventoryUpdatelist());
3233
      processMap.put("insertItemtoIgnoreInventoryUpdatelist", new insertItemtoIgnoreInventoryUpdatelist());
3051
      processMap.put("deleteItemFromIgnoredInventoryUpdateList", new deleteItemFromIgnoredInventoryUpdateList());
3234
      processMap.put("deleteItemFromIgnoredInventoryUpdateList", new deleteItemFromIgnoredInventoryUpdateList());
3052
      processMap.put("getAllIgnoredInventoryupdateItemsCount", new getAllIgnoredInventoryupdateItemsCount());
3235
      processMap.put("getAllIgnoredInventoryupdateItemsCount", new getAllIgnoredInventoryupdateItemsCount());
3053
      processMap.put("getIgnoredInventoryUpdateItemids", new getIgnoredInventoryUpdateItemids());
3236
      processMap.put("getIgnoredInventoryUpdateItemids", new getIgnoredInventoryUpdateItemids());
-
 
3237
      processMap.put("updateItemStockPurchaseParams", new updateItemStockPurchaseParams());
-
 
3238
      processMap.put("getItemStockPurchaseParams", new getItemStockPurchaseParams());
-
 
3239
      processMap.put("addOosStatusForItem", new addOosStatusForItem());
3054
      return processMap;
3240
      return processMap;
3055
    }
3241
    }
3056
 
3242
 
3057
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
3243
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
3058
      public addWarehouse() {
3244
      public addWarehouse() {
Line 3854... Line 4040...
3854
        result.success = iface.getIgnoredInventoryUpdateItemids(args.offset, args.limit);
4040
        result.success = iface.getIgnoredInventoryUpdateItemids(args.offset, args.limit);
3855
        return result;
4041
        return result;
3856
      }
4042
      }
3857
    }
4043
    }
3858
 
4044
 
-
 
4045
    private static class updateItemStockPurchaseParams<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateItemStockPurchaseParams_args> {
-
 
4046
      public updateItemStockPurchaseParams() {
-
 
4047
        super("updateItemStockPurchaseParams");
-
 
4048
      }
-
 
4049
 
-
 
4050
      protected updateItemStockPurchaseParams_args getEmptyArgsInstance() {
-
 
4051
        return new updateItemStockPurchaseParams_args();
-
 
4052
      }
-
 
4053
 
-
 
4054
      protected updateItemStockPurchaseParams_result getResult(I iface, updateItemStockPurchaseParams_args args) throws org.apache.thrift.TException {
-
 
4055
        updateItemStockPurchaseParams_result result = new updateItemStockPurchaseParams_result();
-
 
4056
        iface.updateItemStockPurchaseParams(args.item_id, args.numOfDaysStock, args.minStockLevel);
-
 
4057
        return result;
-
 
4058
      }
-
 
4059
    }
-
 
4060
 
-
 
4061
    private static class getItemStockPurchaseParams<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemStockPurchaseParams_args> {
-
 
4062
      public getItemStockPurchaseParams() {
-
 
4063
        super("getItemStockPurchaseParams");
-
 
4064
      }
-
 
4065
 
-
 
4066
      protected getItemStockPurchaseParams_args getEmptyArgsInstance() {
-
 
4067
        return new getItemStockPurchaseParams_args();
-
 
4068
      }
-
 
4069
 
-
 
4070
      protected getItemStockPurchaseParams_result getResult(I iface, getItemStockPurchaseParams_args args) throws org.apache.thrift.TException {
-
 
4071
        getItemStockPurchaseParams_result result = new getItemStockPurchaseParams_result();
-
 
4072
        result.success = iface.getItemStockPurchaseParams(args.itemId);
-
 
4073
        return result;
-
 
4074
      }
-
 
4075
    }
-
 
4076
 
-
 
4077
    private static class addOosStatusForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOosStatusForItem_args> {
-
 
4078
      public addOosStatusForItem() {
-
 
4079
        super("addOosStatusForItem");
-
 
4080
      }
-
 
4081
 
-
 
4082
      protected addOosStatusForItem_args getEmptyArgsInstance() {
-
 
4083
        return new addOosStatusForItem_args();
-
 
4084
      }
-
 
4085
 
-
 
4086
      protected addOosStatusForItem_result getResult(I iface, addOosStatusForItem_args args) throws org.apache.thrift.TException {
-
 
4087
        addOosStatusForItem_result result = new addOosStatusForItem_result();
-
 
4088
        iface.addOosStatusForItem(args.oosStatusMap, args.date);
-
 
4089
        return result;
-
 
4090
      }
-
 
4091
    }
-
 
4092
 
3859
  }
4093
  }
3860
 
4094
 
3861
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
4095
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
3862
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
4096
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
3863
 
4097
 
Line 33771... Line 34005...
33771
      sb.append(")");
34005
      sb.append(")");
33772
      return sb.toString();
34006
      return sb.toString();
33773
    }
34007
    }
33774
 
34008
 
33775
    public void validate() throws org.apache.thrift.TException {
34009
    public void validate() throws org.apache.thrift.TException {
-
 
34010
      // check for required fields
-
 
34011
    }
-
 
34012
 
-
 
34013
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
34014
      try {
-
 
34015
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
34016
      } catch (org.apache.thrift.TException te) {
-
 
34017
        throw new java.io.IOException(te);
-
 
34018
      }
-
 
34019
    }
-
 
34020
 
-
 
34021
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
34022
      try {
-
 
34023
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
34024
      } catch (org.apache.thrift.TException te) {
-
 
34025
        throw new java.io.IOException(te);
-
 
34026
      }
-
 
34027
    }
-
 
34028
 
-
 
34029
  }
-
 
34030
 
-
 
34031
  public static class updateItemStockPurchaseParams_args implements org.apache.thrift.TBase<updateItemStockPurchaseParams_args, updateItemStockPurchaseParams_args._Fields>, java.io.Serializable, Cloneable   {
-
 
34032
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItemStockPurchaseParams_args");
-
 
34033
 
-
 
34034
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
34035
    private static final org.apache.thrift.protocol.TField NUM_OF_DAYS_STOCK_FIELD_DESC = new org.apache.thrift.protocol.TField("numOfDaysStock", org.apache.thrift.protocol.TType.I32, (short)2);
-
 
34036
    private static final org.apache.thrift.protocol.TField MIN_STOCK_LEVEL_FIELD_DESC = new org.apache.thrift.protocol.TField("minStockLevel", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
34037
 
-
 
34038
    private long item_id; // required
-
 
34039
    private int numOfDaysStock; // required
-
 
34040
    private long minStockLevel; // required
-
 
34041
 
-
 
34042
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
34043
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
34044
      ITEM_ID((short)1, "item_id"),
-
 
34045
      NUM_OF_DAYS_STOCK((short)2, "numOfDaysStock"),
-
 
34046
      MIN_STOCK_LEVEL((short)3, "minStockLevel");
-
 
34047
 
-
 
34048
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
34049
 
-
 
34050
      static {
-
 
34051
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
34052
          byName.put(field.getFieldName(), field);
-
 
34053
        }
-
 
34054
      }
-
 
34055
 
-
 
34056
      /**
-
 
34057
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
34058
       */
-
 
34059
      public static _Fields findByThriftId(int fieldId) {
-
 
34060
        switch(fieldId) {
-
 
34061
          case 1: // ITEM_ID
-
 
34062
            return ITEM_ID;
-
 
34063
          case 2: // NUM_OF_DAYS_STOCK
-
 
34064
            return NUM_OF_DAYS_STOCK;
-
 
34065
          case 3: // MIN_STOCK_LEVEL
-
 
34066
            return MIN_STOCK_LEVEL;
-
 
34067
          default:
-
 
34068
            return null;
-
 
34069
        }
-
 
34070
      }
-
 
34071
 
-
 
34072
      /**
-
 
34073
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
34074
       * if it is not found.
-
 
34075
       */
-
 
34076
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
34077
        _Fields fields = findByThriftId(fieldId);
-
 
34078
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
34079
        return fields;
-
 
34080
      }
-
 
34081
 
-
 
34082
      /**
-
 
34083
       * Find the _Fields constant that matches name, or null if its not found.
-
 
34084
       */
-
 
34085
      public static _Fields findByName(String name) {
-
 
34086
        return byName.get(name);
-
 
34087
      }
-
 
34088
 
-
 
34089
      private final short _thriftId;
-
 
34090
      private final String _fieldName;
-
 
34091
 
-
 
34092
      _Fields(short thriftId, String fieldName) {
-
 
34093
        _thriftId = thriftId;
-
 
34094
        _fieldName = fieldName;
-
 
34095
      }
-
 
34096
 
-
 
34097
      public short getThriftFieldId() {
-
 
34098
        return _thriftId;
-
 
34099
      }
-
 
34100
 
-
 
34101
      public String getFieldName() {
-
 
34102
        return _fieldName;
-
 
34103
      }
-
 
34104
    }
-
 
34105
 
-
 
34106
    // isset id assignments
-
 
34107
    private static final int __ITEM_ID_ISSET_ID = 0;
-
 
34108
    private static final int __NUMOFDAYSSTOCK_ISSET_ID = 1;
-
 
34109
    private static final int __MINSTOCKLEVEL_ISSET_ID = 2;
-
 
34110
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
34111
 
-
 
34112
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
34113
    static {
-
 
34114
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
34115
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
34116
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
34117
      tmpMap.put(_Fields.NUM_OF_DAYS_STOCK, new org.apache.thrift.meta_data.FieldMetaData("numOfDaysStock", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
34118
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
-
 
34119
      tmpMap.put(_Fields.MIN_STOCK_LEVEL, new org.apache.thrift.meta_data.FieldMetaData("minStockLevel", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
34120
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
34121
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
34122
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItemStockPurchaseParams_args.class, metaDataMap);
-
 
34123
    }
-
 
34124
 
-
 
34125
    public updateItemStockPurchaseParams_args() {
-
 
34126
    }
-
 
34127
 
-
 
34128
    public updateItemStockPurchaseParams_args(
-
 
34129
      long item_id,
-
 
34130
      int numOfDaysStock,
-
 
34131
      long minStockLevel)
-
 
34132
    {
-
 
34133
      this();
-
 
34134
      this.item_id = item_id;
-
 
34135
      setItem_idIsSet(true);
-
 
34136
      this.numOfDaysStock = numOfDaysStock;
-
 
34137
      setNumOfDaysStockIsSet(true);
-
 
34138
      this.minStockLevel = minStockLevel;
-
 
34139
      setMinStockLevelIsSet(true);
-
 
34140
    }
-
 
34141
 
-
 
34142
    /**
-
 
34143
     * Performs a deep copy on <i>other</i>.
-
 
34144
     */
-
 
34145
    public updateItemStockPurchaseParams_args(updateItemStockPurchaseParams_args other) {
-
 
34146
      __isset_bit_vector.clear();
-
 
34147
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
34148
      this.item_id = other.item_id;
-
 
34149
      this.numOfDaysStock = other.numOfDaysStock;
-
 
34150
      this.minStockLevel = other.minStockLevel;
-
 
34151
    }
-
 
34152
 
-
 
34153
    public updateItemStockPurchaseParams_args deepCopy() {
-
 
34154
      return new updateItemStockPurchaseParams_args(this);
-
 
34155
    }
-
 
34156
 
-
 
34157
    @Override
-
 
34158
    public void clear() {
-
 
34159
      setItem_idIsSet(false);
-
 
34160
      this.item_id = 0;
-
 
34161
      setNumOfDaysStockIsSet(false);
-
 
34162
      this.numOfDaysStock = 0;
-
 
34163
      setMinStockLevelIsSet(false);
-
 
34164
      this.minStockLevel = 0;
-
 
34165
    }
-
 
34166
 
-
 
34167
    public long getItem_id() {
-
 
34168
      return this.item_id;
-
 
34169
    }
-
 
34170
 
-
 
34171
    public void setItem_id(long item_id) {
-
 
34172
      this.item_id = item_id;
-
 
34173
      setItem_idIsSet(true);
-
 
34174
    }
-
 
34175
 
-
 
34176
    public void unsetItem_id() {
-
 
34177
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
-
 
34178
    }
-
 
34179
 
-
 
34180
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
-
 
34181
    public boolean isSetItem_id() {
-
 
34182
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
-
 
34183
    }
-
 
34184
 
-
 
34185
    public void setItem_idIsSet(boolean value) {
-
 
34186
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
-
 
34187
    }
-
 
34188
 
-
 
34189
    public int getNumOfDaysStock() {
-
 
34190
      return this.numOfDaysStock;
-
 
34191
    }
-
 
34192
 
-
 
34193
    public void setNumOfDaysStock(int numOfDaysStock) {
-
 
34194
      this.numOfDaysStock = numOfDaysStock;
-
 
34195
      setNumOfDaysStockIsSet(true);
-
 
34196
    }
-
 
34197
 
-
 
34198
    public void unsetNumOfDaysStock() {
-
 
34199
      __isset_bit_vector.clear(__NUMOFDAYSSTOCK_ISSET_ID);
-
 
34200
    }
-
 
34201
 
-
 
34202
    /** Returns true if field numOfDaysStock is set (has been assigned a value) and false otherwise */
-
 
34203
    public boolean isSetNumOfDaysStock() {
-
 
34204
      return __isset_bit_vector.get(__NUMOFDAYSSTOCK_ISSET_ID);
-
 
34205
    }
-
 
34206
 
-
 
34207
    public void setNumOfDaysStockIsSet(boolean value) {
-
 
34208
      __isset_bit_vector.set(__NUMOFDAYSSTOCK_ISSET_ID, value);
-
 
34209
    }
-
 
34210
 
-
 
34211
    public long getMinStockLevel() {
-
 
34212
      return this.minStockLevel;
-
 
34213
    }
-
 
34214
 
-
 
34215
    public void setMinStockLevel(long minStockLevel) {
-
 
34216
      this.minStockLevel = minStockLevel;
-
 
34217
      setMinStockLevelIsSet(true);
-
 
34218
    }
-
 
34219
 
-
 
34220
    public void unsetMinStockLevel() {
-
 
34221
      __isset_bit_vector.clear(__MINSTOCKLEVEL_ISSET_ID);
-
 
34222
    }
-
 
34223
 
-
 
34224
    /** Returns true if field minStockLevel is set (has been assigned a value) and false otherwise */
-
 
34225
    public boolean isSetMinStockLevel() {
-
 
34226
      return __isset_bit_vector.get(__MINSTOCKLEVEL_ISSET_ID);
-
 
34227
    }
-
 
34228
 
-
 
34229
    public void setMinStockLevelIsSet(boolean value) {
-
 
34230
      __isset_bit_vector.set(__MINSTOCKLEVEL_ISSET_ID, value);
-
 
34231
    }
-
 
34232
 
-
 
34233
    public void setFieldValue(_Fields field, Object value) {
-
 
34234
      switch (field) {
-
 
34235
      case ITEM_ID:
-
 
34236
        if (value == null) {
-
 
34237
          unsetItem_id();
-
 
34238
        } else {
-
 
34239
          setItem_id((Long)value);
-
 
34240
        }
-
 
34241
        break;
-
 
34242
 
-
 
34243
      case NUM_OF_DAYS_STOCK:
-
 
34244
        if (value == null) {
-
 
34245
          unsetNumOfDaysStock();
-
 
34246
        } else {
-
 
34247
          setNumOfDaysStock((Integer)value);
-
 
34248
        }
-
 
34249
        break;
-
 
34250
 
-
 
34251
      case MIN_STOCK_LEVEL:
-
 
34252
        if (value == null) {
-
 
34253
          unsetMinStockLevel();
-
 
34254
        } else {
-
 
34255
          setMinStockLevel((Long)value);
-
 
34256
        }
-
 
34257
        break;
-
 
34258
 
-
 
34259
      }
-
 
34260
    }
-
 
34261
 
-
 
34262
    public Object getFieldValue(_Fields field) {
-
 
34263
      switch (field) {
-
 
34264
      case ITEM_ID:
-
 
34265
        return Long.valueOf(getItem_id());
-
 
34266
 
-
 
34267
      case NUM_OF_DAYS_STOCK:
-
 
34268
        return Integer.valueOf(getNumOfDaysStock());
-
 
34269
 
-
 
34270
      case MIN_STOCK_LEVEL:
-
 
34271
        return Long.valueOf(getMinStockLevel());
-
 
34272
 
-
 
34273
      }
-
 
34274
      throw new IllegalStateException();
-
 
34275
    }
-
 
34276
 
-
 
34277
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
34278
    public boolean isSet(_Fields field) {
-
 
34279
      if (field == null) {
-
 
34280
        throw new IllegalArgumentException();
-
 
34281
      }
-
 
34282
 
-
 
34283
      switch (field) {
-
 
34284
      case ITEM_ID:
-
 
34285
        return isSetItem_id();
-
 
34286
      case NUM_OF_DAYS_STOCK:
-
 
34287
        return isSetNumOfDaysStock();
-
 
34288
      case MIN_STOCK_LEVEL:
-
 
34289
        return isSetMinStockLevel();
-
 
34290
      }
-
 
34291
      throw new IllegalStateException();
-
 
34292
    }
-
 
34293
 
-
 
34294
    @Override
-
 
34295
    public boolean equals(Object that) {
-
 
34296
      if (that == null)
-
 
34297
        return false;
-
 
34298
      if (that instanceof updateItemStockPurchaseParams_args)
-
 
34299
        return this.equals((updateItemStockPurchaseParams_args)that);
-
 
34300
      return false;
-
 
34301
    }
-
 
34302
 
-
 
34303
    public boolean equals(updateItemStockPurchaseParams_args that) {
-
 
34304
      if (that == null)
-
 
34305
        return false;
-
 
34306
 
-
 
34307
      boolean this_present_item_id = true;
-
 
34308
      boolean that_present_item_id = true;
-
 
34309
      if (this_present_item_id || that_present_item_id) {
-
 
34310
        if (!(this_present_item_id && that_present_item_id))
-
 
34311
          return false;
-
 
34312
        if (this.item_id != that.item_id)
-
 
34313
          return false;
-
 
34314
      }
-
 
34315
 
-
 
34316
      boolean this_present_numOfDaysStock = true;
-
 
34317
      boolean that_present_numOfDaysStock = true;
-
 
34318
      if (this_present_numOfDaysStock || that_present_numOfDaysStock) {
-
 
34319
        if (!(this_present_numOfDaysStock && that_present_numOfDaysStock))
-
 
34320
          return false;
-
 
34321
        if (this.numOfDaysStock != that.numOfDaysStock)
-
 
34322
          return false;
-
 
34323
      }
-
 
34324
 
-
 
34325
      boolean this_present_minStockLevel = true;
-
 
34326
      boolean that_present_minStockLevel = true;
-
 
34327
      if (this_present_minStockLevel || that_present_minStockLevel) {
-
 
34328
        if (!(this_present_minStockLevel && that_present_minStockLevel))
-
 
34329
          return false;
-
 
34330
        if (this.minStockLevel != that.minStockLevel)
-
 
34331
          return false;
-
 
34332
      }
-
 
34333
 
-
 
34334
      return true;
-
 
34335
    }
-
 
34336
 
-
 
34337
    @Override
-
 
34338
    public int hashCode() {
-
 
34339
      return 0;
-
 
34340
    }
-
 
34341
 
-
 
34342
    public int compareTo(updateItemStockPurchaseParams_args other) {
-
 
34343
      if (!getClass().equals(other.getClass())) {
-
 
34344
        return getClass().getName().compareTo(other.getClass().getName());
-
 
34345
      }
-
 
34346
 
-
 
34347
      int lastComparison = 0;
-
 
34348
      updateItemStockPurchaseParams_args typedOther = (updateItemStockPurchaseParams_args)other;
-
 
34349
 
-
 
34350
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
-
 
34351
      if (lastComparison != 0) {
-
 
34352
        return lastComparison;
-
 
34353
      }
-
 
34354
      if (isSetItem_id()) {
-
 
34355
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
-
 
34356
        if (lastComparison != 0) {
-
 
34357
          return lastComparison;
-
 
34358
        }
-
 
34359
      }
-
 
34360
      lastComparison = Boolean.valueOf(isSetNumOfDaysStock()).compareTo(typedOther.isSetNumOfDaysStock());
-
 
34361
      if (lastComparison != 0) {
-
 
34362
        return lastComparison;
-
 
34363
      }
-
 
34364
      if (isSetNumOfDaysStock()) {
-
 
34365
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numOfDaysStock, typedOther.numOfDaysStock);
-
 
34366
        if (lastComparison != 0) {
-
 
34367
          return lastComparison;
-
 
34368
        }
-
 
34369
      }
-
 
34370
      lastComparison = Boolean.valueOf(isSetMinStockLevel()).compareTo(typedOther.isSetMinStockLevel());
-
 
34371
      if (lastComparison != 0) {
-
 
34372
        return lastComparison;
-
 
34373
      }
-
 
34374
      if (isSetMinStockLevel()) {
-
 
34375
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minStockLevel, typedOther.minStockLevel);
-
 
34376
        if (lastComparison != 0) {
-
 
34377
          return lastComparison;
-
 
34378
        }
-
 
34379
      }
-
 
34380
      return 0;
-
 
34381
    }
-
 
34382
 
-
 
34383
    public _Fields fieldForId(int fieldId) {
-
 
34384
      return _Fields.findByThriftId(fieldId);
-
 
34385
    }
-
 
34386
 
-
 
34387
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
34388
      org.apache.thrift.protocol.TField field;
-
 
34389
      iprot.readStructBegin();
-
 
34390
      while (true)
-
 
34391
      {
-
 
34392
        field = iprot.readFieldBegin();
-
 
34393
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
34394
          break;
-
 
34395
        }
-
 
34396
        switch (field.id) {
-
 
34397
          case 1: // ITEM_ID
-
 
34398
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
34399
              this.item_id = iprot.readI64();
-
 
34400
              setItem_idIsSet(true);
-
 
34401
            } else { 
-
 
34402
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
34403
            }
-
 
34404
            break;
-
 
34405
          case 2: // NUM_OF_DAYS_STOCK
-
 
34406
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
34407
              this.numOfDaysStock = iprot.readI32();
-
 
34408
              setNumOfDaysStockIsSet(true);
-
 
34409
            } else { 
-
 
34410
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
34411
            }
-
 
34412
            break;
-
 
34413
          case 3: // MIN_STOCK_LEVEL
-
 
34414
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
34415
              this.minStockLevel = iprot.readI64();
-
 
34416
              setMinStockLevelIsSet(true);
-
 
34417
            } else { 
-
 
34418
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
34419
            }
-
 
34420
            break;
-
 
34421
          default:
-
 
34422
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
34423
        }
-
 
34424
        iprot.readFieldEnd();
-
 
34425
      }
-
 
34426
      iprot.readStructEnd();
-
 
34427
      validate();
-
 
34428
    }
-
 
34429
 
-
 
34430
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
34431
      validate();
-
 
34432
 
-
 
34433
      oprot.writeStructBegin(STRUCT_DESC);
-
 
34434
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
34435
      oprot.writeI64(this.item_id);
-
 
34436
      oprot.writeFieldEnd();
-
 
34437
      oprot.writeFieldBegin(NUM_OF_DAYS_STOCK_FIELD_DESC);
-
 
34438
      oprot.writeI32(this.numOfDaysStock);
-
 
34439
      oprot.writeFieldEnd();
-
 
34440
      oprot.writeFieldBegin(MIN_STOCK_LEVEL_FIELD_DESC);
-
 
34441
      oprot.writeI64(this.minStockLevel);
-
 
34442
      oprot.writeFieldEnd();
-
 
34443
      oprot.writeFieldStop();
-
 
34444
      oprot.writeStructEnd();
-
 
34445
    }
-
 
34446
 
-
 
34447
    @Override
-
 
34448
    public String toString() {
-
 
34449
      StringBuilder sb = new StringBuilder("updateItemStockPurchaseParams_args(");
-
 
34450
      boolean first = true;
-
 
34451
 
-
 
34452
      sb.append("item_id:");
-
 
34453
      sb.append(this.item_id);
-
 
34454
      first = false;
-
 
34455
      if (!first) sb.append(", ");
-
 
34456
      sb.append("numOfDaysStock:");
-
 
34457
      sb.append(this.numOfDaysStock);
-
 
34458
      first = false;
-
 
34459
      if (!first) sb.append(", ");
-
 
34460
      sb.append("minStockLevel:");
-
 
34461
      sb.append(this.minStockLevel);
-
 
34462
      first = false;
-
 
34463
      sb.append(")");
-
 
34464
      return sb.toString();
-
 
34465
    }
-
 
34466
 
-
 
34467
    public void validate() throws org.apache.thrift.TException {
-
 
34468
      // check for required fields
-
 
34469
    }
-
 
34470
 
-
 
34471
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
34472
      try {
-
 
34473
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
34474
      } catch (org.apache.thrift.TException te) {
-
 
34475
        throw new java.io.IOException(te);
-
 
34476
      }
-
 
34477
    }
-
 
34478
 
-
 
34479
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
34480
      try {
-
 
34481
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
34482
        __isset_bit_vector = new BitSet(1);
-
 
34483
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
34484
      } catch (org.apache.thrift.TException te) {
-
 
34485
        throw new java.io.IOException(te);
-
 
34486
      }
-
 
34487
    }
-
 
34488
 
-
 
34489
  }
-
 
34490
 
-
 
34491
  public static class updateItemStockPurchaseParams_result implements org.apache.thrift.TBase<updateItemStockPurchaseParams_result, updateItemStockPurchaseParams_result._Fields>, java.io.Serializable, Cloneable   {
-
 
34492
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItemStockPurchaseParams_result");
-
 
34493
 
-
 
34494
 
-
 
34495
 
-
 
34496
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
34497
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
34498
;
-
 
34499
 
-
 
34500
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
34501
 
-
 
34502
      static {
-
 
34503
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
34504
          byName.put(field.getFieldName(), field);
-
 
34505
        }
-
 
34506
      }
-
 
34507
 
-
 
34508
      /**
-
 
34509
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
34510
       */
-
 
34511
      public static _Fields findByThriftId(int fieldId) {
-
 
34512
        switch(fieldId) {
-
 
34513
          default:
-
 
34514
            return null;
-
 
34515
        }
-
 
34516
      }
-
 
34517
 
-
 
34518
      /**
-
 
34519
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
34520
       * if it is not found.
-
 
34521
       */
-
 
34522
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
34523
        _Fields fields = findByThriftId(fieldId);
-
 
34524
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
34525
        return fields;
-
 
34526
      }
-
 
34527
 
-
 
34528
      /**
-
 
34529
       * Find the _Fields constant that matches name, or null if its not found.
-
 
34530
       */
-
 
34531
      public static _Fields findByName(String name) {
-
 
34532
        return byName.get(name);
-
 
34533
      }
-
 
34534
 
-
 
34535
      private final short _thriftId;
-
 
34536
      private final String _fieldName;
-
 
34537
 
-
 
34538
      _Fields(short thriftId, String fieldName) {
-
 
34539
        _thriftId = thriftId;
-
 
34540
        _fieldName = fieldName;
-
 
34541
      }
-
 
34542
 
-
 
34543
      public short getThriftFieldId() {
-
 
34544
        return _thriftId;
-
 
34545
      }
-
 
34546
 
-
 
34547
      public String getFieldName() {
-
 
34548
        return _fieldName;
-
 
34549
      }
-
 
34550
    }
-
 
34551
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
34552
    static {
-
 
34553
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
34554
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
34555
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItemStockPurchaseParams_result.class, metaDataMap);
-
 
34556
    }
-
 
34557
 
-
 
34558
    public updateItemStockPurchaseParams_result() {
-
 
34559
    }
-
 
34560
 
-
 
34561
    /**
-
 
34562
     * Performs a deep copy on <i>other</i>.
-
 
34563
     */
-
 
34564
    public updateItemStockPurchaseParams_result(updateItemStockPurchaseParams_result other) {
-
 
34565
    }
-
 
34566
 
-
 
34567
    public updateItemStockPurchaseParams_result deepCopy() {
-
 
34568
      return new updateItemStockPurchaseParams_result(this);
-
 
34569
    }
-
 
34570
 
-
 
34571
    @Override
-
 
34572
    public void clear() {
-
 
34573
    }
-
 
34574
 
-
 
34575
    public void setFieldValue(_Fields field, Object value) {
-
 
34576
      switch (field) {
-
 
34577
      }
-
 
34578
    }
-
 
34579
 
-
 
34580
    public Object getFieldValue(_Fields field) {
-
 
34581
      switch (field) {
-
 
34582
      }
-
 
34583
      throw new IllegalStateException();
-
 
34584
    }
-
 
34585
 
-
 
34586
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
34587
    public boolean isSet(_Fields field) {
-
 
34588
      if (field == null) {
-
 
34589
        throw new IllegalArgumentException();
-
 
34590
      }
-
 
34591
 
-
 
34592
      switch (field) {
-
 
34593
      }
-
 
34594
      throw new IllegalStateException();
-
 
34595
    }
-
 
34596
 
-
 
34597
    @Override
-
 
34598
    public boolean equals(Object that) {
-
 
34599
      if (that == null)
-
 
34600
        return false;
-
 
34601
      if (that instanceof updateItemStockPurchaseParams_result)
-
 
34602
        return this.equals((updateItemStockPurchaseParams_result)that);
-
 
34603
      return false;
-
 
34604
    }
-
 
34605
 
-
 
34606
    public boolean equals(updateItemStockPurchaseParams_result that) {
-
 
34607
      if (that == null)
-
 
34608
        return false;
-
 
34609
 
-
 
34610
      return true;
-
 
34611
    }
-
 
34612
 
-
 
34613
    @Override
-
 
34614
    public int hashCode() {
-
 
34615
      return 0;
-
 
34616
    }
-
 
34617
 
-
 
34618
    public int compareTo(updateItemStockPurchaseParams_result other) {
-
 
34619
      if (!getClass().equals(other.getClass())) {
-
 
34620
        return getClass().getName().compareTo(other.getClass().getName());
-
 
34621
      }
-
 
34622
 
-
 
34623
      int lastComparison = 0;
-
 
34624
      updateItemStockPurchaseParams_result typedOther = (updateItemStockPurchaseParams_result)other;
-
 
34625
 
-
 
34626
      return 0;
-
 
34627
    }
-
 
34628
 
-
 
34629
    public _Fields fieldForId(int fieldId) {
-
 
34630
      return _Fields.findByThriftId(fieldId);
-
 
34631
    }
-
 
34632
 
-
 
34633
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
34634
      org.apache.thrift.protocol.TField field;
-
 
34635
      iprot.readStructBegin();
-
 
34636
      while (true)
-
 
34637
      {
-
 
34638
        field = iprot.readFieldBegin();
-
 
34639
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
34640
          break;
-
 
34641
        }
-
 
34642
        switch (field.id) {
-
 
34643
          default:
-
 
34644
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
34645
        }
-
 
34646
        iprot.readFieldEnd();
-
 
34647
      }
-
 
34648
      iprot.readStructEnd();
-
 
34649
      validate();
-
 
34650
    }
-
 
34651
 
-
 
34652
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
34653
      oprot.writeStructBegin(STRUCT_DESC);
-
 
34654
 
-
 
34655
      oprot.writeFieldStop();
-
 
34656
      oprot.writeStructEnd();
-
 
34657
    }
-
 
34658
 
-
 
34659
    @Override
-
 
34660
    public String toString() {
-
 
34661
      StringBuilder sb = new StringBuilder("updateItemStockPurchaseParams_result(");
-
 
34662
      boolean first = true;
-
 
34663
 
-
 
34664
      sb.append(")");
-
 
34665
      return sb.toString();
-
 
34666
    }
-
 
34667
 
-
 
34668
    public void validate() throws org.apache.thrift.TException {
-
 
34669
      // check for required fields
-
 
34670
    }
-
 
34671
 
-
 
34672
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
34673
      try {
-
 
34674
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
34675
      } catch (org.apache.thrift.TException te) {
-
 
34676
        throw new java.io.IOException(te);
-
 
34677
      }
-
 
34678
    }
-
 
34679
 
-
 
34680
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
34681
      try {
-
 
34682
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
34683
      } catch (org.apache.thrift.TException te) {
-
 
34684
        throw new java.io.IOException(te);
-
 
34685
      }
-
 
34686
    }
-
 
34687
 
-
 
34688
  }
-
 
34689
 
-
 
34690
  public static class getItemStockPurchaseParams_args implements org.apache.thrift.TBase<getItemStockPurchaseParams_args, getItemStockPurchaseParams_args._Fields>, java.io.Serializable, Cloneable   {
-
 
34691
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemStockPurchaseParams_args");
-
 
34692
 
-
 
34693
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
34694
 
-
 
34695
    private long itemId; // required
-
 
34696
 
-
 
34697
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
34698
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
34699
      ITEM_ID((short)1, "itemId");
-
 
34700
 
-
 
34701
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
34702
 
-
 
34703
      static {
-
 
34704
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
34705
          byName.put(field.getFieldName(), field);
-
 
34706
        }
-
 
34707
      }
-
 
34708
 
-
 
34709
      /**
-
 
34710
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
34711
       */
-
 
34712
      public static _Fields findByThriftId(int fieldId) {
-
 
34713
        switch(fieldId) {
-
 
34714
          case 1: // ITEM_ID
-
 
34715
            return ITEM_ID;
-
 
34716
          default:
-
 
34717
            return null;
-
 
34718
        }
-
 
34719
      }
-
 
34720
 
-
 
34721
      /**
-
 
34722
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
34723
       * if it is not found.
-
 
34724
       */
-
 
34725
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
34726
        _Fields fields = findByThriftId(fieldId);
-
 
34727
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
34728
        return fields;
-
 
34729
      }
-
 
34730
 
-
 
34731
      /**
-
 
34732
       * Find the _Fields constant that matches name, or null if its not found.
-
 
34733
       */
-
 
34734
      public static _Fields findByName(String name) {
-
 
34735
        return byName.get(name);
-
 
34736
      }
-
 
34737
 
-
 
34738
      private final short _thriftId;
-
 
34739
      private final String _fieldName;
-
 
34740
 
-
 
34741
      _Fields(short thriftId, String fieldName) {
-
 
34742
        _thriftId = thriftId;
-
 
34743
        _fieldName = fieldName;
-
 
34744
      }
-
 
34745
 
-
 
34746
      public short getThriftFieldId() {
-
 
34747
        return _thriftId;
-
 
34748
      }
-
 
34749
 
-
 
34750
      public String getFieldName() {
-
 
34751
        return _fieldName;
-
 
34752
      }
-
 
34753
    }
-
 
34754
 
-
 
34755
    // isset id assignments
-
 
34756
    private static final int __ITEMID_ISSET_ID = 0;
-
 
34757
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
34758
 
-
 
34759
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
34760
    static {
-
 
34761
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
34762
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
34763
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
34764
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
34765
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemStockPurchaseParams_args.class, metaDataMap);
-
 
34766
    }
-
 
34767
 
-
 
34768
    public getItemStockPurchaseParams_args() {
-
 
34769
    }
-
 
34770
 
-
 
34771
    public getItemStockPurchaseParams_args(
-
 
34772
      long itemId)
-
 
34773
    {
-
 
34774
      this();
-
 
34775
      this.itemId = itemId;
-
 
34776
      setItemIdIsSet(true);
-
 
34777
    }
-
 
34778
 
-
 
34779
    /**
-
 
34780
     * Performs a deep copy on <i>other</i>.
-
 
34781
     */
-
 
34782
    public getItemStockPurchaseParams_args(getItemStockPurchaseParams_args other) {
-
 
34783
      __isset_bit_vector.clear();
-
 
34784
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
34785
      this.itemId = other.itemId;
-
 
34786
    }
-
 
34787
 
-
 
34788
    public getItemStockPurchaseParams_args deepCopy() {
-
 
34789
      return new getItemStockPurchaseParams_args(this);
-
 
34790
    }
-
 
34791
 
-
 
34792
    @Override
-
 
34793
    public void clear() {
-
 
34794
      setItemIdIsSet(false);
-
 
34795
      this.itemId = 0;
-
 
34796
    }
-
 
34797
 
-
 
34798
    public long getItemId() {
-
 
34799
      return this.itemId;
-
 
34800
    }
-
 
34801
 
-
 
34802
    public void setItemId(long itemId) {
-
 
34803
      this.itemId = itemId;
-
 
34804
      setItemIdIsSet(true);
-
 
34805
    }
-
 
34806
 
-
 
34807
    public void unsetItemId() {
-
 
34808
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
34809
    }
-
 
34810
 
-
 
34811
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
34812
    public boolean isSetItemId() {
-
 
34813
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
34814
    }
-
 
34815
 
-
 
34816
    public void setItemIdIsSet(boolean value) {
-
 
34817
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
34818
    }
-
 
34819
 
-
 
34820
    public void setFieldValue(_Fields field, Object value) {
-
 
34821
      switch (field) {
-
 
34822
      case ITEM_ID:
-
 
34823
        if (value == null) {
-
 
34824
          unsetItemId();
-
 
34825
        } else {
-
 
34826
          setItemId((Long)value);
-
 
34827
        }
-
 
34828
        break;
-
 
34829
 
-
 
34830
      }
-
 
34831
    }
-
 
34832
 
-
 
34833
    public Object getFieldValue(_Fields field) {
-
 
34834
      switch (field) {
-
 
34835
      case ITEM_ID:
-
 
34836
        return Long.valueOf(getItemId());
-
 
34837
 
-
 
34838
      }
-
 
34839
      throw new IllegalStateException();
-
 
34840
    }
-
 
34841
 
-
 
34842
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
34843
    public boolean isSet(_Fields field) {
-
 
34844
      if (field == null) {
-
 
34845
        throw new IllegalArgumentException();
-
 
34846
      }
-
 
34847
 
-
 
34848
      switch (field) {
-
 
34849
      case ITEM_ID:
-
 
34850
        return isSetItemId();
-
 
34851
      }
-
 
34852
      throw new IllegalStateException();
-
 
34853
    }
-
 
34854
 
-
 
34855
    @Override
-
 
34856
    public boolean equals(Object that) {
-
 
34857
      if (that == null)
-
 
34858
        return false;
-
 
34859
      if (that instanceof getItemStockPurchaseParams_args)
-
 
34860
        return this.equals((getItemStockPurchaseParams_args)that);
-
 
34861
      return false;
-
 
34862
    }
-
 
34863
 
-
 
34864
    public boolean equals(getItemStockPurchaseParams_args that) {
-
 
34865
      if (that == null)
-
 
34866
        return false;
-
 
34867
 
-
 
34868
      boolean this_present_itemId = true;
-
 
34869
      boolean that_present_itemId = true;
-
 
34870
      if (this_present_itemId || that_present_itemId) {
-
 
34871
        if (!(this_present_itemId && that_present_itemId))
-
 
34872
          return false;
-
 
34873
        if (this.itemId != that.itemId)
-
 
34874
          return false;
-
 
34875
      }
-
 
34876
 
-
 
34877
      return true;
-
 
34878
    }
-
 
34879
 
-
 
34880
    @Override
-
 
34881
    public int hashCode() {
-
 
34882
      return 0;
-
 
34883
    }
-
 
34884
 
-
 
34885
    public int compareTo(getItemStockPurchaseParams_args other) {
-
 
34886
      if (!getClass().equals(other.getClass())) {
-
 
34887
        return getClass().getName().compareTo(other.getClass().getName());
-
 
34888
      }
-
 
34889
 
-
 
34890
      int lastComparison = 0;
-
 
34891
      getItemStockPurchaseParams_args typedOther = (getItemStockPurchaseParams_args)other;
-
 
34892
 
-
 
34893
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
34894
      if (lastComparison != 0) {
-
 
34895
        return lastComparison;
-
 
34896
      }
-
 
34897
      if (isSetItemId()) {
-
 
34898
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
34899
        if (lastComparison != 0) {
-
 
34900
          return lastComparison;
-
 
34901
        }
-
 
34902
      }
-
 
34903
      return 0;
-
 
34904
    }
-
 
34905
 
-
 
34906
    public _Fields fieldForId(int fieldId) {
-
 
34907
      return _Fields.findByThriftId(fieldId);
-
 
34908
    }
-
 
34909
 
-
 
34910
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
34911
      org.apache.thrift.protocol.TField field;
-
 
34912
      iprot.readStructBegin();
-
 
34913
      while (true)
-
 
34914
      {
-
 
34915
        field = iprot.readFieldBegin();
-
 
34916
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
34917
          break;
-
 
34918
        }
-
 
34919
        switch (field.id) {
-
 
34920
          case 1: // ITEM_ID
-
 
34921
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
34922
              this.itemId = iprot.readI64();
-
 
34923
              setItemIdIsSet(true);
-
 
34924
            } else { 
-
 
34925
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
34926
            }
-
 
34927
            break;
-
 
34928
          default:
-
 
34929
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
34930
        }
-
 
34931
        iprot.readFieldEnd();
-
 
34932
      }
-
 
34933
      iprot.readStructEnd();
-
 
34934
      validate();
-
 
34935
    }
-
 
34936
 
-
 
34937
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
34938
      validate();
-
 
34939
 
-
 
34940
      oprot.writeStructBegin(STRUCT_DESC);
-
 
34941
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
34942
      oprot.writeI64(this.itemId);
-
 
34943
      oprot.writeFieldEnd();
-
 
34944
      oprot.writeFieldStop();
-
 
34945
      oprot.writeStructEnd();
-
 
34946
    }
-
 
34947
 
-
 
34948
    @Override
-
 
34949
    public String toString() {
-
 
34950
      StringBuilder sb = new StringBuilder("getItemStockPurchaseParams_args(");
-
 
34951
      boolean first = true;
-
 
34952
 
-
 
34953
      sb.append("itemId:");
-
 
34954
      sb.append(this.itemId);
-
 
34955
      first = false;
-
 
34956
      sb.append(")");
-
 
34957
      return sb.toString();
-
 
34958
    }
-
 
34959
 
-
 
34960
    public void validate() throws org.apache.thrift.TException {
-
 
34961
      // check for required fields
-
 
34962
    }
-
 
34963
 
-
 
34964
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
34965
      try {
-
 
34966
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
34967
      } catch (org.apache.thrift.TException te) {
-
 
34968
        throw new java.io.IOException(te);
-
 
34969
      }
-
 
34970
    }
-
 
34971
 
-
 
34972
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
34973
      try {
-
 
34974
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
34975
        __isset_bit_vector = new BitSet(1);
-
 
34976
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
34977
      } catch (org.apache.thrift.TException te) {
-
 
34978
        throw new java.io.IOException(te);
-
 
34979
      }
-
 
34980
    }
-
 
34981
 
-
 
34982
  }
-
 
34983
 
-
 
34984
  public static class getItemStockPurchaseParams_result implements org.apache.thrift.TBase<getItemStockPurchaseParams_result, getItemStockPurchaseParams_result._Fields>, java.io.Serializable, Cloneable   {
-
 
34985
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemStockPurchaseParams_result");
-
 
34986
 
-
 
34987
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
34988
 
-
 
34989
    private ItemStockPurchaseParams success; // required
-
 
34990
 
-
 
34991
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
34992
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
34993
      SUCCESS((short)0, "success");
-
 
34994
 
-
 
34995
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
34996
 
-
 
34997
      static {
-
 
34998
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
34999
          byName.put(field.getFieldName(), field);
-
 
35000
        }
-
 
35001
      }
-
 
35002
 
-
 
35003
      /**
-
 
35004
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
35005
       */
-
 
35006
      public static _Fields findByThriftId(int fieldId) {
-
 
35007
        switch(fieldId) {
-
 
35008
          case 0: // SUCCESS
-
 
35009
            return SUCCESS;
-
 
35010
          default:
-
 
35011
            return null;
-
 
35012
        }
-
 
35013
      }
-
 
35014
 
-
 
35015
      /**
-
 
35016
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
35017
       * if it is not found.
-
 
35018
       */
-
 
35019
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
35020
        _Fields fields = findByThriftId(fieldId);
-
 
35021
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
35022
        return fields;
-
 
35023
      }
-
 
35024
 
-
 
35025
      /**
-
 
35026
       * Find the _Fields constant that matches name, or null if its not found.
-
 
35027
       */
-
 
35028
      public static _Fields findByName(String name) {
-
 
35029
        return byName.get(name);
-
 
35030
      }
-
 
35031
 
-
 
35032
      private final short _thriftId;
-
 
35033
      private final String _fieldName;
-
 
35034
 
-
 
35035
      _Fields(short thriftId, String fieldName) {
-
 
35036
        _thriftId = thriftId;
-
 
35037
        _fieldName = fieldName;
-
 
35038
      }
-
 
35039
 
-
 
35040
      public short getThriftFieldId() {
-
 
35041
        return _thriftId;
-
 
35042
      }
-
 
35043
 
-
 
35044
      public String getFieldName() {
-
 
35045
        return _fieldName;
-
 
35046
      }
-
 
35047
    }
-
 
35048
 
-
 
35049
    // isset id assignments
-
 
35050
 
-
 
35051
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
35052
    static {
-
 
35053
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
35054
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
35055
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemStockPurchaseParams.class)));
-
 
35056
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
35057
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemStockPurchaseParams_result.class, metaDataMap);
-
 
35058
    }
-
 
35059
 
-
 
35060
    public getItemStockPurchaseParams_result() {
-
 
35061
    }
-
 
35062
 
-
 
35063
    public getItemStockPurchaseParams_result(
-
 
35064
      ItemStockPurchaseParams success)
-
 
35065
    {
-
 
35066
      this();
-
 
35067
      this.success = success;
-
 
35068
    }
-
 
35069
 
-
 
35070
    /**
-
 
35071
     * Performs a deep copy on <i>other</i>.
-
 
35072
     */
-
 
35073
    public getItemStockPurchaseParams_result(getItemStockPurchaseParams_result other) {
-
 
35074
      if (other.isSetSuccess()) {
-
 
35075
        this.success = new ItemStockPurchaseParams(other.success);
-
 
35076
      }
-
 
35077
    }
-
 
35078
 
-
 
35079
    public getItemStockPurchaseParams_result deepCopy() {
-
 
35080
      return new getItemStockPurchaseParams_result(this);
-
 
35081
    }
-
 
35082
 
-
 
35083
    @Override
-
 
35084
    public void clear() {
-
 
35085
      this.success = null;
-
 
35086
    }
-
 
35087
 
-
 
35088
    public ItemStockPurchaseParams getSuccess() {
-
 
35089
      return this.success;
-
 
35090
    }
-
 
35091
 
-
 
35092
    public void setSuccess(ItemStockPurchaseParams success) {
-
 
35093
      this.success = success;
-
 
35094
    }
-
 
35095
 
-
 
35096
    public void unsetSuccess() {
-
 
35097
      this.success = null;
-
 
35098
    }
-
 
35099
 
-
 
35100
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
35101
    public boolean isSetSuccess() {
-
 
35102
      return this.success != null;
-
 
35103
    }
-
 
35104
 
-
 
35105
    public void setSuccessIsSet(boolean value) {
-
 
35106
      if (!value) {
-
 
35107
        this.success = null;
-
 
35108
      }
-
 
35109
    }
-
 
35110
 
-
 
35111
    public void setFieldValue(_Fields field, Object value) {
-
 
35112
      switch (field) {
-
 
35113
      case SUCCESS:
-
 
35114
        if (value == null) {
-
 
35115
          unsetSuccess();
-
 
35116
        } else {
-
 
35117
          setSuccess((ItemStockPurchaseParams)value);
-
 
35118
        }
-
 
35119
        break;
-
 
35120
 
-
 
35121
      }
-
 
35122
    }
-
 
35123
 
-
 
35124
    public Object getFieldValue(_Fields field) {
-
 
35125
      switch (field) {
-
 
35126
      case SUCCESS:
-
 
35127
        return getSuccess();
-
 
35128
 
-
 
35129
      }
-
 
35130
      throw new IllegalStateException();
-
 
35131
    }
-
 
35132
 
-
 
35133
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
35134
    public boolean isSet(_Fields field) {
-
 
35135
      if (field == null) {
-
 
35136
        throw new IllegalArgumentException();
-
 
35137
      }
-
 
35138
 
-
 
35139
      switch (field) {
-
 
35140
      case SUCCESS:
-
 
35141
        return isSetSuccess();
-
 
35142
      }
-
 
35143
      throw new IllegalStateException();
-
 
35144
    }
-
 
35145
 
-
 
35146
    @Override
-
 
35147
    public boolean equals(Object that) {
-
 
35148
      if (that == null)
-
 
35149
        return false;
-
 
35150
      if (that instanceof getItemStockPurchaseParams_result)
-
 
35151
        return this.equals((getItemStockPurchaseParams_result)that);
-
 
35152
      return false;
-
 
35153
    }
-
 
35154
 
-
 
35155
    public boolean equals(getItemStockPurchaseParams_result that) {
-
 
35156
      if (that == null)
-
 
35157
        return false;
-
 
35158
 
-
 
35159
      boolean this_present_success = true && this.isSetSuccess();
-
 
35160
      boolean that_present_success = true && that.isSetSuccess();
-
 
35161
      if (this_present_success || that_present_success) {
-
 
35162
        if (!(this_present_success && that_present_success))
-
 
35163
          return false;
-
 
35164
        if (!this.success.equals(that.success))
-
 
35165
          return false;
-
 
35166
      }
-
 
35167
 
-
 
35168
      return true;
-
 
35169
    }
-
 
35170
 
-
 
35171
    @Override
-
 
35172
    public int hashCode() {
-
 
35173
      return 0;
-
 
35174
    }
-
 
35175
 
-
 
35176
    public int compareTo(getItemStockPurchaseParams_result other) {
-
 
35177
      if (!getClass().equals(other.getClass())) {
-
 
35178
        return getClass().getName().compareTo(other.getClass().getName());
-
 
35179
      }
-
 
35180
 
-
 
35181
      int lastComparison = 0;
-
 
35182
      getItemStockPurchaseParams_result typedOther = (getItemStockPurchaseParams_result)other;
-
 
35183
 
-
 
35184
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
35185
      if (lastComparison != 0) {
-
 
35186
        return lastComparison;
-
 
35187
      }
-
 
35188
      if (isSetSuccess()) {
-
 
35189
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
35190
        if (lastComparison != 0) {
-
 
35191
          return lastComparison;
-
 
35192
        }
-
 
35193
      }
-
 
35194
      return 0;
-
 
35195
    }
-
 
35196
 
-
 
35197
    public _Fields fieldForId(int fieldId) {
-
 
35198
      return _Fields.findByThriftId(fieldId);
-
 
35199
    }
-
 
35200
 
-
 
35201
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
35202
      org.apache.thrift.protocol.TField field;
-
 
35203
      iprot.readStructBegin();
-
 
35204
      while (true)
-
 
35205
      {
-
 
35206
        field = iprot.readFieldBegin();
-
 
35207
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
35208
          break;
-
 
35209
        }
-
 
35210
        switch (field.id) {
-
 
35211
          case 0: // SUCCESS
-
 
35212
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
35213
              this.success = new ItemStockPurchaseParams();
-
 
35214
              this.success.read(iprot);
-
 
35215
            } else { 
-
 
35216
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
35217
            }
-
 
35218
            break;
-
 
35219
          default:
-
 
35220
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
35221
        }
-
 
35222
        iprot.readFieldEnd();
-
 
35223
      }
-
 
35224
      iprot.readStructEnd();
-
 
35225
      validate();
-
 
35226
    }
-
 
35227
 
-
 
35228
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
35229
      oprot.writeStructBegin(STRUCT_DESC);
-
 
35230
 
-
 
35231
      if (this.isSetSuccess()) {
-
 
35232
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
35233
        this.success.write(oprot);
-
 
35234
        oprot.writeFieldEnd();
-
 
35235
      }
-
 
35236
      oprot.writeFieldStop();
-
 
35237
      oprot.writeStructEnd();
-
 
35238
    }
-
 
35239
 
-
 
35240
    @Override
-
 
35241
    public String toString() {
-
 
35242
      StringBuilder sb = new StringBuilder("getItemStockPurchaseParams_result(");
-
 
35243
      boolean first = true;
-
 
35244
 
-
 
35245
      sb.append("success:");
-
 
35246
      if (this.success == null) {
-
 
35247
        sb.append("null");
-
 
35248
      } else {
-
 
35249
        sb.append(this.success);
-
 
35250
      }
-
 
35251
      first = false;
-
 
35252
      sb.append(")");
-
 
35253
      return sb.toString();
-
 
35254
    }
-
 
35255
 
-
 
35256
    public void validate() throws org.apache.thrift.TException {
-
 
35257
      // check for required fields
-
 
35258
    }
-
 
35259
 
-
 
35260
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
35261
      try {
-
 
35262
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
35263
      } catch (org.apache.thrift.TException te) {
-
 
35264
        throw new java.io.IOException(te);
-
 
35265
      }
-
 
35266
    }
-
 
35267
 
-
 
35268
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
35269
      try {
-
 
35270
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
35271
      } catch (org.apache.thrift.TException te) {
-
 
35272
        throw new java.io.IOException(te);
-
 
35273
      }
-
 
35274
    }
-
 
35275
 
-
 
35276
  }
-
 
35277
 
-
 
35278
  public static class addOosStatusForItem_args implements org.apache.thrift.TBase<addOosStatusForItem_args, addOosStatusForItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
35279
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOosStatusForItem_args");
-
 
35280
 
-
 
35281
    private static final org.apache.thrift.protocol.TField OOS_STATUS_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("oosStatusMap", org.apache.thrift.protocol.TType.MAP, (short)1);
-
 
35282
    private static final org.apache.thrift.protocol.TField DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("date", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
35283
 
-
 
35284
    private Map<Long,Boolean> oosStatusMap; // required
-
 
35285
    private long date; // required
-
 
35286
 
-
 
35287
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
35288
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
35289
      OOS_STATUS_MAP((short)1, "oosStatusMap"),
-
 
35290
      DATE((short)2, "date");
-
 
35291
 
-
 
35292
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
35293
 
-
 
35294
      static {
-
 
35295
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
35296
          byName.put(field.getFieldName(), field);
-
 
35297
        }
-
 
35298
      }
-
 
35299
 
-
 
35300
      /**
-
 
35301
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
35302
       */
-
 
35303
      public static _Fields findByThriftId(int fieldId) {
-
 
35304
        switch(fieldId) {
-
 
35305
          case 1: // OOS_STATUS_MAP
-
 
35306
            return OOS_STATUS_MAP;
-
 
35307
          case 2: // DATE
-
 
35308
            return DATE;
-
 
35309
          default:
-
 
35310
            return null;
-
 
35311
        }
-
 
35312
      }
-
 
35313
 
-
 
35314
      /**
-
 
35315
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
35316
       * if it is not found.
-
 
35317
       */
-
 
35318
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
35319
        _Fields fields = findByThriftId(fieldId);
-
 
35320
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
35321
        return fields;
-
 
35322
      }
-
 
35323
 
-
 
35324
      /**
-
 
35325
       * Find the _Fields constant that matches name, or null if its not found.
-
 
35326
       */
-
 
35327
      public static _Fields findByName(String name) {
-
 
35328
        return byName.get(name);
-
 
35329
      }
-
 
35330
 
-
 
35331
      private final short _thriftId;
-
 
35332
      private final String _fieldName;
-
 
35333
 
-
 
35334
      _Fields(short thriftId, String fieldName) {
-
 
35335
        _thriftId = thriftId;
-
 
35336
        _fieldName = fieldName;
-
 
35337
      }
-
 
35338
 
-
 
35339
      public short getThriftFieldId() {
-
 
35340
        return _thriftId;
-
 
35341
      }
-
 
35342
 
-
 
35343
      public String getFieldName() {
-
 
35344
        return _fieldName;
-
 
35345
      }
-
 
35346
    }
-
 
35347
 
-
 
35348
    // isset id assignments
-
 
35349
    private static final int __DATE_ISSET_ID = 0;
-
 
35350
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
35351
 
-
 
35352
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
35353
    static {
-
 
35354
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
35355
      tmpMap.put(_Fields.OOS_STATUS_MAP, new org.apache.thrift.meta_data.FieldMetaData("oosStatusMap", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
35356
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
35357
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
-
 
35358
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))));
-
 
35359
      tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
35360
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
35361
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
35362
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOosStatusForItem_args.class, metaDataMap);
-
 
35363
    }
-
 
35364
 
-
 
35365
    public addOosStatusForItem_args() {
-
 
35366
    }
-
 
35367
 
-
 
35368
    public addOosStatusForItem_args(
-
 
35369
      Map<Long,Boolean> oosStatusMap,
-
 
35370
      long date)
-
 
35371
    {
-
 
35372
      this();
-
 
35373
      this.oosStatusMap = oosStatusMap;
-
 
35374
      this.date = date;
-
 
35375
      setDateIsSet(true);
-
 
35376
    }
-
 
35377
 
-
 
35378
    /**
-
 
35379
     * Performs a deep copy on <i>other</i>.
-
 
35380
     */
-
 
35381
    public addOosStatusForItem_args(addOosStatusForItem_args other) {
-
 
35382
      __isset_bit_vector.clear();
-
 
35383
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
35384
      if (other.isSetOosStatusMap()) {
-
 
35385
        Map<Long,Boolean> __this__oosStatusMap = new HashMap<Long,Boolean>();
-
 
35386
        for (Map.Entry<Long, Boolean> other_element : other.oosStatusMap.entrySet()) {
-
 
35387
 
-
 
35388
          Long other_element_key = other_element.getKey();
-
 
35389
          Boolean other_element_value = other_element.getValue();
-
 
35390
 
-
 
35391
          Long __this__oosStatusMap_copy_key = other_element_key;
-
 
35392
 
-
 
35393
          Boolean __this__oosStatusMap_copy_value = other_element_value;
-
 
35394
 
-
 
35395
          __this__oosStatusMap.put(__this__oosStatusMap_copy_key, __this__oosStatusMap_copy_value);
-
 
35396
        }
-
 
35397
        this.oosStatusMap = __this__oosStatusMap;
-
 
35398
      }
-
 
35399
      this.date = other.date;
-
 
35400
    }
-
 
35401
 
-
 
35402
    public addOosStatusForItem_args deepCopy() {
-
 
35403
      return new addOosStatusForItem_args(this);
-
 
35404
    }
-
 
35405
 
-
 
35406
    @Override
-
 
35407
    public void clear() {
-
 
35408
      this.oosStatusMap = null;
-
 
35409
      setDateIsSet(false);
-
 
35410
      this.date = 0;
-
 
35411
    }
-
 
35412
 
-
 
35413
    public int getOosStatusMapSize() {
-
 
35414
      return (this.oosStatusMap == null) ? 0 : this.oosStatusMap.size();
-
 
35415
    }
-
 
35416
 
-
 
35417
    public void putToOosStatusMap(long key, boolean val) {
-
 
35418
      if (this.oosStatusMap == null) {
-
 
35419
        this.oosStatusMap = new HashMap<Long,Boolean>();
-
 
35420
      }
-
 
35421
      this.oosStatusMap.put(key, val);
-
 
35422
    }
-
 
35423
 
-
 
35424
    public Map<Long,Boolean> getOosStatusMap() {
-
 
35425
      return this.oosStatusMap;
-
 
35426
    }
-
 
35427
 
-
 
35428
    public void setOosStatusMap(Map<Long,Boolean> oosStatusMap) {
-
 
35429
      this.oosStatusMap = oosStatusMap;
-
 
35430
    }
-
 
35431
 
-
 
35432
    public void unsetOosStatusMap() {
-
 
35433
      this.oosStatusMap = null;
-
 
35434
    }
-
 
35435
 
-
 
35436
    /** Returns true if field oosStatusMap is set (has been assigned a value) and false otherwise */
-
 
35437
    public boolean isSetOosStatusMap() {
-
 
35438
      return this.oosStatusMap != null;
-
 
35439
    }
-
 
35440
 
-
 
35441
    public void setOosStatusMapIsSet(boolean value) {
-
 
35442
      if (!value) {
-
 
35443
        this.oosStatusMap = null;
-
 
35444
      }
-
 
35445
    }
-
 
35446
 
-
 
35447
    public long getDate() {
-
 
35448
      return this.date;
-
 
35449
    }
-
 
35450
 
-
 
35451
    public void setDate(long date) {
-
 
35452
      this.date = date;
-
 
35453
      setDateIsSet(true);
-
 
35454
    }
-
 
35455
 
-
 
35456
    public void unsetDate() {
-
 
35457
      __isset_bit_vector.clear(__DATE_ISSET_ID);
-
 
35458
    }
-
 
35459
 
-
 
35460
    /** Returns true if field date is set (has been assigned a value) and false otherwise */
-
 
35461
    public boolean isSetDate() {
-
 
35462
      return __isset_bit_vector.get(__DATE_ISSET_ID);
-
 
35463
    }
-
 
35464
 
-
 
35465
    public void setDateIsSet(boolean value) {
-
 
35466
      __isset_bit_vector.set(__DATE_ISSET_ID, value);
-
 
35467
    }
-
 
35468
 
-
 
35469
    public void setFieldValue(_Fields field, Object value) {
-
 
35470
      switch (field) {
-
 
35471
      case OOS_STATUS_MAP:
-
 
35472
        if (value == null) {
-
 
35473
          unsetOosStatusMap();
-
 
35474
        } else {
-
 
35475
          setOosStatusMap((Map<Long,Boolean>)value);
-
 
35476
        }
-
 
35477
        break;
-
 
35478
 
-
 
35479
      case DATE:
-
 
35480
        if (value == null) {
-
 
35481
          unsetDate();
-
 
35482
        } else {
-
 
35483
          setDate((Long)value);
-
 
35484
        }
-
 
35485
        break;
-
 
35486
 
-
 
35487
      }
-
 
35488
    }
-
 
35489
 
-
 
35490
    public Object getFieldValue(_Fields field) {
-
 
35491
      switch (field) {
-
 
35492
      case OOS_STATUS_MAP:
-
 
35493
        return getOosStatusMap();
-
 
35494
 
-
 
35495
      case DATE:
-
 
35496
        return Long.valueOf(getDate());
-
 
35497
 
-
 
35498
      }
-
 
35499
      throw new IllegalStateException();
-
 
35500
    }
-
 
35501
 
-
 
35502
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
35503
    public boolean isSet(_Fields field) {
-
 
35504
      if (field == null) {
-
 
35505
        throw new IllegalArgumentException();
-
 
35506
      }
-
 
35507
 
-
 
35508
      switch (field) {
-
 
35509
      case OOS_STATUS_MAP:
-
 
35510
        return isSetOosStatusMap();
-
 
35511
      case DATE:
-
 
35512
        return isSetDate();
-
 
35513
      }
-
 
35514
      throw new IllegalStateException();
-
 
35515
    }
-
 
35516
 
-
 
35517
    @Override
-
 
35518
    public boolean equals(Object that) {
-
 
35519
      if (that == null)
-
 
35520
        return false;
-
 
35521
      if (that instanceof addOosStatusForItem_args)
-
 
35522
        return this.equals((addOosStatusForItem_args)that);
-
 
35523
      return false;
-
 
35524
    }
-
 
35525
 
-
 
35526
    public boolean equals(addOosStatusForItem_args that) {
-
 
35527
      if (that == null)
-
 
35528
        return false;
-
 
35529
 
-
 
35530
      boolean this_present_oosStatusMap = true && this.isSetOosStatusMap();
-
 
35531
      boolean that_present_oosStatusMap = true && that.isSetOosStatusMap();
-
 
35532
      if (this_present_oosStatusMap || that_present_oosStatusMap) {
-
 
35533
        if (!(this_present_oosStatusMap && that_present_oosStatusMap))
-
 
35534
          return false;
-
 
35535
        if (!this.oosStatusMap.equals(that.oosStatusMap))
-
 
35536
          return false;
-
 
35537
      }
-
 
35538
 
-
 
35539
      boolean this_present_date = true;
-
 
35540
      boolean that_present_date = true;
-
 
35541
      if (this_present_date || that_present_date) {
-
 
35542
        if (!(this_present_date && that_present_date))
-
 
35543
          return false;
-
 
35544
        if (this.date != that.date)
-
 
35545
          return false;
-
 
35546
      }
-
 
35547
 
-
 
35548
      return true;
-
 
35549
    }
-
 
35550
 
-
 
35551
    @Override
-
 
35552
    public int hashCode() {
-
 
35553
      return 0;
-
 
35554
    }
-
 
35555
 
-
 
35556
    public int compareTo(addOosStatusForItem_args other) {
-
 
35557
      if (!getClass().equals(other.getClass())) {
-
 
35558
        return getClass().getName().compareTo(other.getClass().getName());
-
 
35559
      }
-
 
35560
 
-
 
35561
      int lastComparison = 0;
-
 
35562
      addOosStatusForItem_args typedOther = (addOosStatusForItem_args)other;
-
 
35563
 
-
 
35564
      lastComparison = Boolean.valueOf(isSetOosStatusMap()).compareTo(typedOther.isSetOosStatusMap());
-
 
35565
      if (lastComparison != 0) {
-
 
35566
        return lastComparison;
-
 
35567
      }
-
 
35568
      if (isSetOosStatusMap()) {
-
 
35569
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oosStatusMap, typedOther.oosStatusMap);
-
 
35570
        if (lastComparison != 0) {
-
 
35571
          return lastComparison;
-
 
35572
        }
-
 
35573
      }
-
 
35574
      lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
-
 
35575
      if (lastComparison != 0) {
-
 
35576
        return lastComparison;
-
 
35577
      }
-
 
35578
      if (isSetDate()) {
-
 
35579
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
-
 
35580
        if (lastComparison != 0) {
-
 
35581
          return lastComparison;
-
 
35582
        }
-
 
35583
      }
-
 
35584
      return 0;
-
 
35585
    }
-
 
35586
 
-
 
35587
    public _Fields fieldForId(int fieldId) {
-
 
35588
      return _Fields.findByThriftId(fieldId);
-
 
35589
    }
-
 
35590
 
-
 
35591
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
35592
      org.apache.thrift.protocol.TField field;
-
 
35593
      iprot.readStructBegin();
-
 
35594
      while (true)
-
 
35595
      {
-
 
35596
        field = iprot.readFieldBegin();
-
 
35597
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
35598
          break;
-
 
35599
        }
-
 
35600
        switch (field.id) {
-
 
35601
          case 1: // OOS_STATUS_MAP
-
 
35602
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
35603
              {
-
 
35604
                org.apache.thrift.protocol.TMap _map104 = iprot.readMapBegin();
-
 
35605
                this.oosStatusMap = new HashMap<Long,Boolean>(2*_map104.size);
-
 
35606
                for (int _i105 = 0; _i105 < _map104.size; ++_i105)
-
 
35607
                {
-
 
35608
                  long _key106; // required
-
 
35609
                  boolean _val107; // required
-
 
35610
                  _key106 = iprot.readI64();
-
 
35611
                  _val107 = iprot.readBool();
-
 
35612
                  this.oosStatusMap.put(_key106, _val107);
-
 
35613
                }
-
 
35614
                iprot.readMapEnd();
-
 
35615
              }
-
 
35616
            } else { 
-
 
35617
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
35618
            }
-
 
35619
            break;
-
 
35620
          case 2: // DATE
-
 
35621
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
35622
              this.date = iprot.readI64();
-
 
35623
              setDateIsSet(true);
-
 
35624
            } else { 
-
 
35625
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
35626
            }
-
 
35627
            break;
-
 
35628
          default:
-
 
35629
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
35630
        }
-
 
35631
        iprot.readFieldEnd();
-
 
35632
      }
-
 
35633
      iprot.readStructEnd();
-
 
35634
      validate();
-
 
35635
    }
-
 
35636
 
-
 
35637
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
35638
      validate();
-
 
35639
 
-
 
35640
      oprot.writeStructBegin(STRUCT_DESC);
-
 
35641
      if (this.oosStatusMap != null) {
-
 
35642
        oprot.writeFieldBegin(OOS_STATUS_MAP_FIELD_DESC);
-
 
35643
        {
-
 
35644
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.BOOL, this.oosStatusMap.size()));
-
 
35645
          for (Map.Entry<Long, Boolean> _iter108 : this.oosStatusMap.entrySet())
-
 
35646
          {
-
 
35647
            oprot.writeI64(_iter108.getKey());
-
 
35648
            oprot.writeBool(_iter108.getValue());
-
 
35649
          }
-
 
35650
          oprot.writeMapEnd();
-
 
35651
        }
-
 
35652
        oprot.writeFieldEnd();
-
 
35653
      }
-
 
35654
      oprot.writeFieldBegin(DATE_FIELD_DESC);
-
 
35655
      oprot.writeI64(this.date);
-
 
35656
      oprot.writeFieldEnd();
-
 
35657
      oprot.writeFieldStop();
-
 
35658
      oprot.writeStructEnd();
-
 
35659
    }
-
 
35660
 
-
 
35661
    @Override
-
 
35662
    public String toString() {
-
 
35663
      StringBuilder sb = new StringBuilder("addOosStatusForItem_args(");
-
 
35664
      boolean first = true;
-
 
35665
 
-
 
35666
      sb.append("oosStatusMap:");
-
 
35667
      if (this.oosStatusMap == null) {
-
 
35668
        sb.append("null");
-
 
35669
      } else {
-
 
35670
        sb.append(this.oosStatusMap);
-
 
35671
      }
-
 
35672
      first = false;
-
 
35673
      if (!first) sb.append(", ");
-
 
35674
      sb.append("date:");
-
 
35675
      sb.append(this.date);
-
 
35676
      first = false;
-
 
35677
      sb.append(")");
-
 
35678
      return sb.toString();
-
 
35679
    }
-
 
35680
 
-
 
35681
    public void validate() throws org.apache.thrift.TException {
-
 
35682
      // check for required fields
-
 
35683
    }
-
 
35684
 
-
 
35685
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
35686
      try {
-
 
35687
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
35688
      } catch (org.apache.thrift.TException te) {
-
 
35689
        throw new java.io.IOException(te);
-
 
35690
      }
-
 
35691
    }
-
 
35692
 
-
 
35693
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
35694
      try {
-
 
35695
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
35696
        __isset_bit_vector = new BitSet(1);
-
 
35697
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
35698
      } catch (org.apache.thrift.TException te) {
-
 
35699
        throw new java.io.IOException(te);
-
 
35700
      }
-
 
35701
    }
-
 
35702
 
-
 
35703
  }
-
 
35704
 
-
 
35705
  public static class addOosStatusForItem_result implements org.apache.thrift.TBase<addOosStatusForItem_result, addOosStatusForItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
35706
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOosStatusForItem_result");
-
 
35707
 
-
 
35708
 
-
 
35709
 
-
 
35710
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
35711
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
35712
;
-
 
35713
 
-
 
35714
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
35715
 
-
 
35716
      static {
-
 
35717
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
35718
          byName.put(field.getFieldName(), field);
-
 
35719
        }
-
 
35720
      }
-
 
35721
 
-
 
35722
      /**
-
 
35723
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
35724
       */
-
 
35725
      public static _Fields findByThriftId(int fieldId) {
-
 
35726
        switch(fieldId) {
-
 
35727
          default:
-
 
35728
            return null;
-
 
35729
        }
-
 
35730
      }
-
 
35731
 
-
 
35732
      /**
-
 
35733
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
35734
       * if it is not found.
-
 
35735
       */
-
 
35736
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
35737
        _Fields fields = findByThriftId(fieldId);
-
 
35738
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
35739
        return fields;
-
 
35740
      }
-
 
35741
 
-
 
35742
      /**
-
 
35743
       * Find the _Fields constant that matches name, or null if its not found.
-
 
35744
       */
-
 
35745
      public static _Fields findByName(String name) {
-
 
35746
        return byName.get(name);
-
 
35747
      }
-
 
35748
 
-
 
35749
      private final short _thriftId;
-
 
35750
      private final String _fieldName;
-
 
35751
 
-
 
35752
      _Fields(short thriftId, String fieldName) {
-
 
35753
        _thriftId = thriftId;
-
 
35754
        _fieldName = fieldName;
-
 
35755
      }
-
 
35756
 
-
 
35757
      public short getThriftFieldId() {
-
 
35758
        return _thriftId;
-
 
35759
      }
-
 
35760
 
-
 
35761
      public String getFieldName() {
-
 
35762
        return _fieldName;
-
 
35763
      }
-
 
35764
    }
-
 
35765
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
35766
    static {
-
 
35767
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
35768
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
35769
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOosStatusForItem_result.class, metaDataMap);
-
 
35770
    }
-
 
35771
 
-
 
35772
    public addOosStatusForItem_result() {
-
 
35773
    }
-
 
35774
 
-
 
35775
    /**
-
 
35776
     * Performs a deep copy on <i>other</i>.
-
 
35777
     */
-
 
35778
    public addOosStatusForItem_result(addOosStatusForItem_result other) {
-
 
35779
    }
-
 
35780
 
-
 
35781
    public addOosStatusForItem_result deepCopy() {
-
 
35782
      return new addOosStatusForItem_result(this);
-
 
35783
    }
-
 
35784
 
-
 
35785
    @Override
-
 
35786
    public void clear() {
-
 
35787
    }
-
 
35788
 
-
 
35789
    public void setFieldValue(_Fields field, Object value) {
-
 
35790
      switch (field) {
-
 
35791
      }
-
 
35792
    }
-
 
35793
 
-
 
35794
    public Object getFieldValue(_Fields field) {
-
 
35795
      switch (field) {
-
 
35796
      }
-
 
35797
      throw new IllegalStateException();
-
 
35798
    }
-
 
35799
 
-
 
35800
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
35801
    public boolean isSet(_Fields field) {
-
 
35802
      if (field == null) {
-
 
35803
        throw new IllegalArgumentException();
-
 
35804
      }
-
 
35805
 
-
 
35806
      switch (field) {
-
 
35807
      }
-
 
35808
      throw new IllegalStateException();
-
 
35809
    }
-
 
35810
 
-
 
35811
    @Override
-
 
35812
    public boolean equals(Object that) {
-
 
35813
      if (that == null)
-
 
35814
        return false;
-
 
35815
      if (that instanceof addOosStatusForItem_result)
-
 
35816
        return this.equals((addOosStatusForItem_result)that);
-
 
35817
      return false;
-
 
35818
    }
-
 
35819
 
-
 
35820
    public boolean equals(addOosStatusForItem_result that) {
-
 
35821
      if (that == null)
-
 
35822
        return false;
-
 
35823
 
-
 
35824
      return true;
-
 
35825
    }
-
 
35826
 
-
 
35827
    @Override
-
 
35828
    public int hashCode() {
-
 
35829
      return 0;
-
 
35830
    }
-
 
35831
 
-
 
35832
    public int compareTo(addOosStatusForItem_result other) {
-
 
35833
      if (!getClass().equals(other.getClass())) {
-
 
35834
        return getClass().getName().compareTo(other.getClass().getName());
-
 
35835
      }
-
 
35836
 
-
 
35837
      int lastComparison = 0;
-
 
35838
      addOosStatusForItem_result typedOther = (addOosStatusForItem_result)other;
-
 
35839
 
-
 
35840
      return 0;
-
 
35841
    }
-
 
35842
 
-
 
35843
    public _Fields fieldForId(int fieldId) {
-
 
35844
      return _Fields.findByThriftId(fieldId);
-
 
35845
    }
-
 
35846
 
-
 
35847
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
35848
      org.apache.thrift.protocol.TField field;
-
 
35849
      iprot.readStructBegin();
-
 
35850
      while (true)
-
 
35851
      {
-
 
35852
        field = iprot.readFieldBegin();
-
 
35853
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
35854
          break;
-
 
35855
        }
-
 
35856
        switch (field.id) {
-
 
35857
          default:
-
 
35858
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
35859
        }
-
 
35860
        iprot.readFieldEnd();
-
 
35861
      }
-
 
35862
      iprot.readStructEnd();
-
 
35863
      validate();
-
 
35864
    }
-
 
35865
 
-
 
35866
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
35867
      oprot.writeStructBegin(STRUCT_DESC);
-
 
35868
 
-
 
35869
      oprot.writeFieldStop();
-
 
35870
      oprot.writeStructEnd();
-
 
35871
    }
-
 
35872
 
-
 
35873
    @Override
-
 
35874
    public String toString() {
-
 
35875
      StringBuilder sb = new StringBuilder("addOosStatusForItem_result(");
-
 
35876
      boolean first = true;
-
 
35877
 
-
 
35878
      sb.append(")");
-
 
35879
      return sb.toString();
-
 
35880
    }
-
 
35881
 
-
 
35882
    public void validate() throws org.apache.thrift.TException {
33776
      // check for required fields
35883
      // check for required fields
33777
    }
35884
    }
33778
 
35885
 
33779
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35886
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33780
      try {
35887
      try {