Subversion Repositories SmartDukaan

Rev

Rev 5460 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5460 Rev 5504
Line 534... Line 534...
534
     */
534
     */
535
    public void clearItemAvailabilityCache() throws org.apache.thrift.TException;
535
    public void clearItemAvailabilityCache() throws org.apache.thrift.TException;
536
 
536
 
537
    public List<Long> getClearanceSaleCatalogIds() throws InventoryServiceException, org.apache.thrift.TException;
537
    public List<Long> getClearanceSaleCatalogIds() throws InventoryServiceException, org.apache.thrift.TException;
538
 
538
 
-
 
539
    public boolean addupdateVoucherForItem(long catalog_item_id, String voucherType, long voucherAmount) throws InventoryServiceException, org.apache.thrift.TException;
-
 
540
 
-
 
541
    public boolean deleteVoucherForItem(long catalog_item_id, String voucherType) throws InventoryServiceException, org.apache.thrift.TException;
-
 
542
 
-
 
543
    public long getVoucherAmount(long itemId, String voucherType) throws org.apache.thrift.TException;
-
 
544
 
-
 
545
    public List<VoucherItemMapping> getAllItemVouchers(long itemId) throws org.apache.thrift.TException;
-
 
546
 
539
  }
547
  }
540
 
548
 
541
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
549
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
542
 
550
 
543
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
551
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 714... Line 722...
714
 
722
 
715
    public void clearItemAvailabilityCache(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.clearItemAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException;
723
    public void clearItemAvailabilityCache(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.clearItemAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException;
716
 
724
 
717
    public void getClearanceSaleCatalogIds(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getClearanceSaleCatalogIds_call> resultHandler) throws org.apache.thrift.TException;
725
    public void getClearanceSaleCatalogIds(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getClearanceSaleCatalogIds_call> resultHandler) throws org.apache.thrift.TException;
718
 
726
 
-
 
727
    public void addupdateVoucherForItem(long catalog_item_id, String voucherType, long voucherAmount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addupdateVoucherForItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
728
 
-
 
729
    public void deleteVoucherForItem(long catalog_item_id, String voucherType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteVoucherForItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
730
 
-
 
731
    public void getVoucherAmount(long itemId, String voucherType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVoucherAmount_call> resultHandler) throws org.apache.thrift.TException;
-
 
732
 
-
 
733
    public void getAllItemVouchers(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemVouchers_call> resultHandler) throws org.apache.thrift.TException;
-
 
734
 
719
  }
735
  }
720
 
736
 
721
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
737
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
722
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
738
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
723
      public Factory() {}
739
      public Factory() {}
Line 2929... Line 2945...
2929
        throw result.cex;
2945
        throw result.cex;
2930
      }
2946
      }
2931
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getClearanceSaleCatalogIds failed: unknown result");
2947
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getClearanceSaleCatalogIds failed: unknown result");
2932
    }
2948
    }
2933
 
2949
 
-
 
2950
    public boolean addupdateVoucherForItem(long catalog_item_id, String voucherType, long voucherAmount) throws InventoryServiceException, org.apache.thrift.TException
-
 
2951
    {
-
 
2952
      send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount);
-
 
2953
      return recv_addupdateVoucherForItem();
-
 
2954
    }
-
 
2955
 
-
 
2956
    public void send_addupdateVoucherForItem(long catalog_item_id, String voucherType, long voucherAmount) throws org.apache.thrift.TException
-
 
2957
    {
-
 
2958
      addupdateVoucherForItem_args args = new addupdateVoucherForItem_args();
-
 
2959
      args.setCatalog_item_id(catalog_item_id);
-
 
2960
      args.setVoucherType(voucherType);
-
 
2961
      args.setVoucherAmount(voucherAmount);
-
 
2962
      sendBase("addupdateVoucherForItem", args);
-
 
2963
    }
-
 
2964
 
-
 
2965
    public boolean recv_addupdateVoucherForItem() throws InventoryServiceException, org.apache.thrift.TException
-
 
2966
    {
-
 
2967
      addupdateVoucherForItem_result result = new addupdateVoucherForItem_result();
-
 
2968
      receiveBase(result, "addupdateVoucherForItem");
-
 
2969
      if (result.isSetSuccess()) {
-
 
2970
        return result.success;
-
 
2971
      }
-
 
2972
      if (result.cex != null) {
-
 
2973
        throw result.cex;
-
 
2974
      }
-
 
2975
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");
-
 
2976
    }
-
 
2977
 
-
 
2978
    public boolean deleteVoucherForItem(long catalog_item_id, String voucherType) throws InventoryServiceException, org.apache.thrift.TException
-
 
2979
    {
-
 
2980
      send_deleteVoucherForItem(catalog_item_id, voucherType);
-
 
2981
      return recv_deleteVoucherForItem();
-
 
2982
    }
-
 
2983
 
-
 
2984
    public void send_deleteVoucherForItem(long catalog_item_id, String voucherType) throws org.apache.thrift.TException
-
 
2985
    {
-
 
2986
      deleteVoucherForItem_args args = new deleteVoucherForItem_args();
-
 
2987
      args.setCatalog_item_id(catalog_item_id);
-
 
2988
      args.setVoucherType(voucherType);
-
 
2989
      sendBase("deleteVoucherForItem", args);
-
 
2990
    }
-
 
2991
 
-
 
2992
    public boolean recv_deleteVoucherForItem() throws InventoryServiceException, org.apache.thrift.TException
-
 
2993
    {
-
 
2994
      deleteVoucherForItem_result result = new deleteVoucherForItem_result();
-
 
2995
      receiveBase(result, "deleteVoucherForItem");
-
 
2996
      if (result.isSetSuccess()) {
-
 
2997
        return result.success;
-
 
2998
      }
-
 
2999
      if (result.cex != null) {
-
 
3000
        throw result.cex;
-
 
3001
      }
-
 
3002
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
-
 
3003
    }
-
 
3004
 
-
 
3005
    public long getVoucherAmount(long itemId, String voucherType) throws org.apache.thrift.TException
-
 
3006
    {
-
 
3007
      send_getVoucherAmount(itemId, voucherType);
-
 
3008
      return recv_getVoucherAmount();
-
 
3009
    }
-
 
3010
 
-
 
3011
    public void send_getVoucherAmount(long itemId, String voucherType) throws org.apache.thrift.TException
-
 
3012
    {
-
 
3013
      getVoucherAmount_args args = new getVoucherAmount_args();
-
 
3014
      args.setItemId(itemId);
-
 
3015
      args.setVoucherType(voucherType);
-
 
3016
      sendBase("getVoucherAmount", args);
-
 
3017
    }
-
 
3018
 
-
 
3019
    public long recv_getVoucherAmount() throws org.apache.thrift.TException
-
 
3020
    {
-
 
3021
      getVoucherAmount_result result = new getVoucherAmount_result();
-
 
3022
      receiveBase(result, "getVoucherAmount");
-
 
3023
      if (result.isSetSuccess()) {
-
 
3024
        return result.success;
-
 
3025
      }
-
 
3026
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");
-
 
3027
    }
-
 
3028
 
-
 
3029
    public List<VoucherItemMapping> getAllItemVouchers(long itemId) throws org.apache.thrift.TException
-
 
3030
    {
-
 
3031
      send_getAllItemVouchers(itemId);
-
 
3032
      return recv_getAllItemVouchers();
-
 
3033
    }
-
 
3034
 
-
 
3035
    public void send_getAllItemVouchers(long itemId) throws org.apache.thrift.TException
-
 
3036
    {
-
 
3037
      getAllItemVouchers_args args = new getAllItemVouchers_args();
-
 
3038
      args.setItemId(itemId);
-
 
3039
      sendBase("getAllItemVouchers", args);
-
 
3040
    }
-
 
3041
 
-
 
3042
    public List<VoucherItemMapping> recv_getAllItemVouchers() throws org.apache.thrift.TException
-
 
3043
    {
-
 
3044
      getAllItemVouchers_result result = new getAllItemVouchers_result();
-
 
3045
      receiveBase(result, "getAllItemVouchers");
-
 
3046
      if (result.isSetSuccess()) {
-
 
3047
        return result.success;
-
 
3048
      }
-
 
3049
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");
-
 
3050
    }
-
 
3051
 
2934
  }
3052
  }
2935
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
3053
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2936
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
3054
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2937
      private org.apache.thrift.async.TAsyncClientManager clientManager;
3055
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2938
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
3056
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 5892... Line 6010...
5892
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6010
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5893
        return (new Client(prot)).recv_getClearanceSaleCatalogIds();
6011
        return (new Client(prot)).recv_getClearanceSaleCatalogIds();
5894
      }
6012
      }
5895
    }
6013
    }
5896
 
6014
 
-
 
6015
    public void addupdateVoucherForItem(long catalog_item_id, String voucherType, long voucherAmount, org.apache.thrift.async.AsyncMethodCallback<addupdateVoucherForItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
6016
      checkReady();
-
 
6017
      addupdateVoucherForItem_call method_call = new addupdateVoucherForItem_call(catalog_item_id, voucherType, voucherAmount, resultHandler, this, ___protocolFactory, ___transport);
-
 
6018
      this.___currentMethod = method_call;
-
 
6019
      ___manager.call(method_call);
-
 
6020
    }
-
 
6021
 
-
 
6022
    public static class addupdateVoucherForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
6023
      private long catalog_item_id;
-
 
6024
      private String voucherType;
-
 
6025
      private long voucherAmount;
-
 
6026
      public addupdateVoucherForItem_call(long catalog_item_id, String voucherType, long voucherAmount, org.apache.thrift.async.AsyncMethodCallback<addupdateVoucherForItem_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 {
-
 
6027
        super(client, protocolFactory, transport, resultHandler, false);
-
 
6028
        this.catalog_item_id = catalog_item_id;
-
 
6029
        this.voucherType = voucherType;
-
 
6030
        this.voucherAmount = voucherAmount;
-
 
6031
      }
-
 
6032
 
-
 
6033
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
6034
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addupdateVoucherForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
6035
        addupdateVoucherForItem_args args = new addupdateVoucherForItem_args();
-
 
6036
        args.setCatalog_item_id(catalog_item_id);
-
 
6037
        args.setVoucherType(voucherType);
-
 
6038
        args.setVoucherAmount(voucherAmount);
-
 
6039
        args.write(prot);
-
 
6040
        prot.writeMessageEnd();
-
 
6041
      }
-
 
6042
 
-
 
6043
      public boolean getResult() throws InventoryServiceException, org.apache.thrift.TException {
-
 
6044
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
6045
          throw new IllegalStateException("Method call not finished!");
-
 
6046
        }
-
 
6047
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
6048
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
6049
        return (new Client(prot)).recv_addupdateVoucherForItem();
-
 
6050
      }
-
 
6051
    }
-
 
6052
 
-
 
6053
    public void deleteVoucherForItem(long catalog_item_id, String voucherType, org.apache.thrift.async.AsyncMethodCallback<deleteVoucherForItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
6054
      checkReady();
-
 
6055
      deleteVoucherForItem_call method_call = new deleteVoucherForItem_call(catalog_item_id, voucherType, resultHandler, this, ___protocolFactory, ___transport);
-
 
6056
      this.___currentMethod = method_call;
-
 
6057
      ___manager.call(method_call);
-
 
6058
    }
-
 
6059
 
-
 
6060
    public static class deleteVoucherForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
6061
      private long catalog_item_id;
-
 
6062
      private String voucherType;
-
 
6063
      public deleteVoucherForItem_call(long catalog_item_id, String voucherType, org.apache.thrift.async.AsyncMethodCallback<deleteVoucherForItem_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 {
-
 
6064
        super(client, protocolFactory, transport, resultHandler, false);
-
 
6065
        this.catalog_item_id = catalog_item_id;
-
 
6066
        this.voucherType = voucherType;
-
 
6067
      }
-
 
6068
 
-
 
6069
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
6070
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteVoucherForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
6071
        deleteVoucherForItem_args args = new deleteVoucherForItem_args();
-
 
6072
        args.setCatalog_item_id(catalog_item_id);
-
 
6073
        args.setVoucherType(voucherType);
-
 
6074
        args.write(prot);
-
 
6075
        prot.writeMessageEnd();
-
 
6076
      }
-
 
6077
 
-
 
6078
      public boolean getResult() throws InventoryServiceException, org.apache.thrift.TException {
-
 
6079
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
6080
          throw new IllegalStateException("Method call not finished!");
-
 
6081
        }
-
 
6082
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
6083
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
6084
        return (new Client(prot)).recv_deleteVoucherForItem();
-
 
6085
      }
-
 
6086
    }
-
 
6087
 
-
 
6088
    public void getVoucherAmount(long itemId, String voucherType, org.apache.thrift.async.AsyncMethodCallback<getVoucherAmount_call> resultHandler) throws org.apache.thrift.TException {
-
 
6089
      checkReady();
-
 
6090
      getVoucherAmount_call method_call = new getVoucherAmount_call(itemId, voucherType, resultHandler, this, ___protocolFactory, ___transport);
-
 
6091
      this.___currentMethod = method_call;
-
 
6092
      ___manager.call(method_call);
-
 
6093
    }
-
 
6094
 
-
 
6095
    public static class getVoucherAmount_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
6096
      private long itemId;
-
 
6097
      private String voucherType;
-
 
6098
      public getVoucherAmount_call(long itemId, String voucherType, org.apache.thrift.async.AsyncMethodCallback<getVoucherAmount_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 {
-
 
6099
        super(client, protocolFactory, transport, resultHandler, false);
-
 
6100
        this.itemId = itemId;
-
 
6101
        this.voucherType = voucherType;
-
 
6102
      }
-
 
6103
 
-
 
6104
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
6105
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVoucherAmount", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
6106
        getVoucherAmount_args args = new getVoucherAmount_args();
-
 
6107
        args.setItemId(itemId);
-
 
6108
        args.setVoucherType(voucherType);
-
 
6109
        args.write(prot);
-
 
6110
        prot.writeMessageEnd();
-
 
6111
      }
-
 
6112
 
-
 
6113
      public long getResult() throws org.apache.thrift.TException {
-
 
6114
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
6115
          throw new IllegalStateException("Method call not finished!");
-
 
6116
        }
-
 
6117
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
6118
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
6119
        return (new Client(prot)).recv_getVoucherAmount();
-
 
6120
      }
-
 
6121
    }
-
 
6122
 
-
 
6123
    public void getAllItemVouchers(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAllItemVouchers_call> resultHandler) throws org.apache.thrift.TException {
-
 
6124
      checkReady();
-
 
6125
      getAllItemVouchers_call method_call = new getAllItemVouchers_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
-
 
6126
      this.___currentMethod = method_call;
-
 
6127
      ___manager.call(method_call);
-
 
6128
    }
-
 
6129
 
-
 
6130
    public static class getAllItemVouchers_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
6131
      private long itemId;
-
 
6132
      public getAllItemVouchers_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAllItemVouchers_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 {
-
 
6133
        super(client, protocolFactory, transport, resultHandler, false);
-
 
6134
        this.itemId = itemId;
-
 
6135
      }
-
 
6136
 
-
 
6137
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
6138
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemVouchers", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
6139
        getAllItemVouchers_args args = new getAllItemVouchers_args();
-
 
6140
        args.setItemId(itemId);
-
 
6141
        args.write(prot);
-
 
6142
        prot.writeMessageEnd();
-
 
6143
      }
-
 
6144
 
-
 
6145
      public List<VoucherItemMapping> getResult() throws org.apache.thrift.TException {
-
 
6146
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
6147
          throw new IllegalStateException("Method call not finished!");
-
 
6148
        }
-
 
6149
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
6150
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
6151
        return (new Client(prot)).recv_getAllItemVouchers();
-
 
6152
      }
-
 
6153
    }
-
 
6154
 
5897
  }
6155
  }
5898
 
6156
 
5899
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
6157
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5900
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
6158
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5901
    public Processor(I iface) {
6159
    public Processor(I iface) {
Line 5993... Line 6251...
5993
      processMap.put("getShippingLocations", new getShippingLocations());
6251
      processMap.put("getShippingLocations", new getShippingLocations());
5994
      processMap.put("getAllVendorItemMappings", new getAllVendorItemMappings());
6252
      processMap.put("getAllVendorItemMappings", new getAllVendorItemMappings());
5995
      processMap.put("getInventorySnapshot", new getInventorySnapshot());
6253
      processMap.put("getInventorySnapshot", new getInventorySnapshot());
5996
      processMap.put("clearItemAvailabilityCache", new clearItemAvailabilityCache());
6254
      processMap.put("clearItemAvailabilityCache", new clearItemAvailabilityCache());
5997
      processMap.put("getClearanceSaleCatalogIds", new getClearanceSaleCatalogIds());
6255
      processMap.put("getClearanceSaleCatalogIds", new getClearanceSaleCatalogIds());
-
 
6256
      processMap.put("addupdateVoucherForItem", new addupdateVoucherForItem());
-
 
6257
      processMap.put("deleteVoucherForItem", new deleteVoucherForItem());
-
 
6258
      processMap.put("getVoucherAmount", new getVoucherAmount());
-
 
6259
      processMap.put("getAllItemVouchers", new getAllItemVouchers());
5998
      return processMap;
6260
      return processMap;
5999
    }
6261
    }
6000
 
6262
 
6001
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
6263
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
6002
      public addItem() {
6264
      public addItem() {
Line 7657... Line 7919...
7657
        }
7919
        }
7658
        return result;
7920
        return result;
7659
      }
7921
      }
7660
    }
7922
    }
7661
 
7923
 
-
 
7924
    private static class addupdateVoucherForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addupdateVoucherForItem_args> {
-
 
7925
      public addupdateVoucherForItem() {
-
 
7926
        super("addupdateVoucherForItem");
-
 
7927
      }
-
 
7928
 
-
 
7929
      protected addupdateVoucherForItem_args getEmptyArgsInstance() {
-
 
7930
        return new addupdateVoucherForItem_args();
-
 
7931
      }
-
 
7932
 
-
 
7933
      protected addupdateVoucherForItem_result getResult(I iface, addupdateVoucherForItem_args args) throws org.apache.thrift.TException {
-
 
7934
        addupdateVoucherForItem_result result = new addupdateVoucherForItem_result();
-
 
7935
        try {
-
 
7936
          result.success = iface.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount);
-
 
7937
          result.setSuccessIsSet(true);
-
 
7938
        } catch (InventoryServiceException cex) {
-
 
7939
          result.cex = cex;
-
 
7940
        }
-
 
7941
        return result;
-
 
7942
      }
-
 
7943
    }
-
 
7944
 
-
 
7945
    private static class deleteVoucherForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteVoucherForItem_args> {
-
 
7946
      public deleteVoucherForItem() {
-
 
7947
        super("deleteVoucherForItem");
-
 
7948
      }
-
 
7949
 
-
 
7950
      protected deleteVoucherForItem_args getEmptyArgsInstance() {
-
 
7951
        return new deleteVoucherForItem_args();
-
 
7952
      }
-
 
7953
 
-
 
7954
      protected deleteVoucherForItem_result getResult(I iface, deleteVoucherForItem_args args) throws org.apache.thrift.TException {
-
 
7955
        deleteVoucherForItem_result result = new deleteVoucherForItem_result();
-
 
7956
        try {
-
 
7957
          result.success = iface.deleteVoucherForItem(args.catalog_item_id, args.voucherType);
-
 
7958
          result.setSuccessIsSet(true);
-
 
7959
        } catch (InventoryServiceException cex) {
-
 
7960
          result.cex = cex;
-
 
7961
        }
-
 
7962
        return result;
-
 
7963
      }
-
 
7964
    }
-
 
7965
 
-
 
7966
    private static class getVoucherAmount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVoucherAmount_args> {
-
 
7967
      public getVoucherAmount() {
-
 
7968
        super("getVoucherAmount");
-
 
7969
      }
-
 
7970
 
-
 
7971
      protected getVoucherAmount_args getEmptyArgsInstance() {
-
 
7972
        return new getVoucherAmount_args();
-
 
7973
      }
-
 
7974
 
-
 
7975
      protected getVoucherAmount_result getResult(I iface, getVoucherAmount_args args) throws org.apache.thrift.TException {
-
 
7976
        getVoucherAmount_result result = new getVoucherAmount_result();
-
 
7977
        result.success = iface.getVoucherAmount(args.itemId, args.voucherType);
-
 
7978
        result.setSuccessIsSet(true);
-
 
7979
        return result;
-
 
7980
      }
-
 
7981
    }
-
 
7982
 
-
 
7983
    private static class getAllItemVouchers<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemVouchers_args> {
-
 
7984
      public getAllItemVouchers() {
-
 
7985
        super("getAllItemVouchers");
-
 
7986
      }
-
 
7987
 
-
 
7988
      protected getAllItemVouchers_args getEmptyArgsInstance() {
-
 
7989
        return new getAllItemVouchers_args();
-
 
7990
      }
-
 
7991
 
-
 
7992
      protected getAllItemVouchers_result getResult(I iface, getAllItemVouchers_args args) throws org.apache.thrift.TException {
-
 
7993
        getAllItemVouchers_result result = new getAllItemVouchers_result();
-
 
7994
        result.success = iface.getAllItemVouchers(args.itemId);
-
 
7995
        return result;
-
 
7996
      }
-
 
7997
    }
-
 
7998
 
7662
  }
7999
  }
7663
 
8000
 
7664
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
8001
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
7665
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
8002
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
7666
 
8003
 
Line 68318... Line 68655...
68318
      }
68655
      }
68319
      first = false;
68656
      first = false;
68320
      sb.append(")");
68657
      sb.append(")");
68321
      return sb.toString();
68658
      return sb.toString();
68322
    }
68659
    }
-
 
68660
 
-
 
68661
    public void validate() throws org.apache.thrift.TException {
-
 
68662
      // check for required fields
-
 
68663
    }
-
 
68664
 
-
 
68665
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
68666
      try {
-
 
68667
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
68668
      } catch (org.apache.thrift.TException te) {
-
 
68669
        throw new java.io.IOException(te);
-
 
68670
      }
-
 
68671
    }
-
 
68672
 
-
 
68673
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
68674
      try {
-
 
68675
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
68676
      } catch (org.apache.thrift.TException te) {
-
 
68677
        throw new java.io.IOException(te);
-
 
68678
      }
-
 
68679
    }
-
 
68680
 
-
 
68681
  }
-
 
68682
 
-
 
68683
  public static class addupdateVoucherForItem_args implements org.apache.thrift.TBase<addupdateVoucherForItem_args, addupdateVoucherForItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
68684
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addupdateVoucherForItem_args");
-
 
68685
 
-
 
68686
    private static final org.apache.thrift.protocol.TField CATALOG_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("catalog_item_id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
68687
    private static final org.apache.thrift.protocol.TField VOUCHER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("voucherType", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
68688
    private static final org.apache.thrift.protocol.TField VOUCHER_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("voucherAmount", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
68689
 
-
 
68690
    private long catalog_item_id; // required
-
 
68691
    private String voucherType; // required
-
 
68692
    private long voucherAmount; // required
-
 
68693
 
-
 
68694
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
68695
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
68696
      CATALOG_ITEM_ID((short)1, "catalog_item_id"),
-
 
68697
      VOUCHER_TYPE((short)2, "voucherType"),
-
 
68698
      VOUCHER_AMOUNT((short)3, "voucherAmount");
-
 
68699
 
-
 
68700
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
68701
 
-
 
68702
      static {
-
 
68703
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
68704
          byName.put(field.getFieldName(), field);
-
 
68705
        }
-
 
68706
      }
-
 
68707
 
-
 
68708
      /**
-
 
68709
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
68710
       */
-
 
68711
      public static _Fields findByThriftId(int fieldId) {
-
 
68712
        switch(fieldId) {
-
 
68713
          case 1: // CATALOG_ITEM_ID
-
 
68714
            return CATALOG_ITEM_ID;
-
 
68715
          case 2: // VOUCHER_TYPE
-
 
68716
            return VOUCHER_TYPE;
-
 
68717
          case 3: // VOUCHER_AMOUNT
-
 
68718
            return VOUCHER_AMOUNT;
-
 
68719
          default:
-
 
68720
            return null;
-
 
68721
        }
-
 
68722
      }
-
 
68723
 
-
 
68724
      /**
-
 
68725
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
68726
       * if it is not found.
-
 
68727
       */
-
 
68728
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
68729
        _Fields fields = findByThriftId(fieldId);
-
 
68730
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
68731
        return fields;
-
 
68732
      }
-
 
68733
 
-
 
68734
      /**
-
 
68735
       * Find the _Fields constant that matches name, or null if its not found.
-
 
68736
       */
-
 
68737
      public static _Fields findByName(String name) {
-
 
68738
        return byName.get(name);
-
 
68739
      }
-
 
68740
 
-
 
68741
      private final short _thriftId;
-
 
68742
      private final String _fieldName;
-
 
68743
 
-
 
68744
      _Fields(short thriftId, String fieldName) {
-
 
68745
        _thriftId = thriftId;
-
 
68746
        _fieldName = fieldName;
-
 
68747
      }
-
 
68748
 
-
 
68749
      public short getThriftFieldId() {
-
 
68750
        return _thriftId;
-
 
68751
      }
-
 
68752
 
-
 
68753
      public String getFieldName() {
-
 
68754
        return _fieldName;
-
 
68755
      }
-
 
68756
    }
-
 
68757
 
-
 
68758
    // isset id assignments
-
 
68759
    private static final int __CATALOG_ITEM_ID_ISSET_ID = 0;
-
 
68760
    private static final int __VOUCHERAMOUNT_ISSET_ID = 1;
-
 
68761
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
68762
 
-
 
68763
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
68764
    static {
-
 
68765
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
68766
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalog_item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
68767
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
68768
      tmpMap.put(_Fields.VOUCHER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("voucherType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
68769
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
68770
      tmpMap.put(_Fields.VOUCHER_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("voucherAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
68771
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
68772
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
68773
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addupdateVoucherForItem_args.class, metaDataMap);
-
 
68774
    }
-
 
68775
 
-
 
68776
    public addupdateVoucherForItem_args() {
-
 
68777
    }
-
 
68778
 
-
 
68779
    public addupdateVoucherForItem_args(
-
 
68780
      long catalog_item_id,
-
 
68781
      String voucherType,
-
 
68782
      long voucherAmount)
-
 
68783
    {
-
 
68784
      this();
-
 
68785
      this.catalog_item_id = catalog_item_id;
-
 
68786
      setCatalog_item_idIsSet(true);
-
 
68787
      this.voucherType = voucherType;
-
 
68788
      this.voucherAmount = voucherAmount;
-
 
68789
      setVoucherAmountIsSet(true);
-
 
68790
    }
-
 
68791
 
-
 
68792
    /**
-
 
68793
     * Performs a deep copy on <i>other</i>.
-
 
68794
     */
-
 
68795
    public addupdateVoucherForItem_args(addupdateVoucherForItem_args other) {
-
 
68796
      __isset_bit_vector.clear();
-
 
68797
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
68798
      this.catalog_item_id = other.catalog_item_id;
-
 
68799
      if (other.isSetVoucherType()) {
-
 
68800
        this.voucherType = other.voucherType;
-
 
68801
      }
-
 
68802
      this.voucherAmount = other.voucherAmount;
-
 
68803
    }
-
 
68804
 
-
 
68805
    public addupdateVoucherForItem_args deepCopy() {
-
 
68806
      return new addupdateVoucherForItem_args(this);
-
 
68807
    }
-
 
68808
 
-
 
68809
    @Override
-
 
68810
    public void clear() {
-
 
68811
      setCatalog_item_idIsSet(false);
-
 
68812
      this.catalog_item_id = 0;
-
 
68813
      this.voucherType = null;
-
 
68814
      setVoucherAmountIsSet(false);
-
 
68815
      this.voucherAmount = 0;
-
 
68816
    }
-
 
68817
 
-
 
68818
    public long getCatalog_item_id() {
-
 
68819
      return this.catalog_item_id;
-
 
68820
    }
-
 
68821
 
-
 
68822
    public void setCatalog_item_id(long catalog_item_id) {
-
 
68823
      this.catalog_item_id = catalog_item_id;
-
 
68824
      setCatalog_item_idIsSet(true);
-
 
68825
    }
-
 
68826
 
-
 
68827
    public void unsetCatalog_item_id() {
-
 
68828
      __isset_bit_vector.clear(__CATALOG_ITEM_ID_ISSET_ID);
-
 
68829
    }
-
 
68830
 
-
 
68831
    /** Returns true if field catalog_item_id is set (has been assigned a value) and false otherwise */
-
 
68832
    public boolean isSetCatalog_item_id() {
-
 
68833
      return __isset_bit_vector.get(__CATALOG_ITEM_ID_ISSET_ID);
-
 
68834
    }
-
 
68835
 
-
 
68836
    public void setCatalog_item_idIsSet(boolean value) {
-
 
68837
      __isset_bit_vector.set(__CATALOG_ITEM_ID_ISSET_ID, value);
-
 
68838
    }
-
 
68839
 
-
 
68840
    public String getVoucherType() {
-
 
68841
      return this.voucherType;
-
 
68842
    }
-
 
68843
 
-
 
68844
    public void setVoucherType(String voucherType) {
-
 
68845
      this.voucherType = voucherType;
-
 
68846
    }
-
 
68847
 
-
 
68848
    public void unsetVoucherType() {
-
 
68849
      this.voucherType = null;
-
 
68850
    }
-
 
68851
 
-
 
68852
    /** Returns true if field voucherType is set (has been assigned a value) and false otherwise */
-
 
68853
    public boolean isSetVoucherType() {
-
 
68854
      return this.voucherType != null;
-
 
68855
    }
-
 
68856
 
-
 
68857
    public void setVoucherTypeIsSet(boolean value) {
-
 
68858
      if (!value) {
-
 
68859
        this.voucherType = null;
-
 
68860
      }
-
 
68861
    }
-
 
68862
 
-
 
68863
    public long getVoucherAmount() {
-
 
68864
      return this.voucherAmount;
-
 
68865
    }
-
 
68866
 
-
 
68867
    public void setVoucherAmount(long voucherAmount) {
-
 
68868
      this.voucherAmount = voucherAmount;
-
 
68869
      setVoucherAmountIsSet(true);
-
 
68870
    }
-
 
68871
 
-
 
68872
    public void unsetVoucherAmount() {
-
 
68873
      __isset_bit_vector.clear(__VOUCHERAMOUNT_ISSET_ID);
-
 
68874
    }
-
 
68875
 
-
 
68876
    /** Returns true if field voucherAmount is set (has been assigned a value) and false otherwise */
-
 
68877
    public boolean isSetVoucherAmount() {
-
 
68878
      return __isset_bit_vector.get(__VOUCHERAMOUNT_ISSET_ID);
-
 
68879
    }
-
 
68880
 
-
 
68881
    public void setVoucherAmountIsSet(boolean value) {
-
 
68882
      __isset_bit_vector.set(__VOUCHERAMOUNT_ISSET_ID, value);
-
 
68883
    }
-
 
68884
 
-
 
68885
    public void setFieldValue(_Fields field, Object value) {
-
 
68886
      switch (field) {
-
 
68887
      case CATALOG_ITEM_ID:
-
 
68888
        if (value == null) {
-
 
68889
          unsetCatalog_item_id();
-
 
68890
        } else {
-
 
68891
          setCatalog_item_id((Long)value);
-
 
68892
        }
-
 
68893
        break;
-
 
68894
 
-
 
68895
      case VOUCHER_TYPE:
-
 
68896
        if (value == null) {
-
 
68897
          unsetVoucherType();
-
 
68898
        } else {
-
 
68899
          setVoucherType((String)value);
-
 
68900
        }
-
 
68901
        break;
-
 
68902
 
-
 
68903
      case VOUCHER_AMOUNT:
-
 
68904
        if (value == null) {
-
 
68905
          unsetVoucherAmount();
-
 
68906
        } else {
-
 
68907
          setVoucherAmount((Long)value);
-
 
68908
        }
-
 
68909
        break;
-
 
68910
 
-
 
68911
      }
-
 
68912
    }
-
 
68913
 
-
 
68914
    public Object getFieldValue(_Fields field) {
-
 
68915
      switch (field) {
-
 
68916
      case CATALOG_ITEM_ID:
-
 
68917
        return Long.valueOf(getCatalog_item_id());
-
 
68918
 
-
 
68919
      case VOUCHER_TYPE:
-
 
68920
        return getVoucherType();
-
 
68921
 
-
 
68922
      case VOUCHER_AMOUNT:
-
 
68923
        return Long.valueOf(getVoucherAmount());
-
 
68924
 
-
 
68925
      }
-
 
68926
      throw new IllegalStateException();
-
 
68927
    }
-
 
68928
 
-
 
68929
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
68930
    public boolean isSet(_Fields field) {
-
 
68931
      if (field == null) {
-
 
68932
        throw new IllegalArgumentException();
-
 
68933
      }
-
 
68934
 
-
 
68935
      switch (field) {
-
 
68936
      case CATALOG_ITEM_ID:
-
 
68937
        return isSetCatalog_item_id();
-
 
68938
      case VOUCHER_TYPE:
-
 
68939
        return isSetVoucherType();
-
 
68940
      case VOUCHER_AMOUNT:
-
 
68941
        return isSetVoucherAmount();
-
 
68942
      }
-
 
68943
      throw new IllegalStateException();
-
 
68944
    }
-
 
68945
 
-
 
68946
    @Override
-
 
68947
    public boolean equals(Object that) {
-
 
68948
      if (that == null)
-
 
68949
        return false;
-
 
68950
      if (that instanceof addupdateVoucherForItem_args)
-
 
68951
        return this.equals((addupdateVoucherForItem_args)that);
-
 
68952
      return false;
-
 
68953
    }
-
 
68954
 
-
 
68955
    public boolean equals(addupdateVoucherForItem_args that) {
-
 
68956
      if (that == null)
-
 
68957
        return false;
-
 
68958
 
-
 
68959
      boolean this_present_catalog_item_id = true;
-
 
68960
      boolean that_present_catalog_item_id = true;
-
 
68961
      if (this_present_catalog_item_id || that_present_catalog_item_id) {
-
 
68962
        if (!(this_present_catalog_item_id && that_present_catalog_item_id))
-
 
68963
          return false;
-
 
68964
        if (this.catalog_item_id != that.catalog_item_id)
-
 
68965
          return false;
-
 
68966
      }
-
 
68967
 
-
 
68968
      boolean this_present_voucherType = true && this.isSetVoucherType();
-
 
68969
      boolean that_present_voucherType = true && that.isSetVoucherType();
-
 
68970
      if (this_present_voucherType || that_present_voucherType) {
-
 
68971
        if (!(this_present_voucherType && that_present_voucherType))
-
 
68972
          return false;
-
 
68973
        if (!this.voucherType.equals(that.voucherType))
-
 
68974
          return false;
-
 
68975
      }
-
 
68976
 
-
 
68977
      boolean this_present_voucherAmount = true;
-
 
68978
      boolean that_present_voucherAmount = true;
-
 
68979
      if (this_present_voucherAmount || that_present_voucherAmount) {
-
 
68980
        if (!(this_present_voucherAmount && that_present_voucherAmount))
-
 
68981
          return false;
-
 
68982
        if (this.voucherAmount != that.voucherAmount)
-
 
68983
          return false;
-
 
68984
      }
-
 
68985
 
-
 
68986
      return true;
-
 
68987
    }
-
 
68988
 
-
 
68989
    @Override
-
 
68990
    public int hashCode() {
-
 
68991
      return 0;
-
 
68992
    }
-
 
68993
 
-
 
68994
    public int compareTo(addupdateVoucherForItem_args other) {
-
 
68995
      if (!getClass().equals(other.getClass())) {
-
 
68996
        return getClass().getName().compareTo(other.getClass().getName());
-
 
68997
      }
-
 
68998
 
-
 
68999
      int lastComparison = 0;
-
 
69000
      addupdateVoucherForItem_args typedOther = (addupdateVoucherForItem_args)other;
-
 
69001
 
-
 
69002
      lastComparison = Boolean.valueOf(isSetCatalog_item_id()).compareTo(typedOther.isSetCatalog_item_id());
-
 
69003
      if (lastComparison != 0) {
-
 
69004
        return lastComparison;
-
 
69005
      }
-
 
69006
      if (isSetCatalog_item_id()) {
-
 
69007
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalog_item_id, typedOther.catalog_item_id);
-
 
69008
        if (lastComparison != 0) {
-
 
69009
          return lastComparison;
-
 
69010
        }
-
 
69011
      }
-
 
69012
      lastComparison = Boolean.valueOf(isSetVoucherType()).compareTo(typedOther.isSetVoucherType());
-
 
69013
      if (lastComparison != 0) {
-
 
69014
        return lastComparison;
-
 
69015
      }
-
 
69016
      if (isSetVoucherType()) {
-
 
69017
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.voucherType, typedOther.voucherType);
-
 
69018
        if (lastComparison != 0) {
-
 
69019
          return lastComparison;
-
 
69020
        }
-
 
69021
      }
-
 
69022
      lastComparison = Boolean.valueOf(isSetVoucherAmount()).compareTo(typedOther.isSetVoucherAmount());
-
 
69023
      if (lastComparison != 0) {
-
 
69024
        return lastComparison;
-
 
69025
      }
-
 
69026
      if (isSetVoucherAmount()) {
-
 
69027
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.voucherAmount, typedOther.voucherAmount);
-
 
69028
        if (lastComparison != 0) {
-
 
69029
          return lastComparison;
-
 
69030
        }
-
 
69031
      }
-
 
69032
      return 0;
-
 
69033
    }
-
 
69034
 
-
 
69035
    public _Fields fieldForId(int fieldId) {
-
 
69036
      return _Fields.findByThriftId(fieldId);
-
 
69037
    }
-
 
69038
 
-
 
69039
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
69040
      org.apache.thrift.protocol.TField field;
-
 
69041
      iprot.readStructBegin();
-
 
69042
      while (true)
-
 
69043
      {
-
 
69044
        field = iprot.readFieldBegin();
-
 
69045
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
69046
          break;
-
 
69047
        }
-
 
69048
        switch (field.id) {
-
 
69049
          case 1: // CATALOG_ITEM_ID
-
 
69050
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
69051
              this.catalog_item_id = iprot.readI64();
-
 
69052
              setCatalog_item_idIsSet(true);
-
 
69053
            } else { 
-
 
69054
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
69055
            }
-
 
69056
            break;
-
 
69057
          case 2: // VOUCHER_TYPE
-
 
69058
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
69059
              this.voucherType = iprot.readString();
-
 
69060
            } else { 
-
 
69061
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
69062
            }
-
 
69063
            break;
-
 
69064
          case 3: // VOUCHER_AMOUNT
-
 
69065
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
69066
              this.voucherAmount = iprot.readI64();
-
 
69067
              setVoucherAmountIsSet(true);
-
 
69068
            } else { 
-
 
69069
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
69070
            }
-
 
69071
            break;
-
 
69072
          default:
-
 
69073
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
69074
        }
-
 
69075
        iprot.readFieldEnd();
-
 
69076
      }
-
 
69077
      iprot.readStructEnd();
-
 
69078
      validate();
-
 
69079
    }
-
 
69080
 
-
 
69081
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
69082
      validate();
-
 
69083
 
-
 
69084
      oprot.writeStructBegin(STRUCT_DESC);
-
 
69085
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
-
 
69086
      oprot.writeI64(this.catalog_item_id);
-
 
69087
      oprot.writeFieldEnd();
-
 
69088
      if (this.voucherType != null) {
-
 
69089
        oprot.writeFieldBegin(VOUCHER_TYPE_FIELD_DESC);
-
 
69090
        oprot.writeString(this.voucherType);
-
 
69091
        oprot.writeFieldEnd();
-
 
69092
      }
-
 
69093
      oprot.writeFieldBegin(VOUCHER_AMOUNT_FIELD_DESC);
-
 
69094
      oprot.writeI64(this.voucherAmount);
-
 
69095
      oprot.writeFieldEnd();
-
 
69096
      oprot.writeFieldStop();
-
 
69097
      oprot.writeStructEnd();
-
 
69098
    }
-
 
69099
 
-
 
69100
    @Override
-
 
69101
    public String toString() {
-
 
69102
      StringBuilder sb = new StringBuilder("addupdateVoucherForItem_args(");
-
 
69103
      boolean first = true;
-
 
69104
 
-
 
69105
      sb.append("catalog_item_id:");
-
 
69106
      sb.append(this.catalog_item_id);
-
 
69107
      first = false;
-
 
69108
      if (!first) sb.append(", ");
-
 
69109
      sb.append("voucherType:");
-
 
69110
      if (this.voucherType == null) {
-
 
69111
        sb.append("null");
-
 
69112
      } else {
-
 
69113
        sb.append(this.voucherType);
-
 
69114
      }
-
 
69115
      first = false;
-
 
69116
      if (!first) sb.append(", ");
-
 
69117
      sb.append("voucherAmount:");
-
 
69118
      sb.append(this.voucherAmount);
-
 
69119
      first = false;
-
 
69120
      sb.append(")");
-
 
69121
      return sb.toString();
-
 
69122
    }
-
 
69123
 
-
 
69124
    public void validate() throws org.apache.thrift.TException {
-
 
69125
      // check for required fields
-
 
69126
    }
-
 
69127
 
-
 
69128
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
69129
      try {
-
 
69130
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
69131
      } catch (org.apache.thrift.TException te) {
-
 
69132
        throw new java.io.IOException(te);
-
 
69133
      }
-
 
69134
    }
-
 
69135
 
-
 
69136
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
69137
      try {
-
 
69138
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
69139
        __isset_bit_vector = new BitSet(1);
-
 
69140
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
69141
      } catch (org.apache.thrift.TException te) {
-
 
69142
        throw new java.io.IOException(te);
-
 
69143
      }
-
 
69144
    }
-
 
69145
 
-
 
69146
  }
-
 
69147
 
-
 
69148
  public static class addupdateVoucherForItem_result implements org.apache.thrift.TBase<addupdateVoucherForItem_result, addupdateVoucherForItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
69149
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addupdateVoucherForItem_result");
-
 
69150
 
-
 
69151
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
69152
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
69153
 
-
 
69154
    private boolean success; // required
-
 
69155
    private InventoryServiceException cex; // required
-
 
69156
 
-
 
69157
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
69158
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
69159
      SUCCESS((short)0, "success"),
-
 
69160
      CEX((short)1, "cex");
-
 
69161
 
-
 
69162
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
69163
 
-
 
69164
      static {
-
 
69165
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
69166
          byName.put(field.getFieldName(), field);
-
 
69167
        }
-
 
69168
      }
-
 
69169
 
-
 
69170
      /**
-
 
69171
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
69172
       */
-
 
69173
      public static _Fields findByThriftId(int fieldId) {
-
 
69174
        switch(fieldId) {
-
 
69175
          case 0: // SUCCESS
-
 
69176
            return SUCCESS;
-
 
69177
          case 1: // CEX
-
 
69178
            return CEX;
-
 
69179
          default:
-
 
69180
            return null;
-
 
69181
        }
-
 
69182
      }
-
 
69183
 
-
 
69184
      /**
-
 
69185
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
69186
       * if it is not found.
-
 
69187
       */
-
 
69188
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
69189
        _Fields fields = findByThriftId(fieldId);
-
 
69190
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
69191
        return fields;
-
 
69192
      }
-
 
69193
 
-
 
69194
      /**
-
 
69195
       * Find the _Fields constant that matches name, or null if its not found.
-
 
69196
       */
-
 
69197
      public static _Fields findByName(String name) {
-
 
69198
        return byName.get(name);
-
 
69199
      }
-
 
69200
 
-
 
69201
      private final short _thriftId;
-
 
69202
      private final String _fieldName;
-
 
69203
 
-
 
69204
      _Fields(short thriftId, String fieldName) {
-
 
69205
        _thriftId = thriftId;
-
 
69206
        _fieldName = fieldName;
-
 
69207
      }
-
 
69208
 
-
 
69209
      public short getThriftFieldId() {
-
 
69210
        return _thriftId;
-
 
69211
      }
-
 
69212
 
-
 
69213
      public String getFieldName() {
-
 
69214
        return _fieldName;
-
 
69215
      }
-
 
69216
    }
-
 
69217
 
-
 
69218
    // isset id assignments
-
 
69219
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
69220
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
69221
 
-
 
69222
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
69223
    static {
-
 
69224
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
69225
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
69226
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
69227
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
69228
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
69229
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
69230
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addupdateVoucherForItem_result.class, metaDataMap);
-
 
69231
    }
-
 
69232
 
-
 
69233
    public addupdateVoucherForItem_result() {
-
 
69234
    }
-
 
69235
 
-
 
69236
    public addupdateVoucherForItem_result(
-
 
69237
      boolean success,
-
 
69238
      InventoryServiceException cex)
-
 
69239
    {
-
 
69240
      this();
-
 
69241
      this.success = success;
-
 
69242
      setSuccessIsSet(true);
-
 
69243
      this.cex = cex;
-
 
69244
    }
-
 
69245
 
-
 
69246
    /**
-
 
69247
     * Performs a deep copy on <i>other</i>.
-
 
69248
     */
-
 
69249
    public addupdateVoucherForItem_result(addupdateVoucherForItem_result other) {
-
 
69250
      __isset_bit_vector.clear();
-
 
69251
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
69252
      this.success = other.success;
-
 
69253
      if (other.isSetCex()) {
-
 
69254
        this.cex = new InventoryServiceException(other.cex);
-
 
69255
      }
-
 
69256
    }
-
 
69257
 
-
 
69258
    public addupdateVoucherForItem_result deepCopy() {
-
 
69259
      return new addupdateVoucherForItem_result(this);
-
 
69260
    }
-
 
69261
 
-
 
69262
    @Override
-
 
69263
    public void clear() {
-
 
69264
      setSuccessIsSet(false);
-
 
69265
      this.success = false;
-
 
69266
      this.cex = null;
-
 
69267
    }
-
 
69268
 
-
 
69269
    public boolean isSuccess() {
-
 
69270
      return this.success;
-
 
69271
    }
-
 
69272
 
-
 
69273
    public void setSuccess(boolean success) {
-
 
69274
      this.success = success;
-
 
69275
      setSuccessIsSet(true);
-
 
69276
    }
-
 
69277
 
-
 
69278
    public void unsetSuccess() {
-
 
69279
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
69280
    }
-
 
69281
 
-
 
69282
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
69283
    public boolean isSetSuccess() {
-
 
69284
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
69285
    }
-
 
69286
 
-
 
69287
    public void setSuccessIsSet(boolean value) {
-
 
69288
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
69289
    }
-
 
69290
 
-
 
69291
    public InventoryServiceException getCex() {
-
 
69292
      return this.cex;
-
 
69293
    }
-
 
69294
 
-
 
69295
    public void setCex(InventoryServiceException cex) {
-
 
69296
      this.cex = cex;
-
 
69297
    }
-
 
69298
 
-
 
69299
    public void unsetCex() {
-
 
69300
      this.cex = null;
-
 
69301
    }
-
 
69302
 
-
 
69303
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
-
 
69304
    public boolean isSetCex() {
-
 
69305
      return this.cex != null;
-
 
69306
    }
-
 
69307
 
-
 
69308
    public void setCexIsSet(boolean value) {
-
 
69309
      if (!value) {
-
 
69310
        this.cex = null;
-
 
69311
      }
-
 
69312
    }
-
 
69313
 
-
 
69314
    public void setFieldValue(_Fields field, Object value) {
-
 
69315
      switch (field) {
-
 
69316
      case SUCCESS:
-
 
69317
        if (value == null) {
-
 
69318
          unsetSuccess();
-
 
69319
        } else {
-
 
69320
          setSuccess((Boolean)value);
-
 
69321
        }
-
 
69322
        break;
-
 
69323
 
-
 
69324
      case CEX:
-
 
69325
        if (value == null) {
-
 
69326
          unsetCex();
-
 
69327
        } else {
-
 
69328
          setCex((InventoryServiceException)value);
-
 
69329
        }
-
 
69330
        break;
-
 
69331
 
-
 
69332
      }
-
 
69333
    }
-
 
69334
 
-
 
69335
    public Object getFieldValue(_Fields field) {
-
 
69336
      switch (field) {
-
 
69337
      case SUCCESS:
-
 
69338
        return Boolean.valueOf(isSuccess());
-
 
69339
 
-
 
69340
      case CEX:
-
 
69341
        return getCex();
-
 
69342
 
-
 
69343
      }
-
 
69344
      throw new IllegalStateException();
-
 
69345
    }
-
 
69346
 
-
 
69347
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
69348
    public boolean isSet(_Fields field) {
-
 
69349
      if (field == null) {
-
 
69350
        throw new IllegalArgumentException();
-
 
69351
      }
-
 
69352
 
-
 
69353
      switch (field) {
-
 
69354
      case SUCCESS:
-
 
69355
        return isSetSuccess();
-
 
69356
      case CEX:
-
 
69357
        return isSetCex();
-
 
69358
      }
-
 
69359
      throw new IllegalStateException();
-
 
69360
    }
-
 
69361
 
-
 
69362
    @Override
-
 
69363
    public boolean equals(Object that) {
-
 
69364
      if (that == null)
-
 
69365
        return false;
-
 
69366
      if (that instanceof addupdateVoucherForItem_result)
-
 
69367
        return this.equals((addupdateVoucherForItem_result)that);
-
 
69368
      return false;
-
 
69369
    }
-
 
69370
 
-
 
69371
    public boolean equals(addupdateVoucherForItem_result that) {
-
 
69372
      if (that == null)
-
 
69373
        return false;
-
 
69374
 
-
 
69375
      boolean this_present_success = true;
-
 
69376
      boolean that_present_success = true;
-
 
69377
      if (this_present_success || that_present_success) {
-
 
69378
        if (!(this_present_success && that_present_success))
-
 
69379
          return false;
-
 
69380
        if (this.success != that.success)
-
 
69381
          return false;
-
 
69382
      }
-
 
69383
 
-
 
69384
      boolean this_present_cex = true && this.isSetCex();
-
 
69385
      boolean that_present_cex = true && that.isSetCex();
-
 
69386
      if (this_present_cex || that_present_cex) {
-
 
69387
        if (!(this_present_cex && that_present_cex))
-
 
69388
          return false;
-
 
69389
        if (!this.cex.equals(that.cex))
-
 
69390
          return false;
-
 
69391
      }
-
 
69392
 
-
 
69393
      return true;
-
 
69394
    }
-
 
69395
 
-
 
69396
    @Override
-
 
69397
    public int hashCode() {
-
 
69398
      return 0;
-
 
69399
    }
-
 
69400
 
-
 
69401
    public int compareTo(addupdateVoucherForItem_result other) {
-
 
69402
      if (!getClass().equals(other.getClass())) {
-
 
69403
        return getClass().getName().compareTo(other.getClass().getName());
-
 
69404
      }
-
 
69405
 
-
 
69406
      int lastComparison = 0;
-
 
69407
      addupdateVoucherForItem_result typedOther = (addupdateVoucherForItem_result)other;
-
 
69408
 
-
 
69409
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
69410
      if (lastComparison != 0) {
-
 
69411
        return lastComparison;
-
 
69412
      }
-
 
69413
      if (isSetSuccess()) {
-
 
69414
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
69415
        if (lastComparison != 0) {
-
 
69416
          return lastComparison;
-
 
69417
        }
-
 
69418
      }
-
 
69419
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
-
 
69420
      if (lastComparison != 0) {
-
 
69421
        return lastComparison;
-
 
69422
      }
-
 
69423
      if (isSetCex()) {
-
 
69424
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
-
 
69425
        if (lastComparison != 0) {
-
 
69426
          return lastComparison;
-
 
69427
        }
-
 
69428
      }
-
 
69429
      return 0;
-
 
69430
    }
-
 
69431
 
-
 
69432
    public _Fields fieldForId(int fieldId) {
-
 
69433
      return _Fields.findByThriftId(fieldId);
-
 
69434
    }
-
 
69435
 
-
 
69436
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
69437
      org.apache.thrift.protocol.TField field;
-
 
69438
      iprot.readStructBegin();
-
 
69439
      while (true)
-
 
69440
      {
-
 
69441
        field = iprot.readFieldBegin();
-
 
69442
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
69443
          break;
-
 
69444
        }
-
 
69445
        switch (field.id) {
-
 
69446
          case 0: // SUCCESS
-
 
69447
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
69448
              this.success = iprot.readBool();
-
 
69449
              setSuccessIsSet(true);
-
 
69450
            } else { 
-
 
69451
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
69452
            }
-
 
69453
            break;
-
 
69454
          case 1: // CEX
-
 
69455
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
69456
              this.cex = new InventoryServiceException();
-
 
69457
              this.cex.read(iprot);
-
 
69458
            } else { 
-
 
69459
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
69460
            }
-
 
69461
            break;
-
 
69462
          default:
-
 
69463
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
69464
        }
-
 
69465
        iprot.readFieldEnd();
-
 
69466
      }
-
 
69467
      iprot.readStructEnd();
-
 
69468
      validate();
-
 
69469
    }
-
 
69470
 
-
 
69471
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
69472
      oprot.writeStructBegin(STRUCT_DESC);
-
 
69473
 
-
 
69474
      if (this.isSetSuccess()) {
-
 
69475
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
69476
        oprot.writeBool(this.success);
-
 
69477
        oprot.writeFieldEnd();
-
 
69478
      } else if (this.isSetCex()) {
-
 
69479
        oprot.writeFieldBegin(CEX_FIELD_DESC);
-
 
69480
        this.cex.write(oprot);
-
 
69481
        oprot.writeFieldEnd();
-
 
69482
      }
-
 
69483
      oprot.writeFieldStop();
-
 
69484
      oprot.writeStructEnd();
-
 
69485
    }
-
 
69486
 
-
 
69487
    @Override
-
 
69488
    public String toString() {
-
 
69489
      StringBuilder sb = new StringBuilder("addupdateVoucherForItem_result(");
-
 
69490
      boolean first = true;
-
 
69491
 
-
 
69492
      sb.append("success:");
-
 
69493
      sb.append(this.success);
-
 
69494
      first = false;
-
 
69495
      if (!first) sb.append(", ");
-
 
69496
      sb.append("cex:");
-
 
69497
      if (this.cex == null) {
-
 
69498
        sb.append("null");
-
 
69499
      } else {
-
 
69500
        sb.append(this.cex);
-
 
69501
      }
-
 
69502
      first = false;
-
 
69503
      sb.append(")");
-
 
69504
      return sb.toString();
-
 
69505
    }
-
 
69506
 
-
 
69507
    public void validate() throws org.apache.thrift.TException {
-
 
69508
      // check for required fields
-
 
69509
    }
-
 
69510
 
-
 
69511
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
69512
      try {
-
 
69513
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
69514
      } catch (org.apache.thrift.TException te) {
-
 
69515
        throw new java.io.IOException(te);
-
 
69516
      }
-
 
69517
    }
-
 
69518
 
-
 
69519
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
69520
      try {
-
 
69521
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
69522
      } catch (org.apache.thrift.TException te) {
-
 
69523
        throw new java.io.IOException(te);
-
 
69524
      }
-
 
69525
    }
-
 
69526
 
-
 
69527
  }
-
 
69528
 
-
 
69529
  public static class deleteVoucherForItem_args implements org.apache.thrift.TBase<deleteVoucherForItem_args, deleteVoucherForItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
69530
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteVoucherForItem_args");
-
 
69531
 
-
 
69532
    private static final org.apache.thrift.protocol.TField CATALOG_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("catalog_item_id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
69533
    private static final org.apache.thrift.protocol.TField VOUCHER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("voucherType", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
69534
 
-
 
69535
    private long catalog_item_id; // required
-
 
69536
    private String voucherType; // required
-
 
69537
 
-
 
69538
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
69539
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
69540
      CATALOG_ITEM_ID((short)1, "catalog_item_id"),
-
 
69541
      VOUCHER_TYPE((short)2, "voucherType");
-
 
69542
 
-
 
69543
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
69544
 
-
 
69545
      static {
-
 
69546
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
69547
          byName.put(field.getFieldName(), field);
-
 
69548
        }
-
 
69549
      }
-
 
69550
 
-
 
69551
      /**
-
 
69552
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
69553
       */
-
 
69554
      public static _Fields findByThriftId(int fieldId) {
-
 
69555
        switch(fieldId) {
-
 
69556
          case 1: // CATALOG_ITEM_ID
-
 
69557
            return CATALOG_ITEM_ID;
-
 
69558
          case 2: // VOUCHER_TYPE
-
 
69559
            return VOUCHER_TYPE;
-
 
69560
          default:
-
 
69561
            return null;
-
 
69562
        }
-
 
69563
      }
-
 
69564
 
-
 
69565
      /**
-
 
69566
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
69567
       * if it is not found.
-
 
69568
       */
-
 
69569
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
69570
        _Fields fields = findByThriftId(fieldId);
-
 
69571
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
69572
        return fields;
-
 
69573
      }
-
 
69574
 
-
 
69575
      /**
-
 
69576
       * Find the _Fields constant that matches name, or null if its not found.
-
 
69577
       */
-
 
69578
      public static _Fields findByName(String name) {
-
 
69579
        return byName.get(name);
-
 
69580
      }
-
 
69581
 
-
 
69582
      private final short _thriftId;
-
 
69583
      private final String _fieldName;
-
 
69584
 
-
 
69585
      _Fields(short thriftId, String fieldName) {
-
 
69586
        _thriftId = thriftId;
-
 
69587
        _fieldName = fieldName;
-
 
69588
      }
-
 
69589
 
-
 
69590
      public short getThriftFieldId() {
-
 
69591
        return _thriftId;
-
 
69592
      }
-
 
69593
 
-
 
69594
      public String getFieldName() {
-
 
69595
        return _fieldName;
-
 
69596
      }
-
 
69597
    }
-
 
69598
 
-
 
69599
    // isset id assignments
-
 
69600
    private static final int __CATALOG_ITEM_ID_ISSET_ID = 0;
-
 
69601
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
69602
 
-
 
69603
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
69604
    static {
-
 
69605
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
69606
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalog_item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
69607
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
69608
      tmpMap.put(_Fields.VOUCHER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("voucherType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
69609
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
69610
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
69611
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteVoucherForItem_args.class, metaDataMap);
-
 
69612
    }
-
 
69613
 
-
 
69614
    public deleteVoucherForItem_args() {
-
 
69615
    }
-
 
69616
 
-
 
69617
    public deleteVoucherForItem_args(
-
 
69618
      long catalog_item_id,
-
 
69619
      String voucherType)
-
 
69620
    {
-
 
69621
      this();
-
 
69622
      this.catalog_item_id = catalog_item_id;
-
 
69623
      setCatalog_item_idIsSet(true);
-
 
69624
      this.voucherType = voucherType;
-
 
69625
    }
-
 
69626
 
-
 
69627
    /**
-
 
69628
     * Performs a deep copy on <i>other</i>.
-
 
69629
     */
-
 
69630
    public deleteVoucherForItem_args(deleteVoucherForItem_args other) {
-
 
69631
      __isset_bit_vector.clear();
-
 
69632
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
69633
      this.catalog_item_id = other.catalog_item_id;
-
 
69634
      if (other.isSetVoucherType()) {
-
 
69635
        this.voucherType = other.voucherType;
-
 
69636
      }
-
 
69637
    }
-
 
69638
 
-
 
69639
    public deleteVoucherForItem_args deepCopy() {
-
 
69640
      return new deleteVoucherForItem_args(this);
-
 
69641
    }
-
 
69642
 
-
 
69643
    @Override
-
 
69644
    public void clear() {
-
 
69645
      setCatalog_item_idIsSet(false);
-
 
69646
      this.catalog_item_id = 0;
-
 
69647
      this.voucherType = null;
-
 
69648
    }
-
 
69649
 
-
 
69650
    public long getCatalog_item_id() {
-
 
69651
      return this.catalog_item_id;
-
 
69652
    }
-
 
69653
 
-
 
69654
    public void setCatalog_item_id(long catalog_item_id) {
-
 
69655
      this.catalog_item_id = catalog_item_id;
-
 
69656
      setCatalog_item_idIsSet(true);
-
 
69657
    }
-
 
69658
 
-
 
69659
    public void unsetCatalog_item_id() {
-
 
69660
      __isset_bit_vector.clear(__CATALOG_ITEM_ID_ISSET_ID);
-
 
69661
    }
-
 
69662
 
-
 
69663
    /** Returns true if field catalog_item_id is set (has been assigned a value) and false otherwise */
-
 
69664
    public boolean isSetCatalog_item_id() {
-
 
69665
      return __isset_bit_vector.get(__CATALOG_ITEM_ID_ISSET_ID);
-
 
69666
    }
-
 
69667
 
-
 
69668
    public void setCatalog_item_idIsSet(boolean value) {
-
 
69669
      __isset_bit_vector.set(__CATALOG_ITEM_ID_ISSET_ID, value);
-
 
69670
    }
-
 
69671
 
-
 
69672
    public String getVoucherType() {
-
 
69673
      return this.voucherType;
-
 
69674
    }
-
 
69675
 
-
 
69676
    public void setVoucherType(String voucherType) {
-
 
69677
      this.voucherType = voucherType;
-
 
69678
    }
-
 
69679
 
-
 
69680
    public void unsetVoucherType() {
-
 
69681
      this.voucherType = null;
-
 
69682
    }
-
 
69683
 
-
 
69684
    /** Returns true if field voucherType is set (has been assigned a value) and false otherwise */
-
 
69685
    public boolean isSetVoucherType() {
-
 
69686
      return this.voucherType != null;
-
 
69687
    }
-
 
69688
 
-
 
69689
    public void setVoucherTypeIsSet(boolean value) {
-
 
69690
      if (!value) {
-
 
69691
        this.voucherType = null;
-
 
69692
      }
-
 
69693
    }
-
 
69694
 
-
 
69695
    public void setFieldValue(_Fields field, Object value) {
-
 
69696
      switch (field) {
-
 
69697
      case CATALOG_ITEM_ID:
-
 
69698
        if (value == null) {
-
 
69699
          unsetCatalog_item_id();
-
 
69700
        } else {
-
 
69701
          setCatalog_item_id((Long)value);
-
 
69702
        }
-
 
69703
        break;
-
 
69704
 
-
 
69705
      case VOUCHER_TYPE:
-
 
69706
        if (value == null) {
-
 
69707
          unsetVoucherType();
-
 
69708
        } else {
-
 
69709
          setVoucherType((String)value);
-
 
69710
        }
-
 
69711
        break;
-
 
69712
 
-
 
69713
      }
-
 
69714
    }
-
 
69715
 
-
 
69716
    public Object getFieldValue(_Fields field) {
-
 
69717
      switch (field) {
-
 
69718
      case CATALOG_ITEM_ID:
-
 
69719
        return Long.valueOf(getCatalog_item_id());
-
 
69720
 
-
 
69721
      case VOUCHER_TYPE:
-
 
69722
        return getVoucherType();
-
 
69723
 
-
 
69724
      }
-
 
69725
      throw new IllegalStateException();
-
 
69726
    }
-
 
69727
 
-
 
69728
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
69729
    public boolean isSet(_Fields field) {
-
 
69730
      if (field == null) {
-
 
69731
        throw new IllegalArgumentException();
-
 
69732
      }
-
 
69733
 
-
 
69734
      switch (field) {
-
 
69735
      case CATALOG_ITEM_ID:
-
 
69736
        return isSetCatalog_item_id();
-
 
69737
      case VOUCHER_TYPE:
-
 
69738
        return isSetVoucherType();
-
 
69739
      }
-
 
69740
      throw new IllegalStateException();
-
 
69741
    }
-
 
69742
 
-
 
69743
    @Override
-
 
69744
    public boolean equals(Object that) {
-
 
69745
      if (that == null)
-
 
69746
        return false;
-
 
69747
      if (that instanceof deleteVoucherForItem_args)
-
 
69748
        return this.equals((deleteVoucherForItem_args)that);
-
 
69749
      return false;
-
 
69750
    }
-
 
69751
 
-
 
69752
    public boolean equals(deleteVoucherForItem_args that) {
-
 
69753
      if (that == null)
-
 
69754
        return false;
-
 
69755
 
-
 
69756
      boolean this_present_catalog_item_id = true;
-
 
69757
      boolean that_present_catalog_item_id = true;
-
 
69758
      if (this_present_catalog_item_id || that_present_catalog_item_id) {
-
 
69759
        if (!(this_present_catalog_item_id && that_present_catalog_item_id))
-
 
69760
          return false;
-
 
69761
        if (this.catalog_item_id != that.catalog_item_id)
-
 
69762
          return false;
-
 
69763
      }
-
 
69764
 
-
 
69765
      boolean this_present_voucherType = true && this.isSetVoucherType();
-
 
69766
      boolean that_present_voucherType = true && that.isSetVoucherType();
-
 
69767
      if (this_present_voucherType || that_present_voucherType) {
-
 
69768
        if (!(this_present_voucherType && that_present_voucherType))
-
 
69769
          return false;
-
 
69770
        if (!this.voucherType.equals(that.voucherType))
-
 
69771
          return false;
-
 
69772
      }
-
 
69773
 
-
 
69774
      return true;
-
 
69775
    }
-
 
69776
 
-
 
69777
    @Override
-
 
69778
    public int hashCode() {
-
 
69779
      return 0;
-
 
69780
    }
-
 
69781
 
-
 
69782
    public int compareTo(deleteVoucherForItem_args other) {
-
 
69783
      if (!getClass().equals(other.getClass())) {
-
 
69784
        return getClass().getName().compareTo(other.getClass().getName());
-
 
69785
      }
-
 
69786
 
-
 
69787
      int lastComparison = 0;
-
 
69788
      deleteVoucherForItem_args typedOther = (deleteVoucherForItem_args)other;
-
 
69789
 
-
 
69790
      lastComparison = Boolean.valueOf(isSetCatalog_item_id()).compareTo(typedOther.isSetCatalog_item_id());
-
 
69791
      if (lastComparison != 0) {
-
 
69792
        return lastComparison;
-
 
69793
      }
-
 
69794
      if (isSetCatalog_item_id()) {
-
 
69795
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalog_item_id, typedOther.catalog_item_id);
-
 
69796
        if (lastComparison != 0) {
-
 
69797
          return lastComparison;
-
 
69798
        }
-
 
69799
      }
-
 
69800
      lastComparison = Boolean.valueOf(isSetVoucherType()).compareTo(typedOther.isSetVoucherType());
-
 
69801
      if (lastComparison != 0) {
-
 
69802
        return lastComparison;
-
 
69803
      }
-
 
69804
      if (isSetVoucherType()) {
-
 
69805
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.voucherType, typedOther.voucherType);
-
 
69806
        if (lastComparison != 0) {
-
 
69807
          return lastComparison;
-
 
69808
        }
-
 
69809
      }
-
 
69810
      return 0;
-
 
69811
    }
-
 
69812
 
-
 
69813
    public _Fields fieldForId(int fieldId) {
-
 
69814
      return _Fields.findByThriftId(fieldId);
-
 
69815
    }
-
 
69816
 
-
 
69817
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
69818
      org.apache.thrift.protocol.TField field;
-
 
69819
      iprot.readStructBegin();
-
 
69820
      while (true)
-
 
69821
      {
-
 
69822
        field = iprot.readFieldBegin();
-
 
69823
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
69824
          break;
-
 
69825
        }
-
 
69826
        switch (field.id) {
-
 
69827
          case 1: // CATALOG_ITEM_ID
-
 
69828
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
69829
              this.catalog_item_id = iprot.readI64();
-
 
69830
              setCatalog_item_idIsSet(true);
-
 
69831
            } else { 
-
 
69832
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
69833
            }
-
 
69834
            break;
-
 
69835
          case 2: // VOUCHER_TYPE
-
 
69836
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
69837
              this.voucherType = iprot.readString();
-
 
69838
            } else { 
-
 
69839
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
69840
            }
-
 
69841
            break;
-
 
69842
          default:
-
 
69843
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
69844
        }
-
 
69845
        iprot.readFieldEnd();
-
 
69846
      }
-
 
69847
      iprot.readStructEnd();
-
 
69848
      validate();
-
 
69849
    }
-
 
69850
 
-
 
69851
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
69852
      validate();
-
 
69853
 
-
 
69854
      oprot.writeStructBegin(STRUCT_DESC);
-
 
69855
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
-
 
69856
      oprot.writeI64(this.catalog_item_id);
-
 
69857
      oprot.writeFieldEnd();
-
 
69858
      if (this.voucherType != null) {
-
 
69859
        oprot.writeFieldBegin(VOUCHER_TYPE_FIELD_DESC);
-
 
69860
        oprot.writeString(this.voucherType);
-
 
69861
        oprot.writeFieldEnd();
-
 
69862
      }
-
 
69863
      oprot.writeFieldStop();
-
 
69864
      oprot.writeStructEnd();
-
 
69865
    }
-
 
69866
 
-
 
69867
    @Override
-
 
69868
    public String toString() {
-
 
69869
      StringBuilder sb = new StringBuilder("deleteVoucherForItem_args(");
-
 
69870
      boolean first = true;
-
 
69871
 
-
 
69872
      sb.append("catalog_item_id:");
-
 
69873
      sb.append(this.catalog_item_id);
-
 
69874
      first = false;
-
 
69875
      if (!first) sb.append(", ");
-
 
69876
      sb.append("voucherType:");
-
 
69877
      if (this.voucherType == null) {
-
 
69878
        sb.append("null");
-
 
69879
      } else {
-
 
69880
        sb.append(this.voucherType);
-
 
69881
      }
-
 
69882
      first = false;
-
 
69883
      sb.append(")");
-
 
69884
      return sb.toString();
-
 
69885
    }
-
 
69886
 
-
 
69887
    public void validate() throws org.apache.thrift.TException {
-
 
69888
      // check for required fields
-
 
69889
    }
-
 
69890
 
-
 
69891
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
69892
      try {
-
 
69893
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
69894
      } catch (org.apache.thrift.TException te) {
-
 
69895
        throw new java.io.IOException(te);
-
 
69896
      }
-
 
69897
    }
-
 
69898
 
-
 
69899
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
69900
      try {
-
 
69901
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
69902
        __isset_bit_vector = new BitSet(1);
-
 
69903
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
69904
      } catch (org.apache.thrift.TException te) {
-
 
69905
        throw new java.io.IOException(te);
-
 
69906
      }
-
 
69907
    }
-
 
69908
 
-
 
69909
  }
-
 
69910
 
-
 
69911
  public static class deleteVoucherForItem_result implements org.apache.thrift.TBase<deleteVoucherForItem_result, deleteVoucherForItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
69912
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteVoucherForItem_result");
-
 
69913
 
-
 
69914
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
69915
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
69916
 
-
 
69917
    private boolean success; // required
-
 
69918
    private InventoryServiceException cex; // required
-
 
69919
 
-
 
69920
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
69921
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
69922
      SUCCESS((short)0, "success"),
-
 
69923
      CEX((short)1, "cex");
-
 
69924
 
-
 
69925
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
69926
 
-
 
69927
      static {
-
 
69928
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
69929
          byName.put(field.getFieldName(), field);
-
 
69930
        }
-
 
69931
      }
-
 
69932
 
-
 
69933
      /**
-
 
69934
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
69935
       */
-
 
69936
      public static _Fields findByThriftId(int fieldId) {
-
 
69937
        switch(fieldId) {
-
 
69938
          case 0: // SUCCESS
-
 
69939
            return SUCCESS;
-
 
69940
          case 1: // CEX
-
 
69941
            return CEX;
-
 
69942
          default:
-
 
69943
            return null;
-
 
69944
        }
-
 
69945
      }
-
 
69946
 
-
 
69947
      /**
-
 
69948
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
69949
       * if it is not found.
-
 
69950
       */
-
 
69951
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
69952
        _Fields fields = findByThriftId(fieldId);
-
 
69953
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
69954
        return fields;
-
 
69955
      }
-
 
69956
 
-
 
69957
      /**
-
 
69958
       * Find the _Fields constant that matches name, or null if its not found.
-
 
69959
       */
-
 
69960
      public static _Fields findByName(String name) {
-
 
69961
        return byName.get(name);
-
 
69962
      }
-
 
69963
 
-
 
69964
      private final short _thriftId;
-
 
69965
      private final String _fieldName;
-
 
69966
 
-
 
69967
      _Fields(short thriftId, String fieldName) {
-
 
69968
        _thriftId = thriftId;
-
 
69969
        _fieldName = fieldName;
-
 
69970
      }
-
 
69971
 
-
 
69972
      public short getThriftFieldId() {
-
 
69973
        return _thriftId;
-
 
69974
      }
-
 
69975
 
-
 
69976
      public String getFieldName() {
-
 
69977
        return _fieldName;
-
 
69978
      }
-
 
69979
    }
-
 
69980
 
-
 
69981
    // isset id assignments
-
 
69982
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
69983
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
69984
 
-
 
69985
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
69986
    static {
-
 
69987
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
69988
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
69989
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
69990
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
69991
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
69992
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
69993
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteVoucherForItem_result.class, metaDataMap);
-
 
69994
    }
-
 
69995
 
-
 
69996
    public deleteVoucherForItem_result() {
-
 
69997
    }
-
 
69998
 
-
 
69999
    public deleteVoucherForItem_result(
-
 
70000
      boolean success,
-
 
70001
      InventoryServiceException cex)
-
 
70002
    {
-
 
70003
      this();
-
 
70004
      this.success = success;
-
 
70005
      setSuccessIsSet(true);
-
 
70006
      this.cex = cex;
-
 
70007
    }
-
 
70008
 
-
 
70009
    /**
-
 
70010
     * Performs a deep copy on <i>other</i>.
-
 
70011
     */
-
 
70012
    public deleteVoucherForItem_result(deleteVoucherForItem_result other) {
-
 
70013
      __isset_bit_vector.clear();
-
 
70014
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
70015
      this.success = other.success;
-
 
70016
      if (other.isSetCex()) {
-
 
70017
        this.cex = new InventoryServiceException(other.cex);
-
 
70018
      }
-
 
70019
    }
-
 
70020
 
-
 
70021
    public deleteVoucherForItem_result deepCopy() {
-
 
70022
      return new deleteVoucherForItem_result(this);
-
 
70023
    }
-
 
70024
 
-
 
70025
    @Override
-
 
70026
    public void clear() {
-
 
70027
      setSuccessIsSet(false);
-
 
70028
      this.success = false;
-
 
70029
      this.cex = null;
-
 
70030
    }
-
 
70031
 
-
 
70032
    public boolean isSuccess() {
-
 
70033
      return this.success;
-
 
70034
    }
-
 
70035
 
-
 
70036
    public void setSuccess(boolean success) {
-
 
70037
      this.success = success;
-
 
70038
      setSuccessIsSet(true);
-
 
70039
    }
-
 
70040
 
-
 
70041
    public void unsetSuccess() {
-
 
70042
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
70043
    }
-
 
70044
 
-
 
70045
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
70046
    public boolean isSetSuccess() {
-
 
70047
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
70048
    }
-
 
70049
 
-
 
70050
    public void setSuccessIsSet(boolean value) {
-
 
70051
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
70052
    }
-
 
70053
 
-
 
70054
    public InventoryServiceException getCex() {
-
 
70055
      return this.cex;
-
 
70056
    }
-
 
70057
 
-
 
70058
    public void setCex(InventoryServiceException cex) {
-
 
70059
      this.cex = cex;
-
 
70060
    }
-
 
70061
 
-
 
70062
    public void unsetCex() {
-
 
70063
      this.cex = null;
-
 
70064
    }
-
 
70065
 
-
 
70066
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
-
 
70067
    public boolean isSetCex() {
-
 
70068
      return this.cex != null;
-
 
70069
    }
-
 
70070
 
-
 
70071
    public void setCexIsSet(boolean value) {
-
 
70072
      if (!value) {
-
 
70073
        this.cex = null;
-
 
70074
      }
-
 
70075
    }
-
 
70076
 
-
 
70077
    public void setFieldValue(_Fields field, Object value) {
-
 
70078
      switch (field) {
-
 
70079
      case SUCCESS:
-
 
70080
        if (value == null) {
-
 
70081
          unsetSuccess();
-
 
70082
        } else {
-
 
70083
          setSuccess((Boolean)value);
-
 
70084
        }
-
 
70085
        break;
-
 
70086
 
-
 
70087
      case CEX:
-
 
70088
        if (value == null) {
-
 
70089
          unsetCex();
-
 
70090
        } else {
-
 
70091
          setCex((InventoryServiceException)value);
-
 
70092
        }
-
 
70093
        break;
-
 
70094
 
-
 
70095
      }
-
 
70096
    }
-
 
70097
 
-
 
70098
    public Object getFieldValue(_Fields field) {
-
 
70099
      switch (field) {
-
 
70100
      case SUCCESS:
-
 
70101
        return Boolean.valueOf(isSuccess());
-
 
70102
 
-
 
70103
      case CEX:
-
 
70104
        return getCex();
-
 
70105
 
-
 
70106
      }
-
 
70107
      throw new IllegalStateException();
-
 
70108
    }
-
 
70109
 
-
 
70110
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
70111
    public boolean isSet(_Fields field) {
-
 
70112
      if (field == null) {
-
 
70113
        throw new IllegalArgumentException();
-
 
70114
      }
-
 
70115
 
-
 
70116
      switch (field) {
-
 
70117
      case SUCCESS:
-
 
70118
        return isSetSuccess();
-
 
70119
      case CEX:
-
 
70120
        return isSetCex();
-
 
70121
      }
-
 
70122
      throw new IllegalStateException();
-
 
70123
    }
-
 
70124
 
-
 
70125
    @Override
-
 
70126
    public boolean equals(Object that) {
-
 
70127
      if (that == null)
-
 
70128
        return false;
-
 
70129
      if (that instanceof deleteVoucherForItem_result)
-
 
70130
        return this.equals((deleteVoucherForItem_result)that);
-
 
70131
      return false;
-
 
70132
    }
-
 
70133
 
-
 
70134
    public boolean equals(deleteVoucherForItem_result that) {
-
 
70135
      if (that == null)
-
 
70136
        return false;
-
 
70137
 
-
 
70138
      boolean this_present_success = true;
-
 
70139
      boolean that_present_success = true;
-
 
70140
      if (this_present_success || that_present_success) {
-
 
70141
        if (!(this_present_success && that_present_success))
-
 
70142
          return false;
-
 
70143
        if (this.success != that.success)
-
 
70144
          return false;
-
 
70145
      }
-
 
70146
 
-
 
70147
      boolean this_present_cex = true && this.isSetCex();
-
 
70148
      boolean that_present_cex = true && that.isSetCex();
-
 
70149
      if (this_present_cex || that_present_cex) {
-
 
70150
        if (!(this_present_cex && that_present_cex))
-
 
70151
          return false;
-
 
70152
        if (!this.cex.equals(that.cex))
-
 
70153
          return false;
-
 
70154
      }
-
 
70155
 
-
 
70156
      return true;
-
 
70157
    }
-
 
70158
 
-
 
70159
    @Override
-
 
70160
    public int hashCode() {
-
 
70161
      return 0;
-
 
70162
    }
-
 
70163
 
-
 
70164
    public int compareTo(deleteVoucherForItem_result other) {
-
 
70165
      if (!getClass().equals(other.getClass())) {
-
 
70166
        return getClass().getName().compareTo(other.getClass().getName());
-
 
70167
      }
-
 
70168
 
-
 
70169
      int lastComparison = 0;
-
 
70170
      deleteVoucherForItem_result typedOther = (deleteVoucherForItem_result)other;
-
 
70171
 
-
 
70172
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
70173
      if (lastComparison != 0) {
-
 
70174
        return lastComparison;
-
 
70175
      }
-
 
70176
      if (isSetSuccess()) {
-
 
70177
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
70178
        if (lastComparison != 0) {
-
 
70179
          return lastComparison;
-
 
70180
        }
-
 
70181
      }
-
 
70182
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
-
 
70183
      if (lastComparison != 0) {
-
 
70184
        return lastComparison;
-
 
70185
      }
-
 
70186
      if (isSetCex()) {
-
 
70187
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
-
 
70188
        if (lastComparison != 0) {
-
 
70189
          return lastComparison;
-
 
70190
        }
-
 
70191
      }
-
 
70192
      return 0;
-
 
70193
    }
-
 
70194
 
-
 
70195
    public _Fields fieldForId(int fieldId) {
-
 
70196
      return _Fields.findByThriftId(fieldId);
-
 
70197
    }
-
 
70198
 
-
 
70199
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
70200
      org.apache.thrift.protocol.TField field;
-
 
70201
      iprot.readStructBegin();
-
 
70202
      while (true)
-
 
70203
      {
-
 
70204
        field = iprot.readFieldBegin();
-
 
70205
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
70206
          break;
-
 
70207
        }
-
 
70208
        switch (field.id) {
-
 
70209
          case 0: // SUCCESS
-
 
70210
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
70211
              this.success = iprot.readBool();
-
 
70212
              setSuccessIsSet(true);
-
 
70213
            } else { 
-
 
70214
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
70215
            }
-
 
70216
            break;
-
 
70217
          case 1: // CEX
-
 
70218
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
70219
              this.cex = new InventoryServiceException();
-
 
70220
              this.cex.read(iprot);
-
 
70221
            } else { 
-
 
70222
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
70223
            }
-
 
70224
            break;
-
 
70225
          default:
-
 
70226
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
70227
        }
-
 
70228
        iprot.readFieldEnd();
-
 
70229
      }
-
 
70230
      iprot.readStructEnd();
-
 
70231
      validate();
-
 
70232
    }
-
 
70233
 
-
 
70234
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
70235
      oprot.writeStructBegin(STRUCT_DESC);
-
 
70236
 
-
 
70237
      if (this.isSetSuccess()) {
-
 
70238
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
70239
        oprot.writeBool(this.success);
-
 
70240
        oprot.writeFieldEnd();
-
 
70241
      } else if (this.isSetCex()) {
-
 
70242
        oprot.writeFieldBegin(CEX_FIELD_DESC);
-
 
70243
        this.cex.write(oprot);
-
 
70244
        oprot.writeFieldEnd();
-
 
70245
      }
-
 
70246
      oprot.writeFieldStop();
-
 
70247
      oprot.writeStructEnd();
-
 
70248
    }
-
 
70249
 
-
 
70250
    @Override
-
 
70251
    public String toString() {
-
 
70252
      StringBuilder sb = new StringBuilder("deleteVoucherForItem_result(");
-
 
70253
      boolean first = true;
-
 
70254
 
-
 
70255
      sb.append("success:");
-
 
70256
      sb.append(this.success);
-
 
70257
      first = false;
-
 
70258
      if (!first) sb.append(", ");
-
 
70259
      sb.append("cex:");
-
 
70260
      if (this.cex == null) {
-
 
70261
        sb.append("null");
-
 
70262
      } else {
-
 
70263
        sb.append(this.cex);
-
 
70264
      }
-
 
70265
      first = false;
-
 
70266
      sb.append(")");
-
 
70267
      return sb.toString();
-
 
70268
    }
-
 
70269
 
-
 
70270
    public void validate() throws org.apache.thrift.TException {
-
 
70271
      // check for required fields
-
 
70272
    }
-
 
70273
 
-
 
70274
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
70275
      try {
-
 
70276
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
70277
      } catch (org.apache.thrift.TException te) {
-
 
70278
        throw new java.io.IOException(te);
-
 
70279
      }
-
 
70280
    }
-
 
70281
 
-
 
70282
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
70283
      try {
-
 
70284
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
70285
      } catch (org.apache.thrift.TException te) {
-
 
70286
        throw new java.io.IOException(te);
-
 
70287
      }
-
 
70288
    }
-
 
70289
 
-
 
70290
  }
-
 
70291
 
-
 
70292
  public static class getVoucherAmount_args implements org.apache.thrift.TBase<getVoucherAmount_args, getVoucherAmount_args._Fields>, java.io.Serializable, Cloneable   {
-
 
70293
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVoucherAmount_args");
-
 
70294
 
-
 
70295
    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);
-
 
70296
    private static final org.apache.thrift.protocol.TField VOUCHER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("voucherType", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
70297
 
-
 
70298
    private long itemId; // required
-
 
70299
    private String voucherType; // required
-
 
70300
 
-
 
70301
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
70302
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
70303
      ITEM_ID((short)1, "itemId"),
-
 
70304
      VOUCHER_TYPE((short)2, "voucherType");
-
 
70305
 
-
 
70306
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
70307
 
-
 
70308
      static {
-
 
70309
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
70310
          byName.put(field.getFieldName(), field);
-
 
70311
        }
-
 
70312
      }
-
 
70313
 
-
 
70314
      /**
-
 
70315
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
70316
       */
-
 
70317
      public static _Fields findByThriftId(int fieldId) {
-
 
70318
        switch(fieldId) {
-
 
70319
          case 1: // ITEM_ID
-
 
70320
            return ITEM_ID;
-
 
70321
          case 2: // VOUCHER_TYPE
-
 
70322
            return VOUCHER_TYPE;
-
 
70323
          default:
-
 
70324
            return null;
-
 
70325
        }
-
 
70326
      }
-
 
70327
 
-
 
70328
      /**
-
 
70329
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
70330
       * if it is not found.
-
 
70331
       */
-
 
70332
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
70333
        _Fields fields = findByThriftId(fieldId);
-
 
70334
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
70335
        return fields;
-
 
70336
      }
-
 
70337
 
-
 
70338
      /**
-
 
70339
       * Find the _Fields constant that matches name, or null if its not found.
-
 
70340
       */
-
 
70341
      public static _Fields findByName(String name) {
-
 
70342
        return byName.get(name);
-
 
70343
      }
-
 
70344
 
-
 
70345
      private final short _thriftId;
-
 
70346
      private final String _fieldName;
-
 
70347
 
-
 
70348
      _Fields(short thriftId, String fieldName) {
-
 
70349
        _thriftId = thriftId;
-
 
70350
        _fieldName = fieldName;
-
 
70351
      }
-
 
70352
 
-
 
70353
      public short getThriftFieldId() {
-
 
70354
        return _thriftId;
-
 
70355
      }
-
 
70356
 
-
 
70357
      public String getFieldName() {
-
 
70358
        return _fieldName;
-
 
70359
      }
-
 
70360
    }
-
 
70361
 
-
 
70362
    // isset id assignments
-
 
70363
    private static final int __ITEMID_ISSET_ID = 0;
-
 
70364
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
70365
 
-
 
70366
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
70367
    static {
-
 
70368
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
70369
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
70370
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
70371
      tmpMap.put(_Fields.VOUCHER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("voucherType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
70372
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
70373
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
70374
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVoucherAmount_args.class, metaDataMap);
-
 
70375
    }
-
 
70376
 
-
 
70377
    public getVoucherAmount_args() {
-
 
70378
    }
-
 
70379
 
-
 
70380
    public getVoucherAmount_args(
-
 
70381
      long itemId,
-
 
70382
      String voucherType)
-
 
70383
    {
-
 
70384
      this();
-
 
70385
      this.itemId = itemId;
-
 
70386
      setItemIdIsSet(true);
-
 
70387
      this.voucherType = voucherType;
-
 
70388
    }
-
 
70389
 
-
 
70390
    /**
-
 
70391
     * Performs a deep copy on <i>other</i>.
-
 
70392
     */
-
 
70393
    public getVoucherAmount_args(getVoucherAmount_args other) {
-
 
70394
      __isset_bit_vector.clear();
-
 
70395
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
70396
      this.itemId = other.itemId;
-
 
70397
      if (other.isSetVoucherType()) {
-
 
70398
        this.voucherType = other.voucherType;
-
 
70399
      }
-
 
70400
    }
-
 
70401
 
-
 
70402
    public getVoucherAmount_args deepCopy() {
-
 
70403
      return new getVoucherAmount_args(this);
-
 
70404
    }
-
 
70405
 
-
 
70406
    @Override
-
 
70407
    public void clear() {
-
 
70408
      setItemIdIsSet(false);
-
 
70409
      this.itemId = 0;
-
 
70410
      this.voucherType = null;
-
 
70411
    }
-
 
70412
 
-
 
70413
    public long getItemId() {
-
 
70414
      return this.itemId;
-
 
70415
    }
-
 
70416
 
-
 
70417
    public void setItemId(long itemId) {
-
 
70418
      this.itemId = itemId;
-
 
70419
      setItemIdIsSet(true);
-
 
70420
    }
-
 
70421
 
-
 
70422
    public void unsetItemId() {
-
 
70423
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
70424
    }
-
 
70425
 
-
 
70426
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
70427
    public boolean isSetItemId() {
-
 
70428
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
70429
    }
-
 
70430
 
-
 
70431
    public void setItemIdIsSet(boolean value) {
-
 
70432
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
70433
    }
-
 
70434
 
-
 
70435
    public String getVoucherType() {
-
 
70436
      return this.voucherType;
-
 
70437
    }
-
 
70438
 
-
 
70439
    public void setVoucherType(String voucherType) {
-
 
70440
      this.voucherType = voucherType;
-
 
70441
    }
-
 
70442
 
-
 
70443
    public void unsetVoucherType() {
-
 
70444
      this.voucherType = null;
-
 
70445
    }
-
 
70446
 
-
 
70447
    /** Returns true if field voucherType is set (has been assigned a value) and false otherwise */
-
 
70448
    public boolean isSetVoucherType() {
-
 
70449
      return this.voucherType != null;
-
 
70450
    }
-
 
70451
 
-
 
70452
    public void setVoucherTypeIsSet(boolean value) {
-
 
70453
      if (!value) {
-
 
70454
        this.voucherType = null;
-
 
70455
      }
-
 
70456
    }
-
 
70457
 
-
 
70458
    public void setFieldValue(_Fields field, Object value) {
-
 
70459
      switch (field) {
-
 
70460
      case ITEM_ID:
-
 
70461
        if (value == null) {
-
 
70462
          unsetItemId();
-
 
70463
        } else {
-
 
70464
          setItemId((Long)value);
-
 
70465
        }
-
 
70466
        break;
-
 
70467
 
-
 
70468
      case VOUCHER_TYPE:
-
 
70469
        if (value == null) {
-
 
70470
          unsetVoucherType();
-
 
70471
        } else {
-
 
70472
          setVoucherType((String)value);
-
 
70473
        }
-
 
70474
        break;
-
 
70475
 
-
 
70476
      }
-
 
70477
    }
-
 
70478
 
-
 
70479
    public Object getFieldValue(_Fields field) {
-
 
70480
      switch (field) {
-
 
70481
      case ITEM_ID:
-
 
70482
        return Long.valueOf(getItemId());
-
 
70483
 
-
 
70484
      case VOUCHER_TYPE:
-
 
70485
        return getVoucherType();
-
 
70486
 
-
 
70487
      }
-
 
70488
      throw new IllegalStateException();
-
 
70489
    }
-
 
70490
 
-
 
70491
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
70492
    public boolean isSet(_Fields field) {
-
 
70493
      if (field == null) {
-
 
70494
        throw new IllegalArgumentException();
-
 
70495
      }
-
 
70496
 
-
 
70497
      switch (field) {
-
 
70498
      case ITEM_ID:
-
 
70499
        return isSetItemId();
-
 
70500
      case VOUCHER_TYPE:
-
 
70501
        return isSetVoucherType();
-
 
70502
      }
-
 
70503
      throw new IllegalStateException();
-
 
70504
    }
-
 
70505
 
-
 
70506
    @Override
-
 
70507
    public boolean equals(Object that) {
-
 
70508
      if (that == null)
-
 
70509
        return false;
-
 
70510
      if (that instanceof getVoucherAmount_args)
-
 
70511
        return this.equals((getVoucherAmount_args)that);
-
 
70512
      return false;
-
 
70513
    }
-
 
70514
 
-
 
70515
    public boolean equals(getVoucherAmount_args that) {
-
 
70516
      if (that == null)
-
 
70517
        return false;
-
 
70518
 
-
 
70519
      boolean this_present_itemId = true;
-
 
70520
      boolean that_present_itemId = true;
-
 
70521
      if (this_present_itemId || that_present_itemId) {
-
 
70522
        if (!(this_present_itemId && that_present_itemId))
-
 
70523
          return false;
-
 
70524
        if (this.itemId != that.itemId)
-
 
70525
          return false;
-
 
70526
      }
-
 
70527
 
-
 
70528
      boolean this_present_voucherType = true && this.isSetVoucherType();
-
 
70529
      boolean that_present_voucherType = true && that.isSetVoucherType();
-
 
70530
      if (this_present_voucherType || that_present_voucherType) {
-
 
70531
        if (!(this_present_voucherType && that_present_voucherType))
-
 
70532
          return false;
-
 
70533
        if (!this.voucherType.equals(that.voucherType))
-
 
70534
          return false;
-
 
70535
      }
-
 
70536
 
-
 
70537
      return true;
-
 
70538
    }
-
 
70539
 
-
 
70540
    @Override
-
 
70541
    public int hashCode() {
-
 
70542
      return 0;
-
 
70543
    }
-
 
70544
 
-
 
70545
    public int compareTo(getVoucherAmount_args other) {
-
 
70546
      if (!getClass().equals(other.getClass())) {
-
 
70547
        return getClass().getName().compareTo(other.getClass().getName());
-
 
70548
      }
-
 
70549
 
-
 
70550
      int lastComparison = 0;
-
 
70551
      getVoucherAmount_args typedOther = (getVoucherAmount_args)other;
-
 
70552
 
-
 
70553
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
70554
      if (lastComparison != 0) {
-
 
70555
        return lastComparison;
-
 
70556
      }
-
 
70557
      if (isSetItemId()) {
-
 
70558
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
70559
        if (lastComparison != 0) {
-
 
70560
          return lastComparison;
-
 
70561
        }
-
 
70562
      }
-
 
70563
      lastComparison = Boolean.valueOf(isSetVoucherType()).compareTo(typedOther.isSetVoucherType());
-
 
70564
      if (lastComparison != 0) {
-
 
70565
        return lastComparison;
-
 
70566
      }
-
 
70567
      if (isSetVoucherType()) {
-
 
70568
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.voucherType, typedOther.voucherType);
-
 
70569
        if (lastComparison != 0) {
-
 
70570
          return lastComparison;
-
 
70571
        }
-
 
70572
      }
-
 
70573
      return 0;
-
 
70574
    }
-
 
70575
 
-
 
70576
    public _Fields fieldForId(int fieldId) {
-
 
70577
      return _Fields.findByThriftId(fieldId);
-
 
70578
    }
-
 
70579
 
-
 
70580
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
70581
      org.apache.thrift.protocol.TField field;
-
 
70582
      iprot.readStructBegin();
-
 
70583
      while (true)
-
 
70584
      {
-
 
70585
        field = iprot.readFieldBegin();
-
 
70586
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
70587
          break;
-
 
70588
        }
-
 
70589
        switch (field.id) {
-
 
70590
          case 1: // ITEM_ID
-
 
70591
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
70592
              this.itemId = iprot.readI64();
-
 
70593
              setItemIdIsSet(true);
-
 
70594
            } else { 
-
 
70595
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
70596
            }
-
 
70597
            break;
-
 
70598
          case 2: // VOUCHER_TYPE
-
 
70599
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
70600
              this.voucherType = iprot.readString();
-
 
70601
            } else { 
-
 
70602
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
70603
            }
-
 
70604
            break;
-
 
70605
          default:
-
 
70606
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
70607
        }
-
 
70608
        iprot.readFieldEnd();
-
 
70609
      }
-
 
70610
      iprot.readStructEnd();
-
 
70611
      validate();
-
 
70612
    }
-
 
70613
 
-
 
70614
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
70615
      validate();
-
 
70616
 
-
 
70617
      oprot.writeStructBegin(STRUCT_DESC);
-
 
70618
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
70619
      oprot.writeI64(this.itemId);
-
 
70620
      oprot.writeFieldEnd();
-
 
70621
      if (this.voucherType != null) {
-
 
70622
        oprot.writeFieldBegin(VOUCHER_TYPE_FIELD_DESC);
-
 
70623
        oprot.writeString(this.voucherType);
-
 
70624
        oprot.writeFieldEnd();
-
 
70625
      }
-
 
70626
      oprot.writeFieldStop();
-
 
70627
      oprot.writeStructEnd();
-
 
70628
    }
-
 
70629
 
-
 
70630
    @Override
-
 
70631
    public String toString() {
-
 
70632
      StringBuilder sb = new StringBuilder("getVoucherAmount_args(");
-
 
70633
      boolean first = true;
-
 
70634
 
-
 
70635
      sb.append("itemId:");
-
 
70636
      sb.append(this.itemId);
-
 
70637
      first = false;
-
 
70638
      if (!first) sb.append(", ");
-
 
70639
      sb.append("voucherType:");
-
 
70640
      if (this.voucherType == null) {
-
 
70641
        sb.append("null");
-
 
70642
      } else {
-
 
70643
        sb.append(this.voucherType);
-
 
70644
      }
-
 
70645
      first = false;
-
 
70646
      sb.append(")");
-
 
70647
      return sb.toString();
-
 
70648
    }
-
 
70649
 
-
 
70650
    public void validate() throws org.apache.thrift.TException {
-
 
70651
      // check for required fields
-
 
70652
    }
-
 
70653
 
-
 
70654
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
70655
      try {
-
 
70656
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
70657
      } catch (org.apache.thrift.TException te) {
-
 
70658
        throw new java.io.IOException(te);
-
 
70659
      }
-
 
70660
    }
-
 
70661
 
-
 
70662
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
70663
      try {
-
 
70664
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
70665
        __isset_bit_vector = new BitSet(1);
-
 
70666
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
70667
      } catch (org.apache.thrift.TException te) {
-
 
70668
        throw new java.io.IOException(te);
-
 
70669
      }
-
 
70670
    }
-
 
70671
 
-
 
70672
  }
-
 
70673
 
-
 
70674
  public static class getVoucherAmount_result implements org.apache.thrift.TBase<getVoucherAmount_result, getVoucherAmount_result._Fields>, java.io.Serializable, Cloneable   {
-
 
70675
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVoucherAmount_result");
-
 
70676
 
-
 
70677
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
-
 
70678
 
-
 
70679
    private long success; // required
-
 
70680
 
-
 
70681
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
70682
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
70683
      SUCCESS((short)0, "success");
-
 
70684
 
-
 
70685
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
70686
 
-
 
70687
      static {
-
 
70688
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
70689
          byName.put(field.getFieldName(), field);
-
 
70690
        }
-
 
70691
      }
-
 
70692
 
-
 
70693
      /**
-
 
70694
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
70695
       */
-
 
70696
      public static _Fields findByThriftId(int fieldId) {
-
 
70697
        switch(fieldId) {
-
 
70698
          case 0: // SUCCESS
-
 
70699
            return SUCCESS;
-
 
70700
          default:
-
 
70701
            return null;
-
 
70702
        }
-
 
70703
      }
-
 
70704
 
-
 
70705
      /**
-
 
70706
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
70707
       * if it is not found.
-
 
70708
       */
-
 
70709
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
70710
        _Fields fields = findByThriftId(fieldId);
-
 
70711
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
70712
        return fields;
-
 
70713
      }
-
 
70714
 
-
 
70715
      /**
-
 
70716
       * Find the _Fields constant that matches name, or null if its not found.
-
 
70717
       */
-
 
70718
      public static _Fields findByName(String name) {
-
 
70719
        return byName.get(name);
-
 
70720
      }
-
 
70721
 
-
 
70722
      private final short _thriftId;
-
 
70723
      private final String _fieldName;
-
 
70724
 
-
 
70725
      _Fields(short thriftId, String fieldName) {
-
 
70726
        _thriftId = thriftId;
-
 
70727
        _fieldName = fieldName;
-
 
70728
      }
-
 
70729
 
-
 
70730
      public short getThriftFieldId() {
-
 
70731
        return _thriftId;
-
 
70732
      }
-
 
70733
 
-
 
70734
      public String getFieldName() {
-
 
70735
        return _fieldName;
-
 
70736
      }
-
 
70737
    }
-
 
70738
 
-
 
70739
    // isset id assignments
-
 
70740
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
70741
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
70742
 
-
 
70743
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
70744
    static {
-
 
70745
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
70746
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
70747
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
70748
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
70749
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVoucherAmount_result.class, metaDataMap);
-
 
70750
    }
-
 
70751
 
-
 
70752
    public getVoucherAmount_result() {
-
 
70753
    }
-
 
70754
 
-
 
70755
    public getVoucherAmount_result(
-
 
70756
      long success)
-
 
70757
    {
-
 
70758
      this();
-
 
70759
      this.success = success;
-
 
70760
      setSuccessIsSet(true);
-
 
70761
    }
-
 
70762
 
-
 
70763
    /**
-
 
70764
     * Performs a deep copy on <i>other</i>.
-
 
70765
     */
-
 
70766
    public getVoucherAmount_result(getVoucherAmount_result other) {
-
 
70767
      __isset_bit_vector.clear();
-
 
70768
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
70769
      this.success = other.success;
-
 
70770
    }
-
 
70771
 
-
 
70772
    public getVoucherAmount_result deepCopy() {
-
 
70773
      return new getVoucherAmount_result(this);
-
 
70774
    }
-
 
70775
 
-
 
70776
    @Override
-
 
70777
    public void clear() {
-
 
70778
      setSuccessIsSet(false);
-
 
70779
      this.success = 0;
-
 
70780
    }
-
 
70781
 
-
 
70782
    public long getSuccess() {
-
 
70783
      return this.success;
-
 
70784
    }
-
 
70785
 
-
 
70786
    public void setSuccess(long success) {
-
 
70787
      this.success = success;
-
 
70788
      setSuccessIsSet(true);
-
 
70789
    }
-
 
70790
 
-
 
70791
    public void unsetSuccess() {
-
 
70792
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
70793
    }
-
 
70794
 
-
 
70795
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
70796
    public boolean isSetSuccess() {
-
 
70797
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
70798
    }
-
 
70799
 
-
 
70800
    public void setSuccessIsSet(boolean value) {
-
 
70801
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
70802
    }
-
 
70803
 
-
 
70804
    public void setFieldValue(_Fields field, Object value) {
-
 
70805
      switch (field) {
-
 
70806
      case SUCCESS:
-
 
70807
        if (value == null) {
-
 
70808
          unsetSuccess();
-
 
70809
        } else {
-
 
70810
          setSuccess((Long)value);
-
 
70811
        }
-
 
70812
        break;
-
 
70813
 
-
 
70814
      }
-
 
70815
    }
-
 
70816
 
-
 
70817
    public Object getFieldValue(_Fields field) {
-
 
70818
      switch (field) {
-
 
70819
      case SUCCESS:
-
 
70820
        return Long.valueOf(getSuccess());
-
 
70821
 
-
 
70822
      }
-
 
70823
      throw new IllegalStateException();
-
 
70824
    }
-
 
70825
 
-
 
70826
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
70827
    public boolean isSet(_Fields field) {
-
 
70828
      if (field == null) {
-
 
70829
        throw new IllegalArgumentException();
-
 
70830
      }
-
 
70831
 
-
 
70832
      switch (field) {
-
 
70833
      case SUCCESS:
-
 
70834
        return isSetSuccess();
-
 
70835
      }
-
 
70836
      throw new IllegalStateException();
-
 
70837
    }
-
 
70838
 
-
 
70839
    @Override
-
 
70840
    public boolean equals(Object that) {
-
 
70841
      if (that == null)
-
 
70842
        return false;
-
 
70843
      if (that instanceof getVoucherAmount_result)
-
 
70844
        return this.equals((getVoucherAmount_result)that);
-
 
70845
      return false;
-
 
70846
    }
-
 
70847
 
-
 
70848
    public boolean equals(getVoucherAmount_result that) {
-
 
70849
      if (that == null)
-
 
70850
        return false;
-
 
70851
 
-
 
70852
      boolean this_present_success = true;
-
 
70853
      boolean that_present_success = true;
-
 
70854
      if (this_present_success || that_present_success) {
-
 
70855
        if (!(this_present_success && that_present_success))
-
 
70856
          return false;
-
 
70857
        if (this.success != that.success)
-
 
70858
          return false;
-
 
70859
      }
-
 
70860
 
-
 
70861
      return true;
-
 
70862
    }
-
 
70863
 
-
 
70864
    @Override
-
 
70865
    public int hashCode() {
-
 
70866
      return 0;
-
 
70867
    }
-
 
70868
 
-
 
70869
    public int compareTo(getVoucherAmount_result other) {
-
 
70870
      if (!getClass().equals(other.getClass())) {
-
 
70871
        return getClass().getName().compareTo(other.getClass().getName());
-
 
70872
      }
-
 
70873
 
-
 
70874
      int lastComparison = 0;
-
 
70875
      getVoucherAmount_result typedOther = (getVoucherAmount_result)other;
-
 
70876
 
-
 
70877
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
70878
      if (lastComparison != 0) {
-
 
70879
        return lastComparison;
-
 
70880
      }
-
 
70881
      if (isSetSuccess()) {
-
 
70882
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
70883
        if (lastComparison != 0) {
-
 
70884
          return lastComparison;
-
 
70885
        }
-
 
70886
      }
-
 
70887
      return 0;
-
 
70888
    }
-
 
70889
 
-
 
70890
    public _Fields fieldForId(int fieldId) {
-
 
70891
      return _Fields.findByThriftId(fieldId);
-
 
70892
    }
-
 
70893
 
-
 
70894
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
70895
      org.apache.thrift.protocol.TField field;
-
 
70896
      iprot.readStructBegin();
-
 
70897
      while (true)
-
 
70898
      {
-
 
70899
        field = iprot.readFieldBegin();
-
 
70900
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
70901
          break;
-
 
70902
        }
-
 
70903
        switch (field.id) {
-
 
70904
          case 0: // SUCCESS
-
 
70905
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
70906
              this.success = iprot.readI64();
-
 
70907
              setSuccessIsSet(true);
-
 
70908
            } else { 
-
 
70909
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
70910
            }
-
 
70911
            break;
-
 
70912
          default:
-
 
70913
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
70914
        }
-
 
70915
        iprot.readFieldEnd();
-
 
70916
      }
-
 
70917
      iprot.readStructEnd();
-
 
70918
      validate();
-
 
70919
    }
-
 
70920
 
-
 
70921
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
70922
      oprot.writeStructBegin(STRUCT_DESC);
-
 
70923
 
-
 
70924
      if (this.isSetSuccess()) {
-
 
70925
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
70926
        oprot.writeI64(this.success);
-
 
70927
        oprot.writeFieldEnd();
-
 
70928
      }
-
 
70929
      oprot.writeFieldStop();
-
 
70930
      oprot.writeStructEnd();
-
 
70931
    }
-
 
70932
 
-
 
70933
    @Override
-
 
70934
    public String toString() {
-
 
70935
      StringBuilder sb = new StringBuilder("getVoucherAmount_result(");
-
 
70936
      boolean first = true;
-
 
70937
 
-
 
70938
      sb.append("success:");
-
 
70939
      sb.append(this.success);
-
 
70940
      first = false;
-
 
70941
      sb.append(")");
-
 
70942
      return sb.toString();
-
 
70943
    }
-
 
70944
 
-
 
70945
    public void validate() throws org.apache.thrift.TException {
-
 
70946
      // check for required fields
-
 
70947
    }
-
 
70948
 
-
 
70949
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
70950
      try {
-
 
70951
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
70952
      } catch (org.apache.thrift.TException te) {
-
 
70953
        throw new java.io.IOException(te);
-
 
70954
      }
-
 
70955
    }
-
 
70956
 
-
 
70957
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
70958
      try {
-
 
70959
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
70960
      } catch (org.apache.thrift.TException te) {
-
 
70961
        throw new java.io.IOException(te);
-
 
70962
      }
-
 
70963
    }
-
 
70964
 
-
 
70965
  }
-
 
70966
 
-
 
70967
  public static class getAllItemVouchers_args implements org.apache.thrift.TBase<getAllItemVouchers_args, getAllItemVouchers_args._Fields>, java.io.Serializable, Cloneable   {
-
 
70968
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemVouchers_args");
-
 
70969
 
-
 
70970
    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);
-
 
70971
 
-
 
70972
    private long itemId; // required
-
 
70973
 
-
 
70974
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
70975
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
70976
      ITEM_ID((short)1, "itemId");
-
 
70977
 
-
 
70978
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
70979
 
-
 
70980
      static {
-
 
70981
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
70982
          byName.put(field.getFieldName(), field);
-
 
70983
        }
-
 
70984
      }
-
 
70985
 
-
 
70986
      /**
-
 
70987
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
70988
       */
-
 
70989
      public static _Fields findByThriftId(int fieldId) {
-
 
70990
        switch(fieldId) {
-
 
70991
          case 1: // ITEM_ID
-
 
70992
            return ITEM_ID;
-
 
70993
          default:
-
 
70994
            return null;
-
 
70995
        }
-
 
70996
      }
-
 
70997
 
-
 
70998
      /**
-
 
70999
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
71000
       * if it is not found.
-
 
71001
       */
-
 
71002
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
71003
        _Fields fields = findByThriftId(fieldId);
-
 
71004
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
71005
        return fields;
-
 
71006
      }
-
 
71007
 
-
 
71008
      /**
-
 
71009
       * Find the _Fields constant that matches name, or null if its not found.
-
 
71010
       */
-
 
71011
      public static _Fields findByName(String name) {
-
 
71012
        return byName.get(name);
-
 
71013
      }
-
 
71014
 
-
 
71015
      private final short _thriftId;
-
 
71016
      private final String _fieldName;
-
 
71017
 
-
 
71018
      _Fields(short thriftId, String fieldName) {
-
 
71019
        _thriftId = thriftId;
-
 
71020
        _fieldName = fieldName;
-
 
71021
      }
-
 
71022
 
-
 
71023
      public short getThriftFieldId() {
-
 
71024
        return _thriftId;
-
 
71025
      }
-
 
71026
 
-
 
71027
      public String getFieldName() {
-
 
71028
        return _fieldName;
-
 
71029
      }
-
 
71030
    }
-
 
71031
 
-
 
71032
    // isset id assignments
-
 
71033
    private static final int __ITEMID_ISSET_ID = 0;
-
 
71034
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
71035
 
-
 
71036
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
71037
    static {
-
 
71038
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
71039
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
71040
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
71041
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
71042
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemVouchers_args.class, metaDataMap);
-
 
71043
    }
-
 
71044
 
-
 
71045
    public getAllItemVouchers_args() {
-
 
71046
    }
-
 
71047
 
-
 
71048
    public getAllItemVouchers_args(
-
 
71049
      long itemId)
-
 
71050
    {
-
 
71051
      this();
-
 
71052
      this.itemId = itemId;
-
 
71053
      setItemIdIsSet(true);
-
 
71054
    }
-
 
71055
 
-
 
71056
    /**
-
 
71057
     * Performs a deep copy on <i>other</i>.
-
 
71058
     */
-
 
71059
    public getAllItemVouchers_args(getAllItemVouchers_args other) {
-
 
71060
      __isset_bit_vector.clear();
-
 
71061
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
71062
      this.itemId = other.itemId;
-
 
71063
    }
-
 
71064
 
-
 
71065
    public getAllItemVouchers_args deepCopy() {
-
 
71066
      return new getAllItemVouchers_args(this);
-
 
71067
    }
-
 
71068
 
-
 
71069
    @Override
-
 
71070
    public void clear() {
-
 
71071
      setItemIdIsSet(false);
-
 
71072
      this.itemId = 0;
-
 
71073
    }
-
 
71074
 
-
 
71075
    public long getItemId() {
-
 
71076
      return this.itemId;
-
 
71077
    }
-
 
71078
 
-
 
71079
    public void setItemId(long itemId) {
-
 
71080
      this.itemId = itemId;
-
 
71081
      setItemIdIsSet(true);
-
 
71082
    }
-
 
71083
 
-
 
71084
    public void unsetItemId() {
-
 
71085
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
71086
    }
-
 
71087
 
-
 
71088
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
71089
    public boolean isSetItemId() {
-
 
71090
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
71091
    }
-
 
71092
 
-
 
71093
    public void setItemIdIsSet(boolean value) {
-
 
71094
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
71095
    }
-
 
71096
 
-
 
71097
    public void setFieldValue(_Fields field, Object value) {
-
 
71098
      switch (field) {
-
 
71099
      case ITEM_ID:
-
 
71100
        if (value == null) {
-
 
71101
          unsetItemId();
-
 
71102
        } else {
-
 
71103
          setItemId((Long)value);
-
 
71104
        }
-
 
71105
        break;
-
 
71106
 
-
 
71107
      }
-
 
71108
    }
-
 
71109
 
-
 
71110
    public Object getFieldValue(_Fields field) {
-
 
71111
      switch (field) {
-
 
71112
      case ITEM_ID:
-
 
71113
        return Long.valueOf(getItemId());
-
 
71114
 
-
 
71115
      }
-
 
71116
      throw new IllegalStateException();
-
 
71117
    }
-
 
71118
 
-
 
71119
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
71120
    public boolean isSet(_Fields field) {
-
 
71121
      if (field == null) {
-
 
71122
        throw new IllegalArgumentException();
-
 
71123
      }
-
 
71124
 
-
 
71125
      switch (field) {
-
 
71126
      case ITEM_ID:
-
 
71127
        return isSetItemId();
-
 
71128
      }
-
 
71129
      throw new IllegalStateException();
-
 
71130
    }
-
 
71131
 
-
 
71132
    @Override
-
 
71133
    public boolean equals(Object that) {
-
 
71134
      if (that == null)
-
 
71135
        return false;
-
 
71136
      if (that instanceof getAllItemVouchers_args)
-
 
71137
        return this.equals((getAllItemVouchers_args)that);
-
 
71138
      return false;
-
 
71139
    }
-
 
71140
 
-
 
71141
    public boolean equals(getAllItemVouchers_args that) {
-
 
71142
      if (that == null)
-
 
71143
        return false;
-
 
71144
 
-
 
71145
      boolean this_present_itemId = true;
-
 
71146
      boolean that_present_itemId = true;
-
 
71147
      if (this_present_itemId || that_present_itemId) {
-
 
71148
        if (!(this_present_itemId && that_present_itemId))
-
 
71149
          return false;
-
 
71150
        if (this.itemId != that.itemId)
-
 
71151
          return false;
-
 
71152
      }
-
 
71153
 
-
 
71154
      return true;
-
 
71155
    }
-
 
71156
 
-
 
71157
    @Override
-
 
71158
    public int hashCode() {
-
 
71159
      return 0;
-
 
71160
    }
-
 
71161
 
-
 
71162
    public int compareTo(getAllItemVouchers_args other) {
-
 
71163
      if (!getClass().equals(other.getClass())) {
-
 
71164
        return getClass().getName().compareTo(other.getClass().getName());
-
 
71165
      }
-
 
71166
 
-
 
71167
      int lastComparison = 0;
-
 
71168
      getAllItemVouchers_args typedOther = (getAllItemVouchers_args)other;
-
 
71169
 
-
 
71170
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
71171
      if (lastComparison != 0) {
-
 
71172
        return lastComparison;
-
 
71173
      }
-
 
71174
      if (isSetItemId()) {
-
 
71175
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
71176
        if (lastComparison != 0) {
-
 
71177
          return lastComparison;
-
 
71178
        }
-
 
71179
      }
-
 
71180
      return 0;
-
 
71181
    }
-
 
71182
 
-
 
71183
    public _Fields fieldForId(int fieldId) {
-
 
71184
      return _Fields.findByThriftId(fieldId);
-
 
71185
    }
-
 
71186
 
-
 
71187
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
71188
      org.apache.thrift.protocol.TField field;
-
 
71189
      iprot.readStructBegin();
-
 
71190
      while (true)
-
 
71191
      {
-
 
71192
        field = iprot.readFieldBegin();
-
 
71193
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
71194
          break;
-
 
71195
        }
-
 
71196
        switch (field.id) {
-
 
71197
          case 1: // ITEM_ID
-
 
71198
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
71199
              this.itemId = iprot.readI64();
-
 
71200
              setItemIdIsSet(true);
-
 
71201
            } else { 
-
 
71202
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
71203
            }
-
 
71204
            break;
-
 
71205
          default:
-
 
71206
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
71207
        }
-
 
71208
        iprot.readFieldEnd();
-
 
71209
      }
-
 
71210
      iprot.readStructEnd();
-
 
71211
      validate();
-
 
71212
    }
-
 
71213
 
-
 
71214
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
71215
      validate();
-
 
71216
 
-
 
71217
      oprot.writeStructBegin(STRUCT_DESC);
-
 
71218
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
71219
      oprot.writeI64(this.itemId);
-
 
71220
      oprot.writeFieldEnd();
-
 
71221
      oprot.writeFieldStop();
-
 
71222
      oprot.writeStructEnd();
-
 
71223
    }
-
 
71224
 
-
 
71225
    @Override
-
 
71226
    public String toString() {
-
 
71227
      StringBuilder sb = new StringBuilder("getAllItemVouchers_args(");
-
 
71228
      boolean first = true;
-
 
71229
 
-
 
71230
      sb.append("itemId:");
-
 
71231
      sb.append(this.itemId);
-
 
71232
      first = false;
-
 
71233
      sb.append(")");
-
 
71234
      return sb.toString();
-
 
71235
    }
-
 
71236
 
-
 
71237
    public void validate() throws org.apache.thrift.TException {
-
 
71238
      // check for required fields
-
 
71239
    }
-
 
71240
 
-
 
71241
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
71242
      try {
-
 
71243
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
71244
      } catch (org.apache.thrift.TException te) {
-
 
71245
        throw new java.io.IOException(te);
-
 
71246
      }
-
 
71247
    }
-
 
71248
 
-
 
71249
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
71250
      try {
-
 
71251
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
71252
        __isset_bit_vector = new BitSet(1);
-
 
71253
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
71254
      } catch (org.apache.thrift.TException te) {
-
 
71255
        throw new java.io.IOException(te);
-
 
71256
      }
-
 
71257
    }
-
 
71258
 
-
 
71259
  }
-
 
71260
 
-
 
71261
  public static class getAllItemVouchers_result implements org.apache.thrift.TBase<getAllItemVouchers_result, getAllItemVouchers_result._Fields>, java.io.Serializable, Cloneable   {
-
 
71262
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemVouchers_result");
-
 
71263
 
-
 
71264
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
71265
 
-
 
71266
    private List<VoucherItemMapping> success; // required
-
 
71267
 
-
 
71268
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
71269
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
71270
      SUCCESS((short)0, "success");
-
 
71271
 
-
 
71272
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
71273
 
-
 
71274
      static {
-
 
71275
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
71276
          byName.put(field.getFieldName(), field);
-
 
71277
        }
-
 
71278
      }
-
 
71279
 
-
 
71280
      /**
-
 
71281
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
71282
       */
-
 
71283
      public static _Fields findByThriftId(int fieldId) {
-
 
71284
        switch(fieldId) {
-
 
71285
          case 0: // SUCCESS
-
 
71286
            return SUCCESS;
-
 
71287
          default:
-
 
71288
            return null;
-
 
71289
        }
-
 
71290
      }
-
 
71291
 
-
 
71292
      /**
-
 
71293
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
71294
       * if it is not found.
-
 
71295
       */
-
 
71296
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
71297
        _Fields fields = findByThriftId(fieldId);
-
 
71298
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
71299
        return fields;
-
 
71300
      }
-
 
71301
 
-
 
71302
      /**
-
 
71303
       * Find the _Fields constant that matches name, or null if its not found.
-
 
71304
       */
-
 
71305
      public static _Fields findByName(String name) {
-
 
71306
        return byName.get(name);
-
 
71307
      }
-
 
71308
 
-
 
71309
      private final short _thriftId;
-
 
71310
      private final String _fieldName;
-
 
71311
 
-
 
71312
      _Fields(short thriftId, String fieldName) {
-
 
71313
        _thriftId = thriftId;
-
 
71314
        _fieldName = fieldName;
-
 
71315
      }
-
 
71316
 
-
 
71317
      public short getThriftFieldId() {
-
 
71318
        return _thriftId;
-
 
71319
      }
-
 
71320
 
-
 
71321
      public String getFieldName() {
-
 
71322
        return _fieldName;
-
 
71323
      }
-
 
71324
    }
-
 
71325
 
-
 
71326
    // isset id assignments
-
 
71327
 
-
 
71328
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
71329
    static {
-
 
71330
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
71331
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
71332
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
71333
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VoucherItemMapping.class))));
-
 
71334
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
71335
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemVouchers_result.class, metaDataMap);
-
 
71336
    }
-
 
71337
 
-
 
71338
    public getAllItemVouchers_result() {
-
 
71339
    }
-
 
71340
 
-
 
71341
    public getAllItemVouchers_result(
-
 
71342
      List<VoucherItemMapping> success)
-
 
71343
    {
-
 
71344
      this();
-
 
71345
      this.success = success;
-
 
71346
    }
-
 
71347
 
-
 
71348
    /**
-
 
71349
     * Performs a deep copy on <i>other</i>.
-
 
71350
     */
-
 
71351
    public getAllItemVouchers_result(getAllItemVouchers_result other) {
-
 
71352
      if (other.isSetSuccess()) {
-
 
71353
        List<VoucherItemMapping> __this__success = new ArrayList<VoucherItemMapping>();
-
 
71354
        for (VoucherItemMapping other_element : other.success) {
-
 
71355
          __this__success.add(new VoucherItemMapping(other_element));
-
 
71356
        }
-
 
71357
        this.success = __this__success;
-
 
71358
      }
-
 
71359
    }
-
 
71360
 
-
 
71361
    public getAllItemVouchers_result deepCopy() {
-
 
71362
      return new getAllItemVouchers_result(this);
-
 
71363
    }
-
 
71364
 
-
 
71365
    @Override
-
 
71366
    public void clear() {
-
 
71367
      this.success = null;
-
 
71368
    }
-
 
71369
 
-
 
71370
    public int getSuccessSize() {
-
 
71371
      return (this.success == null) ? 0 : this.success.size();
-
 
71372
    }
-
 
71373
 
-
 
71374
    public java.util.Iterator<VoucherItemMapping> getSuccessIterator() {
-
 
71375
      return (this.success == null) ? null : this.success.iterator();
-
 
71376
    }
-
 
71377
 
-
 
71378
    public void addToSuccess(VoucherItemMapping elem) {
-
 
71379
      if (this.success == null) {
-
 
71380
        this.success = new ArrayList<VoucherItemMapping>();
-
 
71381
      }
-
 
71382
      this.success.add(elem);
-
 
71383
    }
-
 
71384
 
-
 
71385
    public List<VoucherItemMapping> getSuccess() {
-
 
71386
      return this.success;
-
 
71387
    }
-
 
71388
 
-
 
71389
    public void setSuccess(List<VoucherItemMapping> success) {
-
 
71390
      this.success = success;
-
 
71391
    }
-
 
71392
 
-
 
71393
    public void unsetSuccess() {
-
 
71394
      this.success = null;
-
 
71395
    }
-
 
71396
 
-
 
71397
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
71398
    public boolean isSetSuccess() {
-
 
71399
      return this.success != null;
-
 
71400
    }
-
 
71401
 
-
 
71402
    public void setSuccessIsSet(boolean value) {
-
 
71403
      if (!value) {
-
 
71404
        this.success = null;
-
 
71405
      }
-
 
71406
    }
-
 
71407
 
-
 
71408
    public void setFieldValue(_Fields field, Object value) {
-
 
71409
      switch (field) {
-
 
71410
      case SUCCESS:
-
 
71411
        if (value == null) {
-
 
71412
          unsetSuccess();
-
 
71413
        } else {
-
 
71414
          setSuccess((List<VoucherItemMapping>)value);
-
 
71415
        }
-
 
71416
        break;
-
 
71417
 
-
 
71418
      }
-
 
71419
    }
-
 
71420
 
-
 
71421
    public Object getFieldValue(_Fields field) {
-
 
71422
      switch (field) {
-
 
71423
      case SUCCESS:
-
 
71424
        return getSuccess();
-
 
71425
 
-
 
71426
      }
-
 
71427
      throw new IllegalStateException();
-
 
71428
    }
-
 
71429
 
-
 
71430
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
71431
    public boolean isSet(_Fields field) {
-
 
71432
      if (field == null) {
-
 
71433
        throw new IllegalArgumentException();
-
 
71434
      }
-
 
71435
 
-
 
71436
      switch (field) {
-
 
71437
      case SUCCESS:
-
 
71438
        return isSetSuccess();
-
 
71439
      }
-
 
71440
      throw new IllegalStateException();
-
 
71441
    }
-
 
71442
 
-
 
71443
    @Override
-
 
71444
    public boolean equals(Object that) {
-
 
71445
      if (that == null)
-
 
71446
        return false;
-
 
71447
      if (that instanceof getAllItemVouchers_result)
-
 
71448
        return this.equals((getAllItemVouchers_result)that);
-
 
71449
      return false;
-
 
71450
    }
-
 
71451
 
-
 
71452
    public boolean equals(getAllItemVouchers_result that) {
-
 
71453
      if (that == null)
-
 
71454
        return false;
-
 
71455
 
-
 
71456
      boolean this_present_success = true && this.isSetSuccess();
-
 
71457
      boolean that_present_success = true && that.isSetSuccess();
-
 
71458
      if (this_present_success || that_present_success) {
-
 
71459
        if (!(this_present_success && that_present_success))
-
 
71460
          return false;
-
 
71461
        if (!this.success.equals(that.success))
-
 
71462
          return false;
-
 
71463
      }
-
 
71464
 
-
 
71465
      return true;
-
 
71466
    }
-
 
71467
 
-
 
71468
    @Override
-
 
71469
    public int hashCode() {
-
 
71470
      return 0;
-
 
71471
    }
-
 
71472
 
-
 
71473
    public int compareTo(getAllItemVouchers_result other) {
-
 
71474
      if (!getClass().equals(other.getClass())) {
-
 
71475
        return getClass().getName().compareTo(other.getClass().getName());
-
 
71476
      }
-
 
71477
 
-
 
71478
      int lastComparison = 0;
-
 
71479
      getAllItemVouchers_result typedOther = (getAllItemVouchers_result)other;
-
 
71480
 
-
 
71481
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
71482
      if (lastComparison != 0) {
-
 
71483
        return lastComparison;
-
 
71484
      }
-
 
71485
      if (isSetSuccess()) {
-
 
71486
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
71487
        if (lastComparison != 0) {
-
 
71488
          return lastComparison;
-
 
71489
        }
-
 
71490
      }
-
 
71491
      return 0;
-
 
71492
    }
-
 
71493
 
-
 
71494
    public _Fields fieldForId(int fieldId) {
-
 
71495
      return _Fields.findByThriftId(fieldId);
-
 
71496
    }
-
 
71497
 
-
 
71498
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
71499
      org.apache.thrift.protocol.TField field;
-
 
71500
      iprot.readStructBegin();
-
 
71501
      while (true)
-
 
71502
      {
-
 
71503
        field = iprot.readFieldBegin();
-
 
71504
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
71505
          break;
-
 
71506
        }
-
 
71507
        switch (field.id) {
-
 
71508
          case 0: // SUCCESS
-
 
71509
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
71510
              {
-
 
71511
                org.apache.thrift.protocol.TList _list212 = iprot.readListBegin();
-
 
71512
                this.success = new ArrayList<VoucherItemMapping>(_list212.size);
-
 
71513
                for (int _i213 = 0; _i213 < _list212.size; ++_i213)
-
 
71514
                {
-
 
71515
                  VoucherItemMapping _elem214; // required
-
 
71516
                  _elem214 = new VoucherItemMapping();
-
 
71517
                  _elem214.read(iprot);
-
 
71518
                  this.success.add(_elem214);
-
 
71519
                }
-
 
71520
                iprot.readListEnd();
-
 
71521
              }
-
 
71522
            } else { 
-
 
71523
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
71524
            }
-
 
71525
            break;
-
 
71526
          default:
-
 
71527
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
71528
        }
-
 
71529
        iprot.readFieldEnd();
-
 
71530
      }
-
 
71531
      iprot.readStructEnd();
-
 
71532
      validate();
-
 
71533
    }
-
 
71534
 
-
 
71535
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
71536
      oprot.writeStructBegin(STRUCT_DESC);
-
 
71537
 
-
 
71538
      if (this.isSetSuccess()) {
-
 
71539
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
71540
        {
-
 
71541
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
71542
          for (VoucherItemMapping _iter215 : this.success)
-
 
71543
          {
-
 
71544
            _iter215.write(oprot);
-
 
71545
          }
-
 
71546
          oprot.writeListEnd();
-
 
71547
        }
-
 
71548
        oprot.writeFieldEnd();
-
 
71549
      }
-
 
71550
      oprot.writeFieldStop();
-
 
71551
      oprot.writeStructEnd();
-
 
71552
    }
-
 
71553
 
-
 
71554
    @Override
-
 
71555
    public String toString() {
-
 
71556
      StringBuilder sb = new StringBuilder("getAllItemVouchers_result(");
-
 
71557
      boolean first = true;
-
 
71558
 
-
 
71559
      sb.append("success:");
-
 
71560
      if (this.success == null) {
-
 
71561
        sb.append("null");
-
 
71562
      } else {
-
 
71563
        sb.append(this.success);
-
 
71564
      }
-
 
71565
      first = false;
-
 
71566
      sb.append(")");
-
 
71567
      return sb.toString();
-
 
71568
    }
68323
 
71569
 
68324
    public void validate() throws org.apache.thrift.TException {
71570
    public void validate() throws org.apache.thrift.TException {
68325
      // check for required fields
71571
      // check for required fields
68326
    }
71572
    }
68327
 
71573