Rev 6511 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
/*** Autogenerated by Thrift Compiler (0.7.0)** DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING*/package in.shop2020.model.v1.catalog;import java.util.List;import java.util.ArrayList;import java.util.Map;import java.util.HashMap;import java.util.EnumMap;import java.util.Set;import java.util.HashSet;import java.util.EnumSet;import java.util.Collections;import java.util.BitSet;import java.nio.ByteBuffer;import java.util.Arrays;import org.slf4j.Logger;import org.slf4j.LoggerFactory;public class CatalogService {public interface Iface extends in.shop2020.generic.GenericService.Iface {/*** Availability and inventory attributes** @param item*/public long addItem(Item item) throws CatalogServiceException, org.apache.thrift.TException;public long updateItem(Item item) throws CatalogServiceException, org.apache.thrift.TException;/*** Checks if the item given to the corresponding itemId is active. If it's active,* whether it's risky and if it's risky, its inventory position.** @param itemId*/public ItemShippingInfo isActive(long itemId) throws CatalogServiceException, org.apache.thrift.TException;public String getItemStatusDescription(long itemId) throws CatalogServiceException, org.apache.thrift.TException;public void startItemOn(long item_id, long timestamp) throws CatalogServiceException, org.apache.thrift.TException;public void retireItemOn(long item_id, long timestamp) throws CatalogServiceException, org.apache.thrift.TException;public void changeItemStatus(long item_id, long timestamp, status newstatus) throws CatalogServiceException, org.apache.thrift.TException;public Item getItem(long item_id) throws CatalogServiceException, org.apache.thrift.TException;public List<Item> getItemsByCatalogId(long catalog_item_id) throws CatalogServiceException, org.apache.thrift.TException;public List<Item> getValidItemsByCatalogId(long catalog_item_id) throws CatalogServiceException, org.apache.thrift.TException;public List<Item> getAllItems(boolean isActive) throws CatalogServiceException, org.apache.thrift.TException;public List<Item> getAllItemsByStatus(status itemStatus) throws CatalogServiceException, org.apache.thrift.TException;public boolean markItemAsContentComplete(long entityId, long category, String brand, String modelName, String modelNumber) throws CatalogServiceException, org.apache.thrift.TException;/*** Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.** @param offset* @param limit*/public List<Item> getAllItemsInRange(long offset, long limit) throws CatalogServiceException, org.apache.thrift.TException;/*** Gets at most 'limit' items starting at the given offset in the given status. Returns an empty list if there are no more items at the given offset.** @param itemStatus* @param offset* @param limit*/public List<Item> getAllItemsByStatusInRange(status itemStatus, long offset, long limit) throws CatalogServiceException, org.apache.thrift.TException;/*** Gets a count of all items by status** @param useStatus* @param itemStatus*/public int getItemCountByStatus(boolean useStatus, status itemStatus) throws org.apache.thrift.TException;public List<Item> getBestSellers() throws CatalogServiceException, org.apache.thrift.TException;public List<Long> getBestSellersCatalogIds(long beginIndex, long totalItems, String brand, long category) throws CatalogServiceException, org.apache.thrift.TException;public long getBestSellersCount() throws CatalogServiceException, org.apache.thrift.TException;public List<Item> getBestDeals() throws CatalogServiceException, org.apache.thrift.TException;public List<Long> getBestDealsCatalogIds(long beginIndex, long totalItems, String brand, long category) throws CatalogServiceException, org.apache.thrift.TException;public long getBestDealsCount() throws CatalogServiceException, org.apache.thrift.TException;public List<Item> getComingSoon() throws CatalogServiceException, org.apache.thrift.TException;public List<Long> getComingSoonCatalogIds(long beginIndex, long totalItems, String brand, long category) throws CatalogServiceException, org.apache.thrift.TException;public long getComingSoonCount() throws CatalogServiceException, org.apache.thrift.TException;/*** Returns a list of items sorted in the descending order by start date.* The list is limited to the 'latest_arrivals_count' configuraiton parameter.*/public List<Item> getLatestArrivals() throws CatalogServiceException, org.apache.thrift.TException;/*** Returns the list of catalog ids of latest arrivals in the given categories of the given brand.* To ignore the categories, pass the list as empty. To ignore brand, pass it as null.** @param beginIndex* @param totalItems* @param brand* @param categories*/public List<Long> getLatestArrivalsCatalogIds(long beginIndex, long totalItems, String brand, List<Long> categories) throws CatalogServiceException, org.apache.thrift.TException;/*** Get the total number of latest arrivals we are willing to show.* The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.*/public long getLatestArrivalsCount() throws CatalogServiceException, org.apache.thrift.TException;public long generateNewEntityID() throws org.apache.thrift.TException;/*** All category related functions** @param category*/public boolean addCategory(Category category) throws org.apache.thrift.TException;public Category getCategory(long id) throws org.apache.thrift.TException;public List<Category> getAllCategories() throws org.apache.thrift.TException;/*** Returns the list of similar items.** @param itemId*/public List<Item> getAllSimilarItems(long itemId) throws org.apache.thrift.TException;/*** Adds similar item.** @param itemId* @param catalogItemId*/public Item addSimilarItem(long itemId, long catalogItemId) throws CatalogServiceException, org.apache.thrift.TException;/*** Delete similar item.** @param itemId* @param catalogItemId*/public boolean deleteSimilarItem(long itemId, long catalogItemId) throws CatalogServiceException, org.apache.thrift.TException;/*** Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)* If yes, returns the itemId else returns 0** @param brand* @param modelNumber* @param modelName* @param color*/public long checkSimilarItem(String brand, String modelNumber, String modelName, String color) throws org.apache.thrift.TException;/*** Check wether item is risky and change status if inventory is not available for risky items** @param itemId*/public void validateRiskyStatus(long itemId) throws org.apache.thrift.TException;/*** Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.** @param itemId* @param risky*/public void changeItemRiskyFlag(long itemId, boolean risky) throws org.apache.thrift.TException;/*** Returns list of items marked as risky.*/public List<Item> getItemsByRiskyFlag() throws org.apache.thrift.TException;/*** Returns list of items with any status except PHASED_OUT and filtered by category, brand.** @param category* @param brand*/public List<Item> getItemsForMasterSheet(String category, String brand) throws org.apache.thrift.TException;/*** Returns list of catalog ids of items with same similarity index as of the given itemId** @param beginIndex* @param totalItems* @param itemId*/public List<Long> getSimilarItemsCatalogIds(long beginIndex, long totalItems, long itemId) throws org.apache.thrift.TException;/*** Add user requests for out of stock items. Once user will ask for notify me an entry will** @param itemId* @param email*/public boolean addProductNotification(long itemId, String email) throws org.apache.thrift.TException;/*** Send the product notifications to the users for items which has stock.*/public boolean sendProductNotifications() throws org.apache.thrift.TException;/*** Returns list of brand names for a given category Id** @param categoryId*/public List<String> getAllBrandsByCategory(long categoryId) throws org.apache.thrift.TException;/*** Returns list of brand names*/public List<String> getAllBrands() throws org.apache.thrift.TException;/*** Return list of all sources*/public List<Source> getAllSources() throws org.apache.thrift.TException;/*** Returns the pricing information of an item. If no information is found, exception will be thrown.** @param itemId* @param sourceId*/public SourceItemPricing getItemPricingBySource(long itemId, long sourceId) throws CatalogServiceException, org.apache.thrift.TException;/*** Adds prices to be displayed corresponding to the item if user comes from a source.* If item is not found or source is not found, it will throw exception.** @param sourceItemPricing*/public void addSourceItemPricing(SourceItemPricing sourceItemPricing) throws CatalogServiceException, org.apache.thrift.TException;/*** Returns the list of source pricing information of an item.* Raises an exception if item not found corresponding to itemId** @param itemId*/public List<SourceItemPricing> getAllSourcePricing(long itemId) throws CatalogServiceException, org.apache.thrift.TException;/*** Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.** @param item_id* @param sourceId*/public Item getItemForSource(long item_id, long sourceId) throws CatalogServiceException, org.apache.thrift.TException;/*** Searches items matching the the given terms in the catalog and returns results within the specified range.** @param searchTerms* @param offset* @param limit*/public List<Item> searchItemsInRange(List<String> searchTerms, long offset, long limit) throws org.apache.thrift.TException;/*** Gets the count of search results for the given search terms so that the user can go through all the pages.** @param searchTerms*/public int getSearchResultCount(List<String> searchTerms) throws org.apache.thrift.TException;/*** Returns a list of product notifications added after a supplied datetime** @param startDateTime*/public List<ProductNotificationRequest> getProductNotifications(long startDateTime) throws org.apache.thrift.TException;/*** Returns a list of count of requests for product notification against each item** @param startDateTime*/public List<ProductNotificationRequestCount> getProductNotificationRequestCount(long startDateTime) throws org.apache.thrift.TException;/*** This method adds a log to authorize table with Item Id, username who authorized the change, reason.** @param itemId* @param username* @param reason*/public boolean addAuthorizationLog(long itemId, String username, String reason) throws CatalogServiceException, org.apache.thrift.TException;public List<Long> getClearanceSaleCatalogIds() throws CatalogServiceException, org.apache.thrift.TException;public boolean addupdateVoucherForItem(long catalog_item_id, long voucherType, long voucherAmount) throws CatalogServiceException, org.apache.thrift.TException;public boolean deleteVoucherForItem(long catalog_item_id, long voucherType) throws CatalogServiceException, org.apache.thrift.TException;public long getVoucherAmount(long itemId, long voucherType) throws org.apache.thrift.TException;public List<VoucherItemMapping> getAllItemVouchers(long itemId) throws org.apache.thrift.TException;public boolean isValidCatalogItemId(long catalog_item_id) throws org.apache.thrift.TException;}public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;public void updateItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItem_call> resultHandler) throws org.apache.thrift.TException;public void isActive(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isActive_call> resultHandler) throws org.apache.thrift.TException;public void getItemStatusDescription(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemStatusDescription_call> resultHandler) throws org.apache.thrift.TException;public void startItemOn(long item_id, long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.startItemOn_call> resultHandler) throws org.apache.thrift.TException;public void retireItemOn(long item_id, long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.retireItemOn_call> resultHandler) throws org.apache.thrift.TException;public void changeItemStatus(long item_id, long timestamp, status newstatus, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeItemStatus_call> resultHandler) throws org.apache.thrift.TException;public void getItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItem_call> resultHandler) throws org.apache.thrift.TException;public void getItemsByCatalogId(long catalog_item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemsByCatalogId_call> resultHandler) throws org.apache.thrift.TException;public void getValidItemsByCatalogId(long catalog_item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getValidItemsByCatalogId_call> resultHandler) throws org.apache.thrift.TException;public void getAllItems(boolean isActive, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItems_call> resultHandler) throws org.apache.thrift.TException;public void getAllItemsByStatus(status itemStatus, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemsByStatus_call> resultHandler) throws org.apache.thrift.TException;public void markItemAsContentComplete(long entityId, long category, String brand, String modelName, String modelNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markItemAsContentComplete_call> resultHandler) throws org.apache.thrift.TException;public void getAllItemsInRange(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemsInRange_call> resultHandler) throws org.apache.thrift.TException;public void getAllItemsByStatusInRange(status itemStatus, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemsByStatusInRange_call> resultHandler) throws org.apache.thrift.TException;public void getItemCountByStatus(boolean useStatus, status itemStatus, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemCountByStatus_call> resultHandler) throws org.apache.thrift.TException;public void getBestSellers(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBestSellers_call> resultHandler) throws org.apache.thrift.TException;public void getBestSellersCatalogIds(long beginIndex, long totalItems, String brand, long category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBestSellersCatalogIds_call> resultHandler) throws org.apache.thrift.TException;public void getBestSellersCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBestSellersCount_call> resultHandler) throws org.apache.thrift.TException;public void getBestDeals(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBestDeals_call> resultHandler) throws org.apache.thrift.TException;public void getBestDealsCatalogIds(long beginIndex, long totalItems, String brand, long category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBestDealsCatalogIds_call> resultHandler) throws org.apache.thrift.TException;public void getBestDealsCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBestDealsCount_call> resultHandler) throws org.apache.thrift.TException;public void getComingSoon(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getComingSoon_call> resultHandler) throws org.apache.thrift.TException;public void getComingSoonCatalogIds(long beginIndex, long totalItems, String brand, long category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getComingSoonCatalogIds_call> resultHandler) throws org.apache.thrift.TException;public void getComingSoonCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getComingSoonCount_call> resultHandler) throws org.apache.thrift.TException;public void getLatestArrivals(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLatestArrivals_call> resultHandler) throws org.apache.thrift.TException;public void getLatestArrivalsCatalogIds(long beginIndex, long totalItems, String brand, List<Long> categories, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLatestArrivalsCatalogIds_call> resultHandler) throws org.apache.thrift.TException;public void getLatestArrivalsCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLatestArrivalsCount_call> resultHandler) throws org.apache.thrift.TException;public void generateNewEntityID(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.generateNewEntityID_call> resultHandler) throws org.apache.thrift.TException;public void addCategory(Category category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addCategory_call> resultHandler) throws org.apache.thrift.TException;public void getCategory(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCategory_call> resultHandler) throws org.apache.thrift.TException;public void getAllCategories(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllCategories_call> resultHandler) throws org.apache.thrift.TException;public void getAllSimilarItems(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllSimilarItems_call> resultHandler) throws org.apache.thrift.TException;public void addSimilarItem(long itemId, long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addSimilarItem_call> resultHandler) throws org.apache.thrift.TException;public void deleteSimilarItem(long itemId, long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteSimilarItem_call> resultHandler) throws org.apache.thrift.TException;public void checkSimilarItem(String brand, String modelNumber, String modelName, String color, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.checkSimilarItem_call> resultHandler) throws org.apache.thrift.TException;public void validateRiskyStatus(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateRiskyStatus_call> resultHandler) throws org.apache.thrift.TException;public void changeItemRiskyFlag(long itemId, boolean risky, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeItemRiskyFlag_call> resultHandler) throws org.apache.thrift.TException;public void getItemsByRiskyFlag(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemsByRiskyFlag_call> resultHandler) throws org.apache.thrift.TException;public void getItemsForMasterSheet(String category, String brand, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemsForMasterSheet_call> resultHandler) throws org.apache.thrift.TException;public void getSimilarItemsCatalogIds(long beginIndex, long totalItems, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSimilarItemsCatalogIds_call> resultHandler) throws org.apache.thrift.TException;public void addProductNotification(long itemId, String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addProductNotification_call> resultHandler) throws org.apache.thrift.TException;public void sendProductNotifications(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendProductNotifications_call> resultHandler) throws org.apache.thrift.TException;public void getAllBrandsByCategory(long categoryId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllBrandsByCategory_call> resultHandler) throws org.apache.thrift.TException;public void getAllBrands(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllBrands_call> resultHandler) throws org.apache.thrift.TException;public void getAllSources(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllSources_call> resultHandler) throws org.apache.thrift.TException;public void getItemPricingBySource(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemPricingBySource_call> resultHandler) throws org.apache.thrift.TException;public void addSourceItemPricing(SourceItemPricing sourceItemPricing, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addSourceItemPricing_call> resultHandler) throws org.apache.thrift.TException;public void getAllSourcePricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllSourcePricing_call> resultHandler) throws org.apache.thrift.TException;public void getItemForSource(long item_id, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemForSource_call> resultHandler) throws org.apache.thrift.TException;public void searchItemsInRange(List<String> searchTerms, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.searchItemsInRange_call> resultHandler) throws org.apache.thrift.TException;public void getSearchResultCount(List<String> searchTerms, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSearchResultCount_call> resultHandler) throws org.apache.thrift.TException;public void getProductNotifications(long startDateTime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProductNotifications_call> resultHandler) throws org.apache.thrift.TException;public void getProductNotificationRequestCount(long startDateTime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProductNotificationRequestCount_call> resultHandler) throws org.apache.thrift.TException;public void addAuthorizationLog(long itemId, String username, String reason, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAuthorizationLog_call> resultHandler) throws org.apache.thrift.TException;public void getClearanceSaleCatalogIds(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getClearanceSaleCatalogIds_call> resultHandler) throws org.apache.thrift.TException;public void addupdateVoucherForItem(long catalog_item_id, long voucherType, long voucherAmount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addupdateVoucherForItem_call> resultHandler) throws org.apache.thrift.TException;public void deleteVoucherForItem(long catalog_item_id, long voucherType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteVoucherForItem_call> resultHandler) throws org.apache.thrift.TException;public void getVoucherAmount(long itemId, long voucherType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVoucherAmount_call> resultHandler) throws org.apache.thrift.TException;public void getAllItemVouchers(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemVouchers_call> resultHandler) throws org.apache.thrift.TException;public void isValidCatalogItemId(long catalog_item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isValidCatalogItemId_call> resultHandler) throws org.apache.thrift.TException;}public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {public Factory() {}public Client getClient(org.apache.thrift.protocol.TProtocol prot) {return new Client(prot);}public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {return new Client(iprot, oprot);}}public Client(org.apache.thrift.protocol.TProtocol prot){super(prot, prot);}public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {super(iprot, oprot);}public long addItem(Item item) throws CatalogServiceException, org.apache.thrift.TException{send_addItem(item);return recv_addItem();}public void send_addItem(Item item) throws org.apache.thrift.TException{addItem_args args = new addItem_args();args.setItem(item);sendBase("addItem", args);}public long recv_addItem() throws CatalogServiceException, org.apache.thrift.TException{addItem_result result = new addItem_result();receiveBase(result, "addItem");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addItem failed: unknown result");}public long updateItem(Item item) throws CatalogServiceException, org.apache.thrift.TException{send_updateItem(item);return recv_updateItem();}public void send_updateItem(Item item) throws org.apache.thrift.TException{updateItem_args args = new updateItem_args();args.setItem(item);sendBase("updateItem", args);}public long recv_updateItem() throws CatalogServiceException, org.apache.thrift.TException{updateItem_result result = new updateItem_result();receiveBase(result, "updateItem");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");}public ItemShippingInfo isActive(long itemId) throws CatalogServiceException, org.apache.thrift.TException{send_isActive(itemId);return recv_isActive();}public void send_isActive(long itemId) throws org.apache.thrift.TException{isActive_args args = new isActive_args();args.setItemId(itemId);sendBase("isActive", args);}public ItemShippingInfo recv_isActive() throws CatalogServiceException, org.apache.thrift.TException{isActive_result result = new isActive_result();receiveBase(result, "isActive");if (result.isSetSuccess()) {return result.success;}if (result.isex != null) {throw result.isex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isActive failed: unknown result");}public String getItemStatusDescription(long itemId) throws CatalogServiceException, org.apache.thrift.TException{send_getItemStatusDescription(itemId);return recv_getItemStatusDescription();}public void send_getItemStatusDescription(long itemId) throws org.apache.thrift.TException{getItemStatusDescription_args args = new getItemStatusDescription_args();args.setItemId(itemId);sendBase("getItemStatusDescription", args);}public String recv_getItemStatusDescription() throws CatalogServiceException, org.apache.thrift.TException{getItemStatusDescription_result result = new getItemStatusDescription_result();receiveBase(result, "getItemStatusDescription");if (result.isSetSuccess()) {return result.success;}if (result.isex != null) {throw result.isex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");}public void startItemOn(long item_id, long timestamp) throws CatalogServiceException, org.apache.thrift.TException{send_startItemOn(item_id, timestamp);recv_startItemOn();}public void send_startItemOn(long item_id, long timestamp) throws org.apache.thrift.TException{startItemOn_args args = new startItemOn_args();args.setItem_id(item_id);args.setTimestamp(timestamp);sendBase("startItemOn", args);}public void recv_startItemOn() throws CatalogServiceException, org.apache.thrift.TException{startItemOn_result result = new startItemOn_result();receiveBase(result, "startItemOn");if (result.cex != null) {throw result.cex;}return;}public void retireItemOn(long item_id, long timestamp) throws CatalogServiceException, org.apache.thrift.TException{send_retireItemOn(item_id, timestamp);recv_retireItemOn();}public void send_retireItemOn(long item_id, long timestamp) throws org.apache.thrift.TException{retireItemOn_args args = new retireItemOn_args();args.setItem_id(item_id);args.setTimestamp(timestamp);sendBase("retireItemOn", args);}public void recv_retireItemOn() throws CatalogServiceException, org.apache.thrift.TException{retireItemOn_result result = new retireItemOn_result();receiveBase(result, "retireItemOn");if (result.cex != null) {throw result.cex;}return;}public void changeItemStatus(long item_id, long timestamp, status newstatus) throws CatalogServiceException, org.apache.thrift.TException{send_changeItemStatus(item_id, timestamp, newstatus);recv_changeItemStatus();}public void send_changeItemStatus(long item_id, long timestamp, status newstatus) throws org.apache.thrift.TException{changeItemStatus_args args = new changeItemStatus_args();args.setItem_id(item_id);args.setTimestamp(timestamp);args.setNewstatus(newstatus);sendBase("changeItemStatus", args);}public void recv_changeItemStatus() throws CatalogServiceException, org.apache.thrift.TException{changeItemStatus_result result = new changeItemStatus_result();receiveBase(result, "changeItemStatus");if (result.cex != null) {throw result.cex;}return;}public Item getItem(long item_id) throws CatalogServiceException, org.apache.thrift.TException{send_getItem(item_id);return recv_getItem();}public void send_getItem(long item_id) throws org.apache.thrift.TException{getItem_args args = new getItem_args();args.setItem_id(item_id);sendBase("getItem", args);}public Item recv_getItem() throws CatalogServiceException, org.apache.thrift.TException{getItem_result result = new getItem_result();receiveBase(result, "getItem");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItem failed: unknown result");}public List<Item> getItemsByCatalogId(long catalog_item_id) throws CatalogServiceException, org.apache.thrift.TException{send_getItemsByCatalogId(catalog_item_id);return recv_getItemsByCatalogId();}public void send_getItemsByCatalogId(long catalog_item_id) throws org.apache.thrift.TException{getItemsByCatalogId_args args = new getItemsByCatalogId_args();args.setCatalog_item_id(catalog_item_id);sendBase("getItemsByCatalogId", args);}public List<Item> recv_getItemsByCatalogId() throws CatalogServiceException, org.apache.thrift.TException{getItemsByCatalogId_result result = new getItemsByCatalogId_result();receiveBase(result, "getItemsByCatalogId");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemsByCatalogId failed: unknown result");}public List<Item> getValidItemsByCatalogId(long catalog_item_id) throws CatalogServiceException, org.apache.thrift.TException{send_getValidItemsByCatalogId(catalog_item_id);return recv_getValidItemsByCatalogId();}public void send_getValidItemsByCatalogId(long catalog_item_id) throws org.apache.thrift.TException{getValidItemsByCatalogId_args args = new getValidItemsByCatalogId_args();args.setCatalog_item_id(catalog_item_id);sendBase("getValidItemsByCatalogId", args);}public List<Item> recv_getValidItemsByCatalogId() throws CatalogServiceException, org.apache.thrift.TException{getValidItemsByCatalogId_result result = new getValidItemsByCatalogId_result();receiveBase(result, "getValidItemsByCatalogId");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");}public List<Item> getAllItems(boolean isActive) throws CatalogServiceException, org.apache.thrift.TException{send_getAllItems(isActive);return recv_getAllItems();}public void send_getAllItems(boolean isActive) throws org.apache.thrift.TException{getAllItems_args args = new getAllItems_args();args.setIsActive(isActive);sendBase("getAllItems", args);}public List<Item> recv_getAllItems() throws CatalogServiceException, org.apache.thrift.TException{getAllItems_result result = new getAllItems_result();receiveBase(result, "getAllItems");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");}public List<Item> getAllItemsByStatus(status itemStatus) throws CatalogServiceException, org.apache.thrift.TException{send_getAllItemsByStatus(itemStatus);return recv_getAllItemsByStatus();}public void send_getAllItemsByStatus(status itemStatus) throws org.apache.thrift.TException{getAllItemsByStatus_args args = new getAllItemsByStatus_args();args.setItemStatus(itemStatus);sendBase("getAllItemsByStatus", args);}public List<Item> recv_getAllItemsByStatus() throws CatalogServiceException, org.apache.thrift.TException{getAllItemsByStatus_result result = new getAllItemsByStatus_result();receiveBase(result, "getAllItemsByStatus");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");}public boolean markItemAsContentComplete(long entityId, long category, String brand, String modelName, String modelNumber) throws CatalogServiceException, org.apache.thrift.TException{send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber);return recv_markItemAsContentComplete();}public void send_markItemAsContentComplete(long entityId, long category, String brand, String modelName, String modelNumber) throws org.apache.thrift.TException{markItemAsContentComplete_args args = new markItemAsContentComplete_args();args.setEntityId(entityId);args.setCategory(category);args.setBrand(brand);args.setModelName(modelName);args.setModelNumber(modelNumber);sendBase("markItemAsContentComplete", args);}public boolean recv_markItemAsContentComplete() throws CatalogServiceException, org.apache.thrift.TException{markItemAsContentComplete_result result = new markItemAsContentComplete_result();receiveBase(result, "markItemAsContentComplete");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");}public List<Item> getAllItemsInRange(long offset, long limit) throws CatalogServiceException, org.apache.thrift.TException{send_getAllItemsInRange(offset, limit);return recv_getAllItemsInRange();}public void send_getAllItemsInRange(long offset, long limit) throws org.apache.thrift.TException{getAllItemsInRange_args args = new getAllItemsInRange_args();args.setOffset(offset);args.setLimit(limit);sendBase("getAllItemsInRange", args);}public List<Item> recv_getAllItemsInRange() throws CatalogServiceException, org.apache.thrift.TException{getAllItemsInRange_result result = new getAllItemsInRange_result();receiveBase(result, "getAllItemsInRange");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");}public List<Item> getAllItemsByStatusInRange(status itemStatus, long offset, long limit) throws CatalogServiceException, org.apache.thrift.TException{send_getAllItemsByStatusInRange(itemStatus, offset, limit);return recv_getAllItemsByStatusInRange();}public void send_getAllItemsByStatusInRange(status itemStatus, long offset, long limit) throws org.apache.thrift.TException{getAllItemsByStatusInRange_args args = new getAllItemsByStatusInRange_args();args.setItemStatus(itemStatus);args.setOffset(offset);args.setLimit(limit);sendBase("getAllItemsByStatusInRange", args);}public List<Item> recv_getAllItemsByStatusInRange() throws CatalogServiceException, org.apache.thrift.TException{getAllItemsByStatusInRange_result result = new getAllItemsByStatusInRange_result();receiveBase(result, "getAllItemsByStatusInRange");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");}public int getItemCountByStatus(boolean useStatus, status itemStatus) throws org.apache.thrift.TException{send_getItemCountByStatus(useStatus, itemStatus);return recv_getItemCountByStatus();}public void send_getItemCountByStatus(boolean useStatus, status itemStatus) throws org.apache.thrift.TException{getItemCountByStatus_args args = new getItemCountByStatus_args();args.setUseStatus(useStatus);args.setItemStatus(itemStatus);sendBase("getItemCountByStatus", args);}public int recv_getItemCountByStatus() throws org.apache.thrift.TException{getItemCountByStatus_result result = new getItemCountByStatus_result();receiveBase(result, "getItemCountByStatus");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");}public List<Item> getBestSellers() throws CatalogServiceException, org.apache.thrift.TException{send_getBestSellers();return recv_getBestSellers();}public void send_getBestSellers() throws org.apache.thrift.TException{getBestSellers_args args = new getBestSellers_args();sendBase("getBestSellers", args);}public List<Item> recv_getBestSellers() throws CatalogServiceException, org.apache.thrift.TException{getBestSellers_result result = new getBestSellers_result();receiveBase(result, "getBestSellers");if (result.isSetSuccess()) {return result.success;}if (result.isex != null) {throw result.isex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");}public List<Long> getBestSellersCatalogIds(long beginIndex, long totalItems, String brand, long category) throws CatalogServiceException, org.apache.thrift.TException{send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category);return recv_getBestSellersCatalogIds();}public void send_getBestSellersCatalogIds(long beginIndex, long totalItems, String brand, long category) throws org.apache.thrift.TException{getBestSellersCatalogIds_args args = new getBestSellersCatalogIds_args();args.setBeginIndex(beginIndex);args.setTotalItems(totalItems);args.setBrand(brand);args.setCategory(category);sendBase("getBestSellersCatalogIds", args);}public List<Long> recv_getBestSellersCatalogIds() throws CatalogServiceException, org.apache.thrift.TException{getBestSellersCatalogIds_result result = new getBestSellersCatalogIds_result();receiveBase(result, "getBestSellersCatalogIds");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");}public long getBestSellersCount() throws CatalogServiceException, org.apache.thrift.TException{send_getBestSellersCount();return recv_getBestSellersCount();}public void send_getBestSellersCount() throws org.apache.thrift.TException{getBestSellersCount_args args = new getBestSellersCount_args();sendBase("getBestSellersCount", args);}public long recv_getBestSellersCount() throws CatalogServiceException, org.apache.thrift.TException{getBestSellersCount_result result = new getBestSellersCount_result();receiveBase(result, "getBestSellersCount");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");}public List<Item> getBestDeals() throws CatalogServiceException, org.apache.thrift.TException{send_getBestDeals();return recv_getBestDeals();}public void send_getBestDeals() throws org.apache.thrift.TException{getBestDeals_args args = new getBestDeals_args();sendBase("getBestDeals", args);}public List<Item> recv_getBestDeals() throws CatalogServiceException, org.apache.thrift.TException{getBestDeals_result result = new getBestDeals_result();receiveBase(result, "getBestDeals");if (result.isSetSuccess()) {return result.success;}if (result.isex != null) {throw result.isex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");}public List<Long> getBestDealsCatalogIds(long beginIndex, long totalItems, String brand, long category) throws CatalogServiceException, org.apache.thrift.TException{send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category);return recv_getBestDealsCatalogIds();}public void send_getBestDealsCatalogIds(long beginIndex, long totalItems, String brand, long category) throws org.apache.thrift.TException{getBestDealsCatalogIds_args args = new getBestDealsCatalogIds_args();args.setBeginIndex(beginIndex);args.setTotalItems(totalItems);args.setBrand(brand);args.setCategory(category);sendBase("getBestDealsCatalogIds", args);}public List<Long> recv_getBestDealsCatalogIds() throws CatalogServiceException, org.apache.thrift.TException{getBestDealsCatalogIds_result result = new getBestDealsCatalogIds_result();receiveBase(result, "getBestDealsCatalogIds");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");}public long getBestDealsCount() throws CatalogServiceException, org.apache.thrift.TException{send_getBestDealsCount();return recv_getBestDealsCount();}public void send_getBestDealsCount() throws org.apache.thrift.TException{getBestDealsCount_args args = new getBestDealsCount_args();sendBase("getBestDealsCount", args);}public long recv_getBestDealsCount() throws CatalogServiceException, org.apache.thrift.TException{getBestDealsCount_result result = new getBestDealsCount_result();receiveBase(result, "getBestDealsCount");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");}public List<Item> getComingSoon() throws CatalogServiceException, org.apache.thrift.TException{send_getComingSoon();return recv_getComingSoon();}public void send_getComingSoon() throws org.apache.thrift.TException{getComingSoon_args args = new getComingSoon_args();sendBase("getComingSoon", args);}public List<Item> recv_getComingSoon() throws CatalogServiceException, org.apache.thrift.TException{getComingSoon_result result = new getComingSoon_result();receiveBase(result, "getComingSoon");if (result.isSetSuccess()) {return result.success;}if (result.isex != null) {throw result.isex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");}public List<Long> getComingSoonCatalogIds(long beginIndex, long totalItems, String brand, long category) throws CatalogServiceException, org.apache.thrift.TException{send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category);return recv_getComingSoonCatalogIds();}public void send_getComingSoonCatalogIds(long beginIndex, long totalItems, String brand, long category) throws org.apache.thrift.TException{getComingSoonCatalogIds_args args = new getComingSoonCatalogIds_args();args.setBeginIndex(beginIndex);args.setTotalItems(totalItems);args.setBrand(brand);args.setCategory(category);sendBase("getComingSoonCatalogIds", args);}public List<Long> recv_getComingSoonCatalogIds() throws CatalogServiceException, org.apache.thrift.TException{getComingSoonCatalogIds_result result = new getComingSoonCatalogIds_result();receiveBase(result, "getComingSoonCatalogIds");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");}public long getComingSoonCount() throws CatalogServiceException, org.apache.thrift.TException{send_getComingSoonCount();return recv_getComingSoonCount();}public void send_getComingSoonCount() throws org.apache.thrift.TException{getComingSoonCount_args args = new getComingSoonCount_args();sendBase("getComingSoonCount", args);}public long recv_getComingSoonCount() throws CatalogServiceException, org.apache.thrift.TException{getComingSoonCount_result result = new getComingSoonCount_result();receiveBase(result, "getComingSoonCount");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");}public List<Item> getLatestArrivals() throws CatalogServiceException, org.apache.thrift.TException{send_getLatestArrivals();return recv_getLatestArrivals();}public void send_getLatestArrivals() throws org.apache.thrift.TException{getLatestArrivals_args args = new getLatestArrivals_args();sendBase("getLatestArrivals", args);}public List<Item> recv_getLatestArrivals() throws CatalogServiceException, org.apache.thrift.TException{getLatestArrivals_result result = new getLatestArrivals_result();receiveBase(result, "getLatestArrivals");if (result.isSetSuccess()) {return result.success;}if (result.isex != null) {throw result.isex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");}public List<Long> getLatestArrivalsCatalogIds(long beginIndex, long totalItems, String brand, List<Long> categories) throws CatalogServiceException, org.apache.thrift.TException{send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories);return recv_getLatestArrivalsCatalogIds();}public void send_getLatestArrivalsCatalogIds(long beginIndex, long totalItems, String brand, List<Long> categories) throws org.apache.thrift.TException{getLatestArrivalsCatalogIds_args args = new getLatestArrivalsCatalogIds_args();args.setBeginIndex(beginIndex);args.setTotalItems(totalItems);args.setBrand(brand);args.setCategories(categories);sendBase("getLatestArrivalsCatalogIds", args);}public List<Long> recv_getLatestArrivalsCatalogIds() throws CatalogServiceException, org.apache.thrift.TException{getLatestArrivalsCatalogIds_result result = new getLatestArrivalsCatalogIds_result();receiveBase(result, "getLatestArrivalsCatalogIds");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");}public long getLatestArrivalsCount() throws CatalogServiceException, org.apache.thrift.TException{send_getLatestArrivalsCount();return recv_getLatestArrivalsCount();}public void send_getLatestArrivalsCount() throws org.apache.thrift.TException{getLatestArrivalsCount_args args = new getLatestArrivalsCount_args();sendBase("getLatestArrivalsCount", args);}public long recv_getLatestArrivalsCount() throws CatalogServiceException, org.apache.thrift.TException{getLatestArrivalsCount_result result = new getLatestArrivalsCount_result();receiveBase(result, "getLatestArrivalsCount");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");}public long generateNewEntityID() throws org.apache.thrift.TException{send_generateNewEntityID();return recv_generateNewEntityID();}public void send_generateNewEntityID() throws org.apache.thrift.TException{generateNewEntityID_args args = new generateNewEntityID_args();sendBase("generateNewEntityID", args);}public long recv_generateNewEntityID() throws org.apache.thrift.TException{generateNewEntityID_result result = new generateNewEntityID_result();receiveBase(result, "generateNewEntityID");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");}public boolean addCategory(Category category) throws org.apache.thrift.TException{send_addCategory(category);return recv_addCategory();}public void send_addCategory(Category category) throws org.apache.thrift.TException{addCategory_args args = new addCategory_args();args.setCategory(category);sendBase("addCategory", args);}public boolean recv_addCategory() throws org.apache.thrift.TException{addCategory_result result = new addCategory_result();receiveBase(result, "addCategory");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");}public Category getCategory(long id) throws org.apache.thrift.TException{send_getCategory(id);return recv_getCategory();}public void send_getCategory(long id) throws org.apache.thrift.TException{getCategory_args args = new getCategory_args();args.setId(id);sendBase("getCategory", args);}public Category recv_getCategory() throws org.apache.thrift.TException{getCategory_result result = new getCategory_result();receiveBase(result, "getCategory");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");}public List<Category> getAllCategories() throws org.apache.thrift.TException{send_getAllCategories();return recv_getAllCategories();}public void send_getAllCategories() throws org.apache.thrift.TException{getAllCategories_args args = new getAllCategories_args();sendBase("getAllCategories", args);}public List<Category> recv_getAllCategories() throws org.apache.thrift.TException{getAllCategories_result result = new getAllCategories_result();receiveBase(result, "getAllCategories");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");}public List<Item> getAllSimilarItems(long itemId) throws org.apache.thrift.TException{send_getAllSimilarItems(itemId);return recv_getAllSimilarItems();}public void send_getAllSimilarItems(long itemId) throws org.apache.thrift.TException{getAllSimilarItems_args args = new getAllSimilarItems_args();args.setItemId(itemId);sendBase("getAllSimilarItems", args);}public List<Item> recv_getAllSimilarItems() throws org.apache.thrift.TException{getAllSimilarItems_result result = new getAllSimilarItems_result();receiveBase(result, "getAllSimilarItems");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");}public Item addSimilarItem(long itemId, long catalogItemId) throws CatalogServiceException, org.apache.thrift.TException{send_addSimilarItem(itemId, catalogItemId);return recv_addSimilarItem();}public void send_addSimilarItem(long itemId, long catalogItemId) throws org.apache.thrift.TException{addSimilarItem_args args = new addSimilarItem_args();args.setItemId(itemId);args.setCatalogItemId(catalogItemId);sendBase("addSimilarItem", args);}public Item recv_addSimilarItem() throws CatalogServiceException, org.apache.thrift.TException{addSimilarItem_result result = new addSimilarItem_result();receiveBase(result, "addSimilarItem");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");}public boolean deleteSimilarItem(long itemId, long catalogItemId) throws CatalogServiceException, org.apache.thrift.TException{send_deleteSimilarItem(itemId, catalogItemId);return recv_deleteSimilarItem();}public void send_deleteSimilarItem(long itemId, long catalogItemId) throws org.apache.thrift.TException{deleteSimilarItem_args args = new deleteSimilarItem_args();args.setItemId(itemId);args.setCatalogItemId(catalogItemId);sendBase("deleteSimilarItem", args);}public boolean recv_deleteSimilarItem() throws CatalogServiceException, org.apache.thrift.TException{deleteSimilarItem_result result = new deleteSimilarItem_result();receiveBase(result, "deleteSimilarItem");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");}public long checkSimilarItem(String brand, String modelNumber, String modelName, String color) throws org.apache.thrift.TException{send_checkSimilarItem(brand, modelNumber, modelName, color);return recv_checkSimilarItem();}public void send_checkSimilarItem(String brand, String modelNumber, String modelName, String color) throws org.apache.thrift.TException{checkSimilarItem_args args = new checkSimilarItem_args();args.setBrand(brand);args.setModelNumber(modelNumber);args.setModelName(modelName);args.setColor(color);sendBase("checkSimilarItem", args);}public long recv_checkSimilarItem() throws org.apache.thrift.TException{checkSimilarItem_result result = new checkSimilarItem_result();receiveBase(result, "checkSimilarItem");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");}public void validateRiskyStatus(long itemId) throws org.apache.thrift.TException{send_validateRiskyStatus(itemId);recv_validateRiskyStatus();}public void send_validateRiskyStatus(long itemId) throws org.apache.thrift.TException{validateRiskyStatus_args args = new validateRiskyStatus_args();args.setItemId(itemId);sendBase("validateRiskyStatus", args);}public void recv_validateRiskyStatus() throws org.apache.thrift.TException{validateRiskyStatus_result result = new validateRiskyStatus_result();receiveBase(result, "validateRiskyStatus");return;}public void changeItemRiskyFlag(long itemId, boolean risky) throws org.apache.thrift.TException{send_changeItemRiskyFlag(itemId, risky);recv_changeItemRiskyFlag();}public void send_changeItemRiskyFlag(long itemId, boolean risky) throws org.apache.thrift.TException{changeItemRiskyFlag_args args = new changeItemRiskyFlag_args();args.setItemId(itemId);args.setRisky(risky);sendBase("changeItemRiskyFlag", args);}public void recv_changeItemRiskyFlag() throws org.apache.thrift.TException{changeItemRiskyFlag_result result = new changeItemRiskyFlag_result();receiveBase(result, "changeItemRiskyFlag");return;}public List<Item> getItemsByRiskyFlag() throws org.apache.thrift.TException{send_getItemsByRiskyFlag();return recv_getItemsByRiskyFlag();}public void send_getItemsByRiskyFlag() throws org.apache.thrift.TException{getItemsByRiskyFlag_args args = new getItemsByRiskyFlag_args();sendBase("getItemsByRiskyFlag", args);}public List<Item> recv_getItemsByRiskyFlag() throws org.apache.thrift.TException{getItemsByRiskyFlag_result result = new getItemsByRiskyFlag_result();receiveBase(result, "getItemsByRiskyFlag");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");}public List<Item> getItemsForMasterSheet(String category, String brand) throws org.apache.thrift.TException{send_getItemsForMasterSheet(category, brand);return recv_getItemsForMasterSheet();}public void send_getItemsForMasterSheet(String category, String brand) throws org.apache.thrift.TException{getItemsForMasterSheet_args args = new getItemsForMasterSheet_args();args.setCategory(category);args.setBrand(brand);sendBase("getItemsForMasterSheet", args);}public List<Item> recv_getItemsForMasterSheet() throws org.apache.thrift.TException{getItemsForMasterSheet_result result = new getItemsForMasterSheet_result();receiveBase(result, "getItemsForMasterSheet");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemsForMasterSheet failed: unknown result");}public List<Long> getSimilarItemsCatalogIds(long beginIndex, long totalItems, long itemId) throws org.apache.thrift.TException{send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId);return recv_getSimilarItemsCatalogIds();}public void send_getSimilarItemsCatalogIds(long beginIndex, long totalItems, long itemId) throws org.apache.thrift.TException{getSimilarItemsCatalogIds_args args = new getSimilarItemsCatalogIds_args();args.setBeginIndex(beginIndex);args.setTotalItems(totalItems);args.setItemId(itemId);sendBase("getSimilarItemsCatalogIds", args);}public List<Long> recv_getSimilarItemsCatalogIds() throws org.apache.thrift.TException{getSimilarItemsCatalogIds_result result = new getSimilarItemsCatalogIds_result();receiveBase(result, "getSimilarItemsCatalogIds");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSimilarItemsCatalogIds failed: unknown result");}public boolean addProductNotification(long itemId, String email) throws org.apache.thrift.TException{send_addProductNotification(itemId, email);return recv_addProductNotification();}public void send_addProductNotification(long itemId, String email) throws org.apache.thrift.TException{addProductNotification_args args = new addProductNotification_args();args.setItemId(itemId);args.setEmail(email);sendBase("addProductNotification", args);}public boolean recv_addProductNotification() throws org.apache.thrift.TException{addProductNotification_result result = new addProductNotification_result();receiveBase(result, "addProductNotification");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");}public boolean sendProductNotifications() throws org.apache.thrift.TException{send_sendProductNotifications();return recv_sendProductNotifications();}public void send_sendProductNotifications() throws org.apache.thrift.TException{sendProductNotifications_args args = new sendProductNotifications_args();sendBase("sendProductNotifications", args);}public boolean recv_sendProductNotifications() throws org.apache.thrift.TException{sendProductNotifications_result result = new sendProductNotifications_result();receiveBase(result, "sendProductNotifications");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");}public List<String> getAllBrandsByCategory(long categoryId) throws org.apache.thrift.TException{send_getAllBrandsByCategory(categoryId);return recv_getAllBrandsByCategory();}public void send_getAllBrandsByCategory(long categoryId) throws org.apache.thrift.TException{getAllBrandsByCategory_args args = new getAllBrandsByCategory_args();args.setCategoryId(categoryId);sendBase("getAllBrandsByCategory", args);}public List<String> recv_getAllBrandsByCategory() throws org.apache.thrift.TException{getAllBrandsByCategory_result result = new getAllBrandsByCategory_result();receiveBase(result, "getAllBrandsByCategory");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");}public List<String> getAllBrands() throws org.apache.thrift.TException{send_getAllBrands();return recv_getAllBrands();}public void send_getAllBrands() throws org.apache.thrift.TException{getAllBrands_args args = new getAllBrands_args();sendBase("getAllBrands", args);}public List<String> recv_getAllBrands() throws org.apache.thrift.TException{getAllBrands_result result = new getAllBrands_result();receiveBase(result, "getAllBrands");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");}public List<Source> getAllSources() throws org.apache.thrift.TException{send_getAllSources();return recv_getAllSources();}public void send_getAllSources() throws org.apache.thrift.TException{getAllSources_args args = new getAllSources_args();sendBase("getAllSources", args);}public List<Source> recv_getAllSources() throws org.apache.thrift.TException{getAllSources_result result = new getAllSources_result();receiveBase(result, "getAllSources");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");}public SourceItemPricing getItemPricingBySource(long itemId, long sourceId) throws CatalogServiceException, org.apache.thrift.TException{send_getItemPricingBySource(itemId, sourceId);return recv_getItemPricingBySource();}public void send_getItemPricingBySource(long itemId, long sourceId) throws org.apache.thrift.TException{getItemPricingBySource_args args = new getItemPricingBySource_args();args.setItemId(itemId);args.setSourceId(sourceId);sendBase("getItemPricingBySource", args);}public SourceItemPricing recv_getItemPricingBySource() throws CatalogServiceException, org.apache.thrift.TException{getItemPricingBySource_result result = new getItemPricingBySource_result();receiveBase(result, "getItemPricingBySource");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");}public void addSourceItemPricing(SourceItemPricing sourceItemPricing) throws CatalogServiceException, org.apache.thrift.TException{send_addSourceItemPricing(sourceItemPricing);recv_addSourceItemPricing();}public void send_addSourceItemPricing(SourceItemPricing sourceItemPricing) throws org.apache.thrift.TException{addSourceItemPricing_args args = new addSourceItemPricing_args();args.setSourceItemPricing(sourceItemPricing);sendBase("addSourceItemPricing", args);}public void recv_addSourceItemPricing() throws CatalogServiceException, org.apache.thrift.TException{addSourceItemPricing_result result = new addSourceItemPricing_result();receiveBase(result, "addSourceItemPricing");if (result.cex != null) {throw result.cex;}return;}public List<SourceItemPricing> getAllSourcePricing(long itemId) throws CatalogServiceException, org.apache.thrift.TException{send_getAllSourcePricing(itemId);return recv_getAllSourcePricing();}public void send_getAllSourcePricing(long itemId) throws org.apache.thrift.TException{getAllSourcePricing_args args = new getAllSourcePricing_args();args.setItemId(itemId);sendBase("getAllSourcePricing", args);}public List<SourceItemPricing> recv_getAllSourcePricing() throws CatalogServiceException, org.apache.thrift.TException{getAllSourcePricing_result result = new getAllSourcePricing_result();receiveBase(result, "getAllSourcePricing");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");}public Item getItemForSource(long item_id, long sourceId) throws CatalogServiceException, org.apache.thrift.TException{send_getItemForSource(item_id, sourceId);return recv_getItemForSource();}public void send_getItemForSource(long item_id, long sourceId) throws org.apache.thrift.TException{getItemForSource_args args = new getItemForSource_args();args.setItem_id(item_id);args.setSourceId(sourceId);sendBase("getItemForSource", args);}public Item recv_getItemForSource() throws CatalogServiceException, org.apache.thrift.TException{getItemForSource_result result = new getItemForSource_result();receiveBase(result, "getItemForSource");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");}public List<Item> searchItemsInRange(List<String> searchTerms, long offset, long limit) throws org.apache.thrift.TException{send_searchItemsInRange(searchTerms, offset, limit);return recv_searchItemsInRange();}public void send_searchItemsInRange(List<String> searchTerms, long offset, long limit) throws org.apache.thrift.TException{searchItemsInRange_args args = new searchItemsInRange_args();args.setSearchTerms(searchTerms);args.setOffset(offset);args.setLimit(limit);sendBase("searchItemsInRange", args);}public List<Item> recv_searchItemsInRange() throws org.apache.thrift.TException{searchItemsInRange_result result = new searchItemsInRange_result();receiveBase(result, "searchItemsInRange");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchItemsInRange failed: unknown result");}public int getSearchResultCount(List<String> searchTerms) throws org.apache.thrift.TException{send_getSearchResultCount(searchTerms);return recv_getSearchResultCount();}public void send_getSearchResultCount(List<String> searchTerms) throws org.apache.thrift.TException{getSearchResultCount_args args = new getSearchResultCount_args();args.setSearchTerms(searchTerms);sendBase("getSearchResultCount", args);}public int recv_getSearchResultCount() throws org.apache.thrift.TException{getSearchResultCount_result result = new getSearchResultCount_result();receiveBase(result, "getSearchResultCount");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSearchResultCount failed: unknown result");}public List<ProductNotificationRequest> getProductNotifications(long startDateTime) throws org.apache.thrift.TException{send_getProductNotifications(startDateTime);return recv_getProductNotifications();}public void send_getProductNotifications(long startDateTime) throws org.apache.thrift.TException{getProductNotifications_args args = new getProductNotifications_args();args.setStartDateTime(startDateTime);sendBase("getProductNotifications", args);}public List<ProductNotificationRequest> recv_getProductNotifications() throws org.apache.thrift.TException{getProductNotifications_result result = new getProductNotifications_result();receiveBase(result, "getProductNotifications");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");}public List<ProductNotificationRequestCount> getProductNotificationRequestCount(long startDateTime) throws org.apache.thrift.TException{send_getProductNotificationRequestCount(startDateTime);return recv_getProductNotificationRequestCount();}public void send_getProductNotificationRequestCount(long startDateTime) throws org.apache.thrift.TException{getProductNotificationRequestCount_args args = new getProductNotificationRequestCount_args();args.setStartDateTime(startDateTime);sendBase("getProductNotificationRequestCount", args);}public List<ProductNotificationRequestCount> recv_getProductNotificationRequestCount() throws org.apache.thrift.TException{getProductNotificationRequestCount_result result = new getProductNotificationRequestCount_result();receiveBase(result, "getProductNotificationRequestCount");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");}public boolean addAuthorizationLog(long itemId, String username, String reason) throws CatalogServiceException, org.apache.thrift.TException{send_addAuthorizationLog(itemId, username, reason);return recv_addAuthorizationLog();}public void send_addAuthorizationLog(long itemId, String username, String reason) throws org.apache.thrift.TException{addAuthorizationLog_args args = new addAuthorizationLog_args();args.setItemId(itemId);args.setUsername(username);args.setReason(reason);sendBase("addAuthorizationLog", args);}public boolean recv_addAuthorizationLog() throws CatalogServiceException, org.apache.thrift.TException{addAuthorizationLog_result result = new addAuthorizationLog_result();receiveBase(result, "addAuthorizationLog");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");}public List<Long> getClearanceSaleCatalogIds() throws CatalogServiceException, org.apache.thrift.TException{send_getClearanceSaleCatalogIds();return recv_getClearanceSaleCatalogIds();}public void send_getClearanceSaleCatalogIds() throws org.apache.thrift.TException{getClearanceSaleCatalogIds_args args = new getClearanceSaleCatalogIds_args();sendBase("getClearanceSaleCatalogIds", args);}public List<Long> recv_getClearanceSaleCatalogIds() throws CatalogServiceException, org.apache.thrift.TException{getClearanceSaleCatalogIds_result result = new getClearanceSaleCatalogIds_result();receiveBase(result, "getClearanceSaleCatalogIds");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getClearanceSaleCatalogIds failed: unknown result");}public boolean addupdateVoucherForItem(long catalog_item_id, long voucherType, long voucherAmount) throws CatalogServiceException, org.apache.thrift.TException{send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount);return recv_addupdateVoucherForItem();}public void send_addupdateVoucherForItem(long catalog_item_id, long voucherType, long voucherAmount) throws org.apache.thrift.TException{addupdateVoucherForItem_args args = new addupdateVoucherForItem_args();args.setCatalog_item_id(catalog_item_id);args.setVoucherType(voucherType);args.setVoucherAmount(voucherAmount);sendBase("addupdateVoucherForItem", args);}public boolean recv_addupdateVoucherForItem() throws CatalogServiceException, org.apache.thrift.TException{addupdateVoucherForItem_result result = new addupdateVoucherForItem_result();receiveBase(result, "addupdateVoucherForItem");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");}public boolean deleteVoucherForItem(long catalog_item_id, long voucherType) throws CatalogServiceException, org.apache.thrift.TException{send_deleteVoucherForItem(catalog_item_id, voucherType);return recv_deleteVoucherForItem();}public void send_deleteVoucherForItem(long catalog_item_id, long voucherType) throws org.apache.thrift.TException{deleteVoucherForItem_args args = new deleteVoucherForItem_args();args.setCatalog_item_id(catalog_item_id);args.setVoucherType(voucherType);sendBase("deleteVoucherForItem", args);}public boolean recv_deleteVoucherForItem() throws CatalogServiceException, org.apache.thrift.TException{deleteVoucherForItem_result result = new deleteVoucherForItem_result();receiveBase(result, "deleteVoucherForItem");if (result.isSetSuccess()) {return result.success;}if (result.cex != null) {throw result.cex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");}public long getVoucherAmount(long itemId, long voucherType) throws org.apache.thrift.TException{send_getVoucherAmount(itemId, voucherType);return recv_getVoucherAmount();}public void send_getVoucherAmount(long itemId, long voucherType) throws org.apache.thrift.TException{getVoucherAmount_args args = new getVoucherAmount_args();args.setItemId(itemId);args.setVoucherType(voucherType);sendBase("getVoucherAmount", args);}public long recv_getVoucherAmount() throws org.apache.thrift.TException{getVoucherAmount_result result = new getVoucherAmount_result();receiveBase(result, "getVoucherAmount");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");}public List<VoucherItemMapping> getAllItemVouchers(long itemId) throws org.apache.thrift.TException{send_getAllItemVouchers(itemId);return recv_getAllItemVouchers();}public void send_getAllItemVouchers(long itemId) throws org.apache.thrift.TException{getAllItemVouchers_args args = new getAllItemVouchers_args();args.setItemId(itemId);sendBase("getAllItemVouchers", args);}public List<VoucherItemMapping> recv_getAllItemVouchers() throws org.apache.thrift.TException{getAllItemVouchers_result result = new getAllItemVouchers_result();receiveBase(result, "getAllItemVouchers");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");}public boolean isValidCatalogItemId(long catalog_item_id) throws org.apache.thrift.TException{send_isValidCatalogItemId(catalog_item_id);return recv_isValidCatalogItemId();}public void send_isValidCatalogItemId(long catalog_item_id) throws org.apache.thrift.TException{isValidCatalogItemId_args args = new isValidCatalogItemId_args();args.setCatalog_item_id(catalog_item_id);sendBase("isValidCatalogItemId", args);}public boolean recv_isValidCatalogItemId() throws org.apache.thrift.TException{isValidCatalogItemId_result result = new isValidCatalogItemId_result();receiveBase(result, "isValidCatalogItemId");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");}}public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {private org.apache.thrift.async.TAsyncClientManager clientManager;private org.apache.thrift.protocol.TProtocolFactory protocolFactory;public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {this.clientManager = clientManager;this.protocolFactory = protocolFactory;}public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {return new AsyncClient(protocolFactory, clientManager, transport);}}public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {super(protocolFactory, clientManager, transport);}public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<addItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();addItem_call method_call = new addItem_call(item, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addItem_call extends org.apache.thrift.async.TAsyncMethodCall {private Item item;public addItem_call(Item item, org.apache.thrift.async.AsyncMethodCallback<addItem_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 {super(client, protocolFactory, transport, resultHandler, false);this.item = item;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addItem", org.apache.thrift.protocol.TMessageType.CALL, 0));addItem_args args = new addItem_args();args.setItem(item);args.write(prot);prot.writeMessageEnd();}public long getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_addItem();}}public void updateItem(Item item, org.apache.thrift.async.AsyncMethodCallback<updateItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateItem_call method_call = new updateItem_call(item, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateItem_call extends org.apache.thrift.async.TAsyncMethodCall {private Item item;public updateItem_call(Item item, org.apache.thrift.async.AsyncMethodCallback<updateItem_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 {super(client, protocolFactory, transport, resultHandler, false);this.item = item;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateItem", org.apache.thrift.protocol.TMessageType.CALL, 0));updateItem_args args = new updateItem_args();args.setItem(item);args.write(prot);prot.writeMessageEnd();}public long getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_updateItem();}}public void isActive(long itemId, org.apache.thrift.async.AsyncMethodCallback<isActive_call> resultHandler) throws org.apache.thrift.TException {checkReady();isActive_call method_call = new isActive_call(itemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class isActive_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;public isActive_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<isActive_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 {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isActive", org.apache.thrift.protocol.TMessageType.CALL, 0));isActive_args args = new isActive_args();args.setItemId(itemId);args.write(prot);prot.writeMessageEnd();}public ItemShippingInfo getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_isActive();}}public void getItemStatusDescription(long itemId, org.apache.thrift.async.AsyncMethodCallback<getItemStatusDescription_call> resultHandler) throws org.apache.thrift.TException {checkReady();getItemStatusDescription_call method_call = new getItemStatusDescription_call(itemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getItemStatusDescription_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;public getItemStatusDescription_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<getItemStatusDescription_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 {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemStatusDescription", org.apache.thrift.protocol.TMessageType.CALL, 0));getItemStatusDescription_args args = new getItemStatusDescription_args();args.setItemId(itemId);args.write(prot);prot.writeMessageEnd();}public String getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getItemStatusDescription();}}public void startItemOn(long item_id, long timestamp, org.apache.thrift.async.AsyncMethodCallback<startItemOn_call> resultHandler) throws org.apache.thrift.TException {checkReady();startItemOn_call method_call = new startItemOn_call(item_id, timestamp, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class startItemOn_call extends org.apache.thrift.async.TAsyncMethodCall {private long item_id;private long timestamp;public startItemOn_call(long item_id, long timestamp, org.apache.thrift.async.AsyncMethodCallback<startItemOn_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 {super(client, protocolFactory, transport, resultHandler, false);this.item_id = item_id;this.timestamp = timestamp;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("startItemOn", org.apache.thrift.protocol.TMessageType.CALL, 0));startItemOn_args args = new startItemOn_args();args.setItem_id(item_id);args.setTimestamp(timestamp);args.write(prot);prot.writeMessageEnd();}public void getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_startItemOn();}}public void retireItemOn(long item_id, long timestamp, org.apache.thrift.async.AsyncMethodCallback<retireItemOn_call> resultHandler) throws org.apache.thrift.TException {checkReady();retireItemOn_call method_call = new retireItemOn_call(item_id, timestamp, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class retireItemOn_call extends org.apache.thrift.async.TAsyncMethodCall {private long item_id;private long timestamp;public retireItemOn_call(long item_id, long timestamp, org.apache.thrift.async.AsyncMethodCallback<retireItemOn_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 {super(client, protocolFactory, transport, resultHandler, false);this.item_id = item_id;this.timestamp = timestamp;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("retireItemOn", org.apache.thrift.protocol.TMessageType.CALL, 0));retireItemOn_args args = new retireItemOn_args();args.setItem_id(item_id);args.setTimestamp(timestamp);args.write(prot);prot.writeMessageEnd();}public void getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_retireItemOn();}}public void changeItemStatus(long item_id, long timestamp, status newstatus, org.apache.thrift.async.AsyncMethodCallback<changeItemStatus_call> resultHandler) throws org.apache.thrift.TException {checkReady();changeItemStatus_call method_call = new changeItemStatus_call(item_id, timestamp, newstatus, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class changeItemStatus_call extends org.apache.thrift.async.TAsyncMethodCall {private long item_id;private long timestamp;private status newstatus;public changeItemStatus_call(long item_id, long timestamp, status newstatus, org.apache.thrift.async.AsyncMethodCallback<changeItemStatus_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 {super(client, protocolFactory, transport, resultHandler, false);this.item_id = item_id;this.timestamp = timestamp;this.newstatus = newstatus;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeItemStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));changeItemStatus_args args = new changeItemStatus_args();args.setItem_id(item_id);args.setTimestamp(timestamp);args.setNewstatus(newstatus);args.write(prot);prot.writeMessageEnd();}public void getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_changeItemStatus();}}public void getItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<getItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();getItem_call method_call = new getItem_call(item_id, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getItem_call extends org.apache.thrift.async.TAsyncMethodCall {private long item_id;public getItem_call(long item_id, org.apache.thrift.async.AsyncMethodCallback<getItem_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 {super(client, protocolFactory, transport, resultHandler, false);this.item_id = item_id;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItem", org.apache.thrift.protocol.TMessageType.CALL, 0));getItem_args args = new getItem_args();args.setItem_id(item_id);args.write(prot);prot.writeMessageEnd();}public Item getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getItem();}}public void getItemsByCatalogId(long catalog_item_id, org.apache.thrift.async.AsyncMethodCallback<getItemsByCatalogId_call> resultHandler) throws org.apache.thrift.TException {checkReady();getItemsByCatalogId_call method_call = new getItemsByCatalogId_call(catalog_item_id, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getItemsByCatalogId_call extends org.apache.thrift.async.TAsyncMethodCall {private long catalog_item_id;public getItemsByCatalogId_call(long catalog_item_id, org.apache.thrift.async.AsyncMethodCallback<getItemsByCatalogId_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 {super(client, protocolFactory, transport, resultHandler, false);this.catalog_item_id = catalog_item_id;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemsByCatalogId", org.apache.thrift.protocol.TMessageType.CALL, 0));getItemsByCatalogId_args args = new getItemsByCatalogId_args();args.setCatalog_item_id(catalog_item_id);args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getItemsByCatalogId();}}public void getValidItemsByCatalogId(long catalog_item_id, org.apache.thrift.async.AsyncMethodCallback<getValidItemsByCatalogId_call> resultHandler) throws org.apache.thrift.TException {checkReady();getValidItemsByCatalogId_call method_call = new getValidItemsByCatalogId_call(catalog_item_id, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getValidItemsByCatalogId_call extends org.apache.thrift.async.TAsyncMethodCall {private long catalog_item_id;public getValidItemsByCatalogId_call(long catalog_item_id, org.apache.thrift.async.AsyncMethodCallback<getValidItemsByCatalogId_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 {super(client, protocolFactory, transport, resultHandler, false);this.catalog_item_id = catalog_item_id;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getValidItemsByCatalogId", org.apache.thrift.protocol.TMessageType.CALL, 0));getValidItemsByCatalogId_args args = new getValidItemsByCatalogId_args();args.setCatalog_item_id(catalog_item_id);args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getValidItemsByCatalogId();}}public void getAllItems(boolean isActive, org.apache.thrift.async.AsyncMethodCallback<getAllItems_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllItems_call method_call = new getAllItems_call(isActive, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllItems_call extends org.apache.thrift.async.TAsyncMethodCall {private boolean isActive;public getAllItems_call(boolean isActive, org.apache.thrift.async.AsyncMethodCallback<getAllItems_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 {super(client, protocolFactory, transport, resultHandler, false);this.isActive = isActive;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItems", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllItems_args args = new getAllItems_args();args.setIsActive(isActive);args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllItems();}}public void getAllItemsByStatus(status itemStatus, org.apache.thrift.async.AsyncMethodCallback<getAllItemsByStatus_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllItemsByStatus_call method_call = new getAllItemsByStatus_call(itemStatus, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllItemsByStatus_call extends org.apache.thrift.async.TAsyncMethodCall {private status itemStatus;public getAllItemsByStatus_call(status itemStatus, org.apache.thrift.async.AsyncMethodCallback<getAllItemsByStatus_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 {super(client, protocolFactory, transport, resultHandler, false);this.itemStatus = itemStatus;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemsByStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllItemsByStatus_args args = new getAllItemsByStatus_args();args.setItemStatus(itemStatus);args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllItemsByStatus();}}public void markItemAsContentComplete(long entityId, long category, String brand, String modelName, String modelNumber, org.apache.thrift.async.AsyncMethodCallback<markItemAsContentComplete_call> resultHandler) throws org.apache.thrift.TException {checkReady();markItemAsContentComplete_call method_call = new markItemAsContentComplete_call(entityId, category, brand, modelName, modelNumber, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markItemAsContentComplete_call extends org.apache.thrift.async.TAsyncMethodCall {private long entityId;private long category;private String brand;private String modelName;private String modelNumber;public markItemAsContentComplete_call(long entityId, long category, String brand, String modelName, String modelNumber, org.apache.thrift.async.AsyncMethodCallback<markItemAsContentComplete_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 {super(client, protocolFactory, transport, resultHandler, false);this.entityId = entityId;this.category = category;this.brand = brand;this.modelName = modelName;this.modelNumber = modelNumber;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markItemAsContentComplete", org.apache.thrift.protocol.TMessageType.CALL, 0));markItemAsContentComplete_args args = new markItemAsContentComplete_args();args.setEntityId(entityId);args.setCategory(category);args.setBrand(brand);args.setModelName(modelName);args.setModelNumber(modelNumber);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_markItemAsContentComplete();}}public void getAllItemsInRange(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<getAllItemsInRange_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllItemsInRange_call method_call = new getAllItemsInRange_call(offset, limit, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllItemsInRange_call extends org.apache.thrift.async.TAsyncMethodCall {private long offset;private long limit;public getAllItemsInRange_call(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<getAllItemsInRange_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 {super(client, protocolFactory, transport, resultHandler, false);this.offset = offset;this.limit = limit;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemsInRange", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllItemsInRange_args args = new getAllItemsInRange_args();args.setOffset(offset);args.setLimit(limit);args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllItemsInRange();}}public void getAllItemsByStatusInRange(status itemStatus, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<getAllItemsByStatusInRange_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllItemsByStatusInRange_call method_call = new getAllItemsByStatusInRange_call(itemStatus, offset, limit, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllItemsByStatusInRange_call extends org.apache.thrift.async.TAsyncMethodCall {private status itemStatus;private long offset;private long limit;public getAllItemsByStatusInRange_call(status itemStatus, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<getAllItemsByStatusInRange_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 {super(client, protocolFactory, transport, resultHandler, false);this.itemStatus = itemStatus;this.offset = offset;this.limit = limit;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemsByStatusInRange", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllItemsByStatusInRange_args args = new getAllItemsByStatusInRange_args();args.setItemStatus(itemStatus);args.setOffset(offset);args.setLimit(limit);args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllItemsByStatusInRange();}}public void getItemCountByStatus(boolean useStatus, status itemStatus, org.apache.thrift.async.AsyncMethodCallback<getItemCountByStatus_call> resultHandler) throws org.apache.thrift.TException {checkReady();getItemCountByStatus_call method_call = new getItemCountByStatus_call(useStatus, itemStatus, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getItemCountByStatus_call extends org.apache.thrift.async.TAsyncMethodCall {private boolean useStatus;private status itemStatus;public getItemCountByStatus_call(boolean useStatus, status itemStatus, org.apache.thrift.async.AsyncMethodCallback<getItemCountByStatus_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 {super(client, protocolFactory, transport, resultHandler, false);this.useStatus = useStatus;this.itemStatus = itemStatus;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemCountByStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));getItemCountByStatus_args args = new getItemCountByStatus_args();args.setUseStatus(useStatus);args.setItemStatus(itemStatus);args.write(prot);prot.writeMessageEnd();}public int getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getItemCountByStatus();}}public void getBestSellers(org.apache.thrift.async.AsyncMethodCallback<getBestSellers_call> resultHandler) throws org.apache.thrift.TException {checkReady();getBestSellers_call method_call = new getBestSellers_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getBestSellers_call extends org.apache.thrift.async.TAsyncMethodCall {public getBestSellers_call(org.apache.thrift.async.AsyncMethodCallback<getBestSellers_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 {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBestSellers", org.apache.thrift.protocol.TMessageType.CALL, 0));getBestSellers_args args = new getBestSellers_args();args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getBestSellers();}}public void getBestSellersCatalogIds(long beginIndex, long totalItems, String brand, long category, org.apache.thrift.async.AsyncMethodCallback<getBestSellersCatalogIds_call> resultHandler) throws org.apache.thrift.TException {checkReady();getBestSellersCatalogIds_call method_call = new getBestSellersCatalogIds_call(beginIndex, totalItems, brand, category, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getBestSellersCatalogIds_call extends org.apache.thrift.async.TAsyncMethodCall {private long beginIndex;private long totalItems;private String brand;private long category;public getBestSellersCatalogIds_call(long beginIndex, long totalItems, String brand, long category, org.apache.thrift.async.AsyncMethodCallback<getBestSellersCatalogIds_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 {super(client, protocolFactory, transport, resultHandler, false);this.beginIndex = beginIndex;this.totalItems = totalItems;this.brand = brand;this.category = category;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBestSellersCatalogIds", org.apache.thrift.protocol.TMessageType.CALL, 0));getBestSellersCatalogIds_args args = new getBestSellersCatalogIds_args();args.setBeginIndex(beginIndex);args.setTotalItems(totalItems);args.setBrand(brand);args.setCategory(category);args.write(prot);prot.writeMessageEnd();}public List<Long> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getBestSellersCatalogIds();}}public void getBestSellersCount(org.apache.thrift.async.AsyncMethodCallback<getBestSellersCount_call> resultHandler) throws org.apache.thrift.TException {checkReady();getBestSellersCount_call method_call = new getBestSellersCount_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getBestSellersCount_call extends org.apache.thrift.async.TAsyncMethodCall {public getBestSellersCount_call(org.apache.thrift.async.AsyncMethodCallback<getBestSellersCount_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 {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBestSellersCount", org.apache.thrift.protocol.TMessageType.CALL, 0));getBestSellersCount_args args = new getBestSellersCount_args();args.write(prot);prot.writeMessageEnd();}public long getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getBestSellersCount();}}public void getBestDeals(org.apache.thrift.async.AsyncMethodCallback<getBestDeals_call> resultHandler) throws org.apache.thrift.TException {checkReady();getBestDeals_call method_call = new getBestDeals_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getBestDeals_call extends org.apache.thrift.async.TAsyncMethodCall {public getBestDeals_call(org.apache.thrift.async.AsyncMethodCallback<getBestDeals_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 {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBestDeals", org.apache.thrift.protocol.TMessageType.CALL, 0));getBestDeals_args args = new getBestDeals_args();args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getBestDeals();}}public void getBestDealsCatalogIds(long beginIndex, long totalItems, String brand, long category, org.apache.thrift.async.AsyncMethodCallback<getBestDealsCatalogIds_call> resultHandler) throws org.apache.thrift.TException {checkReady();getBestDealsCatalogIds_call method_call = new getBestDealsCatalogIds_call(beginIndex, totalItems, brand, category, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getBestDealsCatalogIds_call extends org.apache.thrift.async.TAsyncMethodCall {private long beginIndex;private long totalItems;private String brand;private long category;public getBestDealsCatalogIds_call(long beginIndex, long totalItems, String brand, long category, org.apache.thrift.async.AsyncMethodCallback<getBestDealsCatalogIds_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 {super(client, protocolFactory, transport, resultHandler, false);this.beginIndex = beginIndex;this.totalItems = totalItems;this.brand = brand;this.category = category;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBestDealsCatalogIds", org.apache.thrift.protocol.TMessageType.CALL, 0));getBestDealsCatalogIds_args args = new getBestDealsCatalogIds_args();args.setBeginIndex(beginIndex);args.setTotalItems(totalItems);args.setBrand(brand);args.setCategory(category);args.write(prot);prot.writeMessageEnd();}public List<Long> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getBestDealsCatalogIds();}}public void getBestDealsCount(org.apache.thrift.async.AsyncMethodCallback<getBestDealsCount_call> resultHandler) throws org.apache.thrift.TException {checkReady();getBestDealsCount_call method_call = new getBestDealsCount_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getBestDealsCount_call extends org.apache.thrift.async.TAsyncMethodCall {public getBestDealsCount_call(org.apache.thrift.async.AsyncMethodCallback<getBestDealsCount_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 {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBestDealsCount", org.apache.thrift.protocol.TMessageType.CALL, 0));getBestDealsCount_args args = new getBestDealsCount_args();args.write(prot);prot.writeMessageEnd();}public long getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getBestDealsCount();}}public void getComingSoon(org.apache.thrift.async.AsyncMethodCallback<getComingSoon_call> resultHandler) throws org.apache.thrift.TException {checkReady();getComingSoon_call method_call = new getComingSoon_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getComingSoon_call extends org.apache.thrift.async.TAsyncMethodCall {public getComingSoon_call(org.apache.thrift.async.AsyncMethodCallback<getComingSoon_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 {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getComingSoon", org.apache.thrift.protocol.TMessageType.CALL, 0));getComingSoon_args args = new getComingSoon_args();args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getComingSoon();}}public void getComingSoonCatalogIds(long beginIndex, long totalItems, String brand, long category, org.apache.thrift.async.AsyncMethodCallback<getComingSoonCatalogIds_call> resultHandler) throws org.apache.thrift.TException {checkReady();getComingSoonCatalogIds_call method_call = new getComingSoonCatalogIds_call(beginIndex, totalItems, brand, category, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getComingSoonCatalogIds_call extends org.apache.thrift.async.TAsyncMethodCall {private long beginIndex;private long totalItems;private String brand;private long category;public getComingSoonCatalogIds_call(long beginIndex, long totalItems, String brand, long category, org.apache.thrift.async.AsyncMethodCallback<getComingSoonCatalogIds_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 {super(client, protocolFactory, transport, resultHandler, false);this.beginIndex = beginIndex;this.totalItems = totalItems;this.brand = brand;this.category = category;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getComingSoonCatalogIds", org.apache.thrift.protocol.TMessageType.CALL, 0));getComingSoonCatalogIds_args args = new getComingSoonCatalogIds_args();args.setBeginIndex(beginIndex);args.setTotalItems(totalItems);args.setBrand(brand);args.setCategory(category);args.write(prot);prot.writeMessageEnd();}public List<Long> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getComingSoonCatalogIds();}}public void getComingSoonCount(org.apache.thrift.async.AsyncMethodCallback<getComingSoonCount_call> resultHandler) throws org.apache.thrift.TException {checkReady();getComingSoonCount_call method_call = new getComingSoonCount_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getComingSoonCount_call extends org.apache.thrift.async.TAsyncMethodCall {public getComingSoonCount_call(org.apache.thrift.async.AsyncMethodCallback<getComingSoonCount_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 {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getComingSoonCount", org.apache.thrift.protocol.TMessageType.CALL, 0));getComingSoonCount_args args = new getComingSoonCount_args();args.write(prot);prot.writeMessageEnd();}public long getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getComingSoonCount();}}public void getLatestArrivals(org.apache.thrift.async.AsyncMethodCallback<getLatestArrivals_call> resultHandler) throws org.apache.thrift.TException {checkReady();getLatestArrivals_call method_call = new getLatestArrivals_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getLatestArrivals_call extends org.apache.thrift.async.TAsyncMethodCall {public getLatestArrivals_call(org.apache.thrift.async.AsyncMethodCallback<getLatestArrivals_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 {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLatestArrivals", org.apache.thrift.protocol.TMessageType.CALL, 0));getLatestArrivals_args args = new getLatestArrivals_args();args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getLatestArrivals();}}public void getLatestArrivalsCatalogIds(long beginIndex, long totalItems, String brand, List<Long> categories, org.apache.thrift.async.AsyncMethodCallback<getLatestArrivalsCatalogIds_call> resultHandler) throws org.apache.thrift.TException {checkReady();getLatestArrivalsCatalogIds_call method_call = new getLatestArrivalsCatalogIds_call(beginIndex, totalItems, brand, categories, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getLatestArrivalsCatalogIds_call extends org.apache.thrift.async.TAsyncMethodCall {private long beginIndex;private long totalItems;private String brand;private List<Long> categories;public getLatestArrivalsCatalogIds_call(long beginIndex, long totalItems, String brand, List<Long> categories, org.apache.thrift.async.AsyncMethodCallback<getLatestArrivalsCatalogIds_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 {super(client, protocolFactory, transport, resultHandler, false);this.beginIndex = beginIndex;this.totalItems = totalItems;this.brand = brand;this.categories = categories;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLatestArrivalsCatalogIds", org.apache.thrift.protocol.TMessageType.CALL, 0));getLatestArrivalsCatalogIds_args args = new getLatestArrivalsCatalogIds_args();args.setBeginIndex(beginIndex);args.setTotalItems(totalItems);args.setBrand(brand);args.setCategories(categories);args.write(prot);prot.writeMessageEnd();}public List<Long> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getLatestArrivalsCatalogIds();}}public void getLatestArrivalsCount(org.apache.thrift.async.AsyncMethodCallback<getLatestArrivalsCount_call> resultHandler) throws org.apache.thrift.TException {checkReady();getLatestArrivalsCount_call method_call = new getLatestArrivalsCount_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getLatestArrivalsCount_call extends org.apache.thrift.async.TAsyncMethodCall {public getLatestArrivalsCount_call(org.apache.thrift.async.AsyncMethodCallback<getLatestArrivalsCount_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 {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLatestArrivalsCount", org.apache.thrift.protocol.TMessageType.CALL, 0));getLatestArrivalsCount_args args = new getLatestArrivalsCount_args();args.write(prot);prot.writeMessageEnd();}public long getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getLatestArrivalsCount();}}public void generateNewEntityID(org.apache.thrift.async.AsyncMethodCallback<generateNewEntityID_call> resultHandler) throws org.apache.thrift.TException {checkReady();generateNewEntityID_call method_call = new generateNewEntityID_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class generateNewEntityID_call extends org.apache.thrift.async.TAsyncMethodCall {public generateNewEntityID_call(org.apache.thrift.async.AsyncMethodCallback<generateNewEntityID_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 {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("generateNewEntityID", org.apache.thrift.protocol.TMessageType.CALL, 0));generateNewEntityID_args args = new generateNewEntityID_args();args.write(prot);prot.writeMessageEnd();}public long getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_generateNewEntityID();}}public void addCategory(Category category, org.apache.thrift.async.AsyncMethodCallback<addCategory_call> resultHandler) throws org.apache.thrift.TException {checkReady();addCategory_call method_call = new addCategory_call(category, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addCategory_call extends org.apache.thrift.async.TAsyncMethodCall {private Category category;public addCategory_call(Category category, org.apache.thrift.async.AsyncMethodCallback<addCategory_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 {super(client, protocolFactory, transport, resultHandler, false);this.category = category;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addCategory", org.apache.thrift.protocol.TMessageType.CALL, 0));addCategory_args args = new addCategory_args();args.setCategory(category);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_addCategory();}}public void getCategory(long id, org.apache.thrift.async.AsyncMethodCallback<getCategory_call> resultHandler) throws org.apache.thrift.TException {checkReady();getCategory_call method_call = new getCategory_call(id, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getCategory_call extends org.apache.thrift.async.TAsyncMethodCall {private long id;public getCategory_call(long id, org.apache.thrift.async.AsyncMethodCallback<getCategory_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 {super(client, protocolFactory, transport, resultHandler, false);this.id = id;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCategory", org.apache.thrift.protocol.TMessageType.CALL, 0));getCategory_args args = new getCategory_args();args.setId(id);args.write(prot);prot.writeMessageEnd();}public Category getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getCategory();}}public void getAllCategories(org.apache.thrift.async.AsyncMethodCallback<getAllCategories_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllCategories_call method_call = new getAllCategories_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllCategories_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllCategories_call(org.apache.thrift.async.AsyncMethodCallback<getAllCategories_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 {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllCategories", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllCategories_args args = new getAllCategories_args();args.write(prot);prot.writeMessageEnd();}public List<Category> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllCategories();}}public void getAllSimilarItems(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAllSimilarItems_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllSimilarItems_call method_call = new getAllSimilarItems_call(itemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllSimilarItems_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;public getAllSimilarItems_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAllSimilarItems_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 {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllSimilarItems", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllSimilarItems_args args = new getAllSimilarItems_args();args.setItemId(itemId);args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllSimilarItems();}}public void addSimilarItem(long itemId, long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<addSimilarItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();addSimilarItem_call method_call = new addSimilarItem_call(itemId, catalogItemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addSimilarItem_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;private long catalogItemId;public addSimilarItem_call(long itemId, long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<addSimilarItem_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 {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;this.catalogItemId = catalogItemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addSimilarItem", org.apache.thrift.protocol.TMessageType.CALL, 0));addSimilarItem_args args = new addSimilarItem_args();args.setItemId(itemId);args.setCatalogItemId(catalogItemId);args.write(prot);prot.writeMessageEnd();}public Item getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_addSimilarItem();}}public void deleteSimilarItem(long itemId, long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<deleteSimilarItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();deleteSimilarItem_call method_call = new deleteSimilarItem_call(itemId, catalogItemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class deleteSimilarItem_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;private long catalogItemId;public deleteSimilarItem_call(long itemId, long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<deleteSimilarItem_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 {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;this.catalogItemId = catalogItemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteSimilarItem", org.apache.thrift.protocol.TMessageType.CALL, 0));deleteSimilarItem_args args = new deleteSimilarItem_args();args.setItemId(itemId);args.setCatalogItemId(catalogItemId);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_deleteSimilarItem();}}public void checkSimilarItem(String brand, String modelNumber, String modelName, String color, org.apache.thrift.async.AsyncMethodCallback<checkSimilarItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();checkSimilarItem_call method_call = new checkSimilarItem_call(brand, modelNumber, modelName, color, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class checkSimilarItem_call extends org.apache.thrift.async.TAsyncMethodCall {private String brand;private String modelNumber;private String modelName;private String color;public checkSimilarItem_call(String brand, String modelNumber, String modelName, String color, org.apache.thrift.async.AsyncMethodCallback<checkSimilarItem_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 {super(client, protocolFactory, transport, resultHandler, false);this.brand = brand;this.modelNumber = modelNumber;this.modelName = modelName;this.color = color;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("checkSimilarItem", org.apache.thrift.protocol.TMessageType.CALL, 0));checkSimilarItem_args args = new checkSimilarItem_args();args.setBrand(brand);args.setModelNumber(modelNumber);args.setModelName(modelName);args.setColor(color);args.write(prot);prot.writeMessageEnd();}public long getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_checkSimilarItem();}}public void validateRiskyStatus(long itemId, org.apache.thrift.async.AsyncMethodCallback<validateRiskyStatus_call> resultHandler) throws org.apache.thrift.TException {checkReady();validateRiskyStatus_call method_call = new validateRiskyStatus_call(itemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class validateRiskyStatus_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;public validateRiskyStatus_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<validateRiskyStatus_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 {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateRiskyStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));validateRiskyStatus_args args = new validateRiskyStatus_args();args.setItemId(itemId);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_validateRiskyStatus();}}public void changeItemRiskyFlag(long itemId, boolean risky, org.apache.thrift.async.AsyncMethodCallback<changeItemRiskyFlag_call> resultHandler) throws org.apache.thrift.TException {checkReady();changeItemRiskyFlag_call method_call = new changeItemRiskyFlag_call(itemId, risky, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class changeItemRiskyFlag_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;private boolean risky;public changeItemRiskyFlag_call(long itemId, boolean risky, org.apache.thrift.async.AsyncMethodCallback<changeItemRiskyFlag_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 {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;this.risky = risky;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeItemRiskyFlag", org.apache.thrift.protocol.TMessageType.CALL, 0));changeItemRiskyFlag_args args = new changeItemRiskyFlag_args();args.setItemId(itemId);args.setRisky(risky);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_changeItemRiskyFlag();}}public void getItemsByRiskyFlag(org.apache.thrift.async.AsyncMethodCallback<getItemsByRiskyFlag_call> resultHandler) throws org.apache.thrift.TException {checkReady();getItemsByRiskyFlag_call method_call = new getItemsByRiskyFlag_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getItemsByRiskyFlag_call extends org.apache.thrift.async.TAsyncMethodCall {public getItemsByRiskyFlag_call(org.apache.thrift.async.AsyncMethodCallback<getItemsByRiskyFlag_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 {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemsByRiskyFlag", org.apache.thrift.protocol.TMessageType.CALL, 0));getItemsByRiskyFlag_args args = new getItemsByRiskyFlag_args();args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getItemsByRiskyFlag();}}public void getItemsForMasterSheet(String category, String brand, org.apache.thrift.async.AsyncMethodCallback<getItemsForMasterSheet_call> resultHandler) throws org.apache.thrift.TException {checkReady();getItemsForMasterSheet_call method_call = new getItemsForMasterSheet_call(category, brand, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getItemsForMasterSheet_call extends org.apache.thrift.async.TAsyncMethodCall {private String category;private String brand;public getItemsForMasterSheet_call(String category, String brand, org.apache.thrift.async.AsyncMethodCallback<getItemsForMasterSheet_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 {super(client, protocolFactory, transport, resultHandler, false);this.category = category;this.brand = brand;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemsForMasterSheet", org.apache.thrift.protocol.TMessageType.CALL, 0));getItemsForMasterSheet_args args = new getItemsForMasterSheet_args();args.setCategory(category);args.setBrand(brand);args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getItemsForMasterSheet();}}public void getSimilarItemsCatalogIds(long beginIndex, long totalItems, long itemId, org.apache.thrift.async.AsyncMethodCallback<getSimilarItemsCatalogIds_call> resultHandler) throws org.apache.thrift.TException {checkReady();getSimilarItemsCatalogIds_call method_call = new getSimilarItemsCatalogIds_call(beginIndex, totalItems, itemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getSimilarItemsCatalogIds_call extends org.apache.thrift.async.TAsyncMethodCall {private long beginIndex;private long totalItems;private long itemId;public getSimilarItemsCatalogIds_call(long beginIndex, long totalItems, long itemId, org.apache.thrift.async.AsyncMethodCallback<getSimilarItemsCatalogIds_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 {super(client, protocolFactory, transport, resultHandler, false);this.beginIndex = beginIndex;this.totalItems = totalItems;this.itemId = itemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSimilarItemsCatalogIds", org.apache.thrift.protocol.TMessageType.CALL, 0));getSimilarItemsCatalogIds_args args = new getSimilarItemsCatalogIds_args();args.setBeginIndex(beginIndex);args.setTotalItems(totalItems);args.setItemId(itemId);args.write(prot);prot.writeMessageEnd();}public List<Long> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getSimilarItemsCatalogIds();}}public void addProductNotification(long itemId, String email, org.apache.thrift.async.AsyncMethodCallback<addProductNotification_call> resultHandler) throws org.apache.thrift.TException {checkReady();addProductNotification_call method_call = new addProductNotification_call(itemId, email, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addProductNotification_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;private String email;public addProductNotification_call(long itemId, String email, org.apache.thrift.async.AsyncMethodCallback<addProductNotification_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 {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;this.email = email;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addProductNotification", org.apache.thrift.protocol.TMessageType.CALL, 0));addProductNotification_args args = new addProductNotification_args();args.setItemId(itemId);args.setEmail(email);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_addProductNotification();}}public void sendProductNotifications(org.apache.thrift.async.AsyncMethodCallback<sendProductNotifications_call> resultHandler) throws org.apache.thrift.TException {checkReady();sendProductNotifications_call method_call = new sendProductNotifications_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class sendProductNotifications_call extends org.apache.thrift.async.TAsyncMethodCall {public sendProductNotifications_call(org.apache.thrift.async.AsyncMethodCallback<sendProductNotifications_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 {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendProductNotifications", org.apache.thrift.protocol.TMessageType.CALL, 0));sendProductNotifications_args args = new sendProductNotifications_args();args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_sendProductNotifications();}}public void getAllBrandsByCategory(long categoryId, org.apache.thrift.async.AsyncMethodCallback<getAllBrandsByCategory_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllBrandsByCategory_call method_call = new getAllBrandsByCategory_call(categoryId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllBrandsByCategory_call extends org.apache.thrift.async.TAsyncMethodCall {private long categoryId;public getAllBrandsByCategory_call(long categoryId, org.apache.thrift.async.AsyncMethodCallback<getAllBrandsByCategory_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 {super(client, protocolFactory, transport, resultHandler, false);this.categoryId = categoryId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllBrandsByCategory", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllBrandsByCategory_args args = new getAllBrandsByCategory_args();args.setCategoryId(categoryId);args.write(prot);prot.writeMessageEnd();}public List<String> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllBrandsByCategory();}}public void getAllBrands(org.apache.thrift.async.AsyncMethodCallback<getAllBrands_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllBrands_call method_call = new getAllBrands_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllBrands_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllBrands_call(org.apache.thrift.async.AsyncMethodCallback<getAllBrands_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 {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllBrands", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllBrands_args args = new getAllBrands_args();args.write(prot);prot.writeMessageEnd();}public List<String> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllBrands();}}public void getAllSources(org.apache.thrift.async.AsyncMethodCallback<getAllSources_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllSources_call method_call = new getAllSources_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllSources_call extends org.apache.thrift.async.TAsyncMethodCall {public getAllSources_call(org.apache.thrift.async.AsyncMethodCallback<getAllSources_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 {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllSources", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllSources_args args = new getAllSources_args();args.write(prot);prot.writeMessageEnd();}public List<Source> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllSources();}}public void getItemPricingBySource(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<getItemPricingBySource_call> resultHandler) throws org.apache.thrift.TException {checkReady();getItemPricingBySource_call method_call = new getItemPricingBySource_call(itemId, sourceId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getItemPricingBySource_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;private long sourceId;public getItemPricingBySource_call(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<getItemPricingBySource_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 {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;this.sourceId = sourceId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemPricingBySource", org.apache.thrift.protocol.TMessageType.CALL, 0));getItemPricingBySource_args args = new getItemPricingBySource_args();args.setItemId(itemId);args.setSourceId(sourceId);args.write(prot);prot.writeMessageEnd();}public SourceItemPricing getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getItemPricingBySource();}}public void addSourceItemPricing(SourceItemPricing sourceItemPricing, org.apache.thrift.async.AsyncMethodCallback<addSourceItemPricing_call> resultHandler) throws org.apache.thrift.TException {checkReady();addSourceItemPricing_call method_call = new addSourceItemPricing_call(sourceItemPricing, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addSourceItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {private SourceItemPricing sourceItemPricing;public addSourceItemPricing_call(SourceItemPricing sourceItemPricing, org.apache.thrift.async.AsyncMethodCallback<addSourceItemPricing_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 {super(client, protocolFactory, transport, resultHandler, false);this.sourceItemPricing = sourceItemPricing;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addSourceItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));addSourceItemPricing_args args = new addSourceItemPricing_args();args.setSourceItemPricing(sourceItemPricing);args.write(prot);prot.writeMessageEnd();}public void getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_addSourceItemPricing();}}public void getAllSourcePricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAllSourcePricing_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllSourcePricing_call method_call = new getAllSourcePricing_call(itemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllSourcePricing_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;public getAllSourcePricing_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAllSourcePricing_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 {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllSourcePricing", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllSourcePricing_args args = new getAllSourcePricing_args();args.setItemId(itemId);args.write(prot);prot.writeMessageEnd();}public List<SourceItemPricing> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllSourcePricing();}}public void getItemForSource(long item_id, long sourceId, org.apache.thrift.async.AsyncMethodCallback<getItemForSource_call> resultHandler) throws org.apache.thrift.TException {checkReady();getItemForSource_call method_call = new getItemForSource_call(item_id, sourceId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getItemForSource_call extends org.apache.thrift.async.TAsyncMethodCall {private long item_id;private long sourceId;public getItemForSource_call(long item_id, long sourceId, org.apache.thrift.async.AsyncMethodCallback<getItemForSource_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 {super(client, protocolFactory, transport, resultHandler, false);this.item_id = item_id;this.sourceId = sourceId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemForSource", org.apache.thrift.protocol.TMessageType.CALL, 0));getItemForSource_args args = new getItemForSource_args();args.setItem_id(item_id);args.setSourceId(sourceId);args.write(prot);prot.writeMessageEnd();}public Item getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getItemForSource();}}public void searchItemsInRange(List<String> searchTerms, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<searchItemsInRange_call> resultHandler) throws org.apache.thrift.TException {checkReady();searchItemsInRange_call method_call = new searchItemsInRange_call(searchTerms, offset, limit, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class searchItemsInRange_call extends org.apache.thrift.async.TAsyncMethodCall {private List<String> searchTerms;private long offset;private long limit;public searchItemsInRange_call(List<String> searchTerms, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<searchItemsInRange_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 {super(client, protocolFactory, transport, resultHandler, false);this.searchTerms = searchTerms;this.offset = offset;this.limit = limit;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchItemsInRange", org.apache.thrift.protocol.TMessageType.CALL, 0));searchItemsInRange_args args = new searchItemsInRange_args();args.setSearchTerms(searchTerms);args.setOffset(offset);args.setLimit(limit);args.write(prot);prot.writeMessageEnd();}public List<Item> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_searchItemsInRange();}}public void getSearchResultCount(List<String> searchTerms, org.apache.thrift.async.AsyncMethodCallback<getSearchResultCount_call> resultHandler) throws org.apache.thrift.TException {checkReady();getSearchResultCount_call method_call = new getSearchResultCount_call(searchTerms, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getSearchResultCount_call extends org.apache.thrift.async.TAsyncMethodCall {private List<String> searchTerms;public getSearchResultCount_call(List<String> searchTerms, org.apache.thrift.async.AsyncMethodCallback<getSearchResultCount_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 {super(client, protocolFactory, transport, resultHandler, false);this.searchTerms = searchTerms;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSearchResultCount", org.apache.thrift.protocol.TMessageType.CALL, 0));getSearchResultCount_args args = new getSearchResultCount_args();args.setSearchTerms(searchTerms);args.write(prot);prot.writeMessageEnd();}public int getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getSearchResultCount();}}public void getProductNotifications(long startDateTime, org.apache.thrift.async.AsyncMethodCallback<getProductNotifications_call> resultHandler) throws org.apache.thrift.TException {checkReady();getProductNotifications_call method_call = new getProductNotifications_call(startDateTime, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getProductNotifications_call extends org.apache.thrift.async.TAsyncMethodCall {private long startDateTime;public getProductNotifications_call(long startDateTime, org.apache.thrift.async.AsyncMethodCallback<getProductNotifications_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 {super(client, protocolFactory, transport, resultHandler, false);this.startDateTime = startDateTime;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProductNotifications", org.apache.thrift.protocol.TMessageType.CALL, 0));getProductNotifications_args args = new getProductNotifications_args();args.setStartDateTime(startDateTime);args.write(prot);prot.writeMessageEnd();}public List<ProductNotificationRequest> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getProductNotifications();}}public void getProductNotificationRequestCount(long startDateTime, org.apache.thrift.async.AsyncMethodCallback<getProductNotificationRequestCount_call> resultHandler) throws org.apache.thrift.TException {checkReady();getProductNotificationRequestCount_call method_call = new getProductNotificationRequestCount_call(startDateTime, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getProductNotificationRequestCount_call extends org.apache.thrift.async.TAsyncMethodCall {private long startDateTime;public getProductNotificationRequestCount_call(long startDateTime, org.apache.thrift.async.AsyncMethodCallback<getProductNotificationRequestCount_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 {super(client, protocolFactory, transport, resultHandler, false);this.startDateTime = startDateTime;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProductNotificationRequestCount", org.apache.thrift.protocol.TMessageType.CALL, 0));getProductNotificationRequestCount_args args = new getProductNotificationRequestCount_args();args.setStartDateTime(startDateTime);args.write(prot);prot.writeMessageEnd();}public List<ProductNotificationRequestCount> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getProductNotificationRequestCount();}}public void addAuthorizationLog(long itemId, String username, String reason, org.apache.thrift.async.AsyncMethodCallback<addAuthorizationLog_call> resultHandler) throws org.apache.thrift.TException {checkReady();addAuthorizationLog_call method_call = new addAuthorizationLog_call(itemId, username, reason, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addAuthorizationLog_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;private String username;private String reason;public addAuthorizationLog_call(long itemId, String username, String reason, org.apache.thrift.async.AsyncMethodCallback<addAuthorizationLog_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 {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;this.username = username;this.reason = reason;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addAuthorizationLog", org.apache.thrift.protocol.TMessageType.CALL, 0));addAuthorizationLog_args args = new addAuthorizationLog_args();args.setItemId(itemId);args.setUsername(username);args.setReason(reason);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_addAuthorizationLog();}}public void getClearanceSaleCatalogIds(org.apache.thrift.async.AsyncMethodCallback<getClearanceSaleCatalogIds_call> resultHandler) throws org.apache.thrift.TException {checkReady();getClearanceSaleCatalogIds_call method_call = new getClearanceSaleCatalogIds_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getClearanceSaleCatalogIds_call extends org.apache.thrift.async.TAsyncMethodCall {public getClearanceSaleCatalogIds_call(org.apache.thrift.async.AsyncMethodCallback<getClearanceSaleCatalogIds_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 {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getClearanceSaleCatalogIds", org.apache.thrift.protocol.TMessageType.CALL, 0));getClearanceSaleCatalogIds_args args = new getClearanceSaleCatalogIds_args();args.write(prot);prot.writeMessageEnd();}public List<Long> getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getClearanceSaleCatalogIds();}}public void addupdateVoucherForItem(long catalog_item_id, long voucherType, long voucherAmount, org.apache.thrift.async.AsyncMethodCallback<addupdateVoucherForItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();addupdateVoucherForItem_call method_call = new addupdateVoucherForItem_call(catalog_item_id, voucherType, voucherAmount, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addupdateVoucherForItem_call extends org.apache.thrift.async.TAsyncMethodCall {private long catalog_item_id;private long voucherType;private long voucherAmount;public addupdateVoucherForItem_call(long catalog_item_id, long 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 {super(client, protocolFactory, transport, resultHandler, false);this.catalog_item_id = catalog_item_id;this.voucherType = voucherType;this.voucherAmount = voucherAmount;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addupdateVoucherForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));addupdateVoucherForItem_args args = new addupdateVoucherForItem_args();args.setCatalog_item_id(catalog_item_id);args.setVoucherType(voucherType);args.setVoucherAmount(voucherAmount);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_addupdateVoucherForItem();}}public void deleteVoucherForItem(long catalog_item_id, long voucherType, org.apache.thrift.async.AsyncMethodCallback<deleteVoucherForItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();deleteVoucherForItem_call method_call = new deleteVoucherForItem_call(catalog_item_id, voucherType, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class deleteVoucherForItem_call extends org.apache.thrift.async.TAsyncMethodCall {private long catalog_item_id;private long voucherType;public deleteVoucherForItem_call(long catalog_item_id, long 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 {super(client, protocolFactory, transport, resultHandler, false);this.catalog_item_id = catalog_item_id;this.voucherType = voucherType;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteVoucherForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));deleteVoucherForItem_args args = new deleteVoucherForItem_args();args.setCatalog_item_id(catalog_item_id);args.setVoucherType(voucherType);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws CatalogServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_deleteVoucherForItem();}}public void getVoucherAmount(long itemId, long voucherType, org.apache.thrift.async.AsyncMethodCallback<getVoucherAmount_call> resultHandler) throws org.apache.thrift.TException {checkReady();getVoucherAmount_call method_call = new getVoucherAmount_call(itemId, voucherType, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getVoucherAmount_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;private long voucherType;public getVoucherAmount_call(long itemId, long 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 {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;this.voucherType = voucherType;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVoucherAmount", org.apache.thrift.protocol.TMessageType.CALL, 0));getVoucherAmount_args args = new getVoucherAmount_args();args.setItemId(itemId);args.setVoucherType(voucherType);args.write(prot);prot.writeMessageEnd();}public long getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getVoucherAmount();}}public void getAllItemVouchers(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAllItemVouchers_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllItemVouchers_call method_call = new getAllItemVouchers_call(itemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllItemVouchers_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;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 {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemVouchers", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllItemVouchers_args args = new getAllItemVouchers_args();args.setItemId(itemId);args.write(prot);prot.writeMessageEnd();}public List<VoucherItemMapping> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllItemVouchers();}}public void isValidCatalogItemId(long catalog_item_id, org.apache.thrift.async.AsyncMethodCallback<isValidCatalogItemId_call> resultHandler) throws org.apache.thrift.TException {checkReady();isValidCatalogItemId_call method_call = new isValidCatalogItemId_call(catalog_item_id, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class isValidCatalogItemId_call extends org.apache.thrift.async.TAsyncMethodCall {private long catalog_item_id;public isValidCatalogItemId_call(long catalog_item_id, org.apache.thrift.async.AsyncMethodCallback<isValidCatalogItemId_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 {super(client, protocolFactory, transport, resultHandler, false);this.catalog_item_id = catalog_item_id;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isValidCatalogItemId", org.apache.thrift.protocol.TMessageType.CALL, 0));isValidCatalogItemId_args args = new isValidCatalogItemId_args();args.setCatalog_item_id(catalog_item_id);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_isValidCatalogItemId();}}}public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());public Processor(I iface) {super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));}protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {super(iface, getProcessMap(processMap));}private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {processMap.put("addItem", new addItem());processMap.put("updateItem", new updateItem());processMap.put("isActive", new isActive());processMap.put("getItemStatusDescription", new getItemStatusDescription());processMap.put("startItemOn", new startItemOn());processMap.put("retireItemOn", new retireItemOn());processMap.put("changeItemStatus", new changeItemStatus());processMap.put("getItem", new getItem());processMap.put("getItemsByCatalogId", new getItemsByCatalogId());processMap.put("getValidItemsByCatalogId", new getValidItemsByCatalogId());processMap.put("getAllItems", new getAllItems());processMap.put("getAllItemsByStatus", new getAllItemsByStatus());processMap.put("markItemAsContentComplete", new markItemAsContentComplete());processMap.put("getAllItemsInRange", new getAllItemsInRange());processMap.put("getAllItemsByStatusInRange", new getAllItemsByStatusInRange());processMap.put("getItemCountByStatus", new getItemCountByStatus());processMap.put("getBestSellers", new getBestSellers());processMap.put("getBestSellersCatalogIds", new getBestSellersCatalogIds());processMap.put("getBestSellersCount", new getBestSellersCount());processMap.put("getBestDeals", new getBestDeals());processMap.put("getBestDealsCatalogIds", new getBestDealsCatalogIds());processMap.put("getBestDealsCount", new getBestDealsCount());processMap.put("getComingSoon", new getComingSoon());processMap.put("getComingSoonCatalogIds", new getComingSoonCatalogIds());processMap.put("getComingSoonCount", new getComingSoonCount());processMap.put("getLatestArrivals", new getLatestArrivals());processMap.put("getLatestArrivalsCatalogIds", new getLatestArrivalsCatalogIds());processMap.put("getLatestArrivalsCount", new getLatestArrivalsCount());processMap.put("generateNewEntityID", new generateNewEntityID());processMap.put("addCategory", new addCategory());processMap.put("getCategory", new getCategory());processMap.put("getAllCategories", new getAllCategories());processMap.put("getAllSimilarItems", new getAllSimilarItems());processMap.put("addSimilarItem", new addSimilarItem());processMap.put("deleteSimilarItem", new deleteSimilarItem());processMap.put("checkSimilarItem", new checkSimilarItem());processMap.put("validateRiskyStatus", new validateRiskyStatus());processMap.put("changeItemRiskyFlag", new changeItemRiskyFlag());processMap.put("getItemsByRiskyFlag", new getItemsByRiskyFlag());processMap.put("getItemsForMasterSheet", new getItemsForMasterSheet());processMap.put("getSimilarItemsCatalogIds", new getSimilarItemsCatalogIds());processMap.put("addProductNotification", new addProductNotification());processMap.put("sendProductNotifications", new sendProductNotifications());processMap.put("getAllBrandsByCategory", new getAllBrandsByCategory());processMap.put("getAllBrands", new getAllBrands());processMap.put("getAllSources", new getAllSources());processMap.put("getItemPricingBySource", new getItemPricingBySource());processMap.put("addSourceItemPricing", new addSourceItemPricing());processMap.put("getAllSourcePricing", new getAllSourcePricing());processMap.put("getItemForSource", new getItemForSource());processMap.put("searchItemsInRange", new searchItemsInRange());processMap.put("getSearchResultCount", new getSearchResultCount());processMap.put("getProductNotifications", new getProductNotifications());processMap.put("getProductNotificationRequestCount", new getProductNotificationRequestCount());processMap.put("addAuthorizationLog", new addAuthorizationLog());processMap.put("getClearanceSaleCatalogIds", new getClearanceSaleCatalogIds());processMap.put("addupdateVoucherForItem", new addupdateVoucherForItem());processMap.put("deleteVoucherForItem", new deleteVoucherForItem());processMap.put("getVoucherAmount", new getVoucherAmount());processMap.put("getAllItemVouchers", new getAllItemVouchers());processMap.put("isValidCatalogItemId", new isValidCatalogItemId());return processMap;}private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {public addItem() {super("addItem");}protected addItem_args getEmptyArgsInstance() {return new addItem_args();}protected addItem_result getResult(I iface, addItem_args args) throws org.apache.thrift.TException {addItem_result result = new addItem_result();try {result.success = iface.addItem(args.item);result.setSuccessIsSet(true);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class updateItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateItem_args> {public updateItem() {super("updateItem");}protected updateItem_args getEmptyArgsInstance() {return new updateItem_args();}protected updateItem_result getResult(I iface, updateItem_args args) throws org.apache.thrift.TException {updateItem_result result = new updateItem_result();try {result.success = iface.updateItem(args.item);result.setSuccessIsSet(true);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class isActive<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isActive_args> {public isActive() {super("isActive");}protected isActive_args getEmptyArgsInstance() {return new isActive_args();}protected isActive_result getResult(I iface, isActive_args args) throws org.apache.thrift.TException {isActive_result result = new isActive_result();try {result.success = iface.isActive(args.itemId);} catch (CatalogServiceException isex) {result.isex = isex;}return result;}}private static class getItemStatusDescription<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemStatusDescription_args> {public getItemStatusDescription() {super("getItemStatusDescription");}protected getItemStatusDescription_args getEmptyArgsInstance() {return new getItemStatusDescription_args();}protected getItemStatusDescription_result getResult(I iface, getItemStatusDescription_args args) throws org.apache.thrift.TException {getItemStatusDescription_result result = new getItemStatusDescription_result();try {result.success = iface.getItemStatusDescription(args.itemId);} catch (CatalogServiceException isex) {result.isex = isex;}return result;}}private static class startItemOn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, startItemOn_args> {public startItemOn() {super("startItemOn");}protected startItemOn_args getEmptyArgsInstance() {return new startItemOn_args();}protected startItemOn_result getResult(I iface, startItemOn_args args) throws org.apache.thrift.TException {startItemOn_result result = new startItemOn_result();try {iface.startItemOn(args.item_id, args.timestamp);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class retireItemOn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, retireItemOn_args> {public retireItemOn() {super("retireItemOn");}protected retireItemOn_args getEmptyArgsInstance() {return new retireItemOn_args();}protected retireItemOn_result getResult(I iface, retireItemOn_args args) throws org.apache.thrift.TException {retireItemOn_result result = new retireItemOn_result();try {iface.retireItemOn(args.item_id, args.timestamp);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class changeItemStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeItemStatus_args> {public changeItemStatus() {super("changeItemStatus");}protected changeItemStatus_args getEmptyArgsInstance() {return new changeItemStatus_args();}protected changeItemStatus_result getResult(I iface, changeItemStatus_args args) throws org.apache.thrift.TException {changeItemStatus_result result = new changeItemStatus_result();try {iface.changeItemStatus(args.item_id, args.timestamp, args.newstatus);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItem_args> {public getItem() {super("getItem");}protected getItem_args getEmptyArgsInstance() {return new getItem_args();}protected getItem_result getResult(I iface, getItem_args args) throws org.apache.thrift.TException {getItem_result result = new getItem_result();try {result.success = iface.getItem(args.item_id);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getItemsByCatalogId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemsByCatalogId_args> {public getItemsByCatalogId() {super("getItemsByCatalogId");}protected getItemsByCatalogId_args getEmptyArgsInstance() {return new getItemsByCatalogId_args();}protected getItemsByCatalogId_result getResult(I iface, getItemsByCatalogId_args args) throws org.apache.thrift.TException {getItemsByCatalogId_result result = new getItemsByCatalogId_result();try {result.success = iface.getItemsByCatalogId(args.catalog_item_id);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getValidItemsByCatalogId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getValidItemsByCatalogId_args> {public getValidItemsByCatalogId() {super("getValidItemsByCatalogId");}protected getValidItemsByCatalogId_args getEmptyArgsInstance() {return new getValidItemsByCatalogId_args();}protected getValidItemsByCatalogId_result getResult(I iface, getValidItemsByCatalogId_args args) throws org.apache.thrift.TException {getValidItemsByCatalogId_result result = new getValidItemsByCatalogId_result();try {result.success = iface.getValidItemsByCatalogId(args.catalog_item_id);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getAllItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItems_args> {public getAllItems() {super("getAllItems");}protected getAllItems_args getEmptyArgsInstance() {return new getAllItems_args();}protected getAllItems_result getResult(I iface, getAllItems_args args) throws org.apache.thrift.TException {getAllItems_result result = new getAllItems_result();try {result.success = iface.getAllItems(args.isActive);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getAllItemsByStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemsByStatus_args> {public getAllItemsByStatus() {super("getAllItemsByStatus");}protected getAllItemsByStatus_args getEmptyArgsInstance() {return new getAllItemsByStatus_args();}protected getAllItemsByStatus_result getResult(I iface, getAllItemsByStatus_args args) throws org.apache.thrift.TException {getAllItemsByStatus_result result = new getAllItemsByStatus_result();try {result.success = iface.getAllItemsByStatus(args.itemStatus);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class markItemAsContentComplete<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markItemAsContentComplete_args> {public markItemAsContentComplete() {super("markItemAsContentComplete");}protected markItemAsContentComplete_args getEmptyArgsInstance() {return new markItemAsContentComplete_args();}protected markItemAsContentComplete_result getResult(I iface, markItemAsContentComplete_args args) throws org.apache.thrift.TException {markItemAsContentComplete_result result = new markItemAsContentComplete_result();try {result.success = iface.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber);result.setSuccessIsSet(true);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getAllItemsInRange<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemsInRange_args> {public getAllItemsInRange() {super("getAllItemsInRange");}protected getAllItemsInRange_args getEmptyArgsInstance() {return new getAllItemsInRange_args();}protected getAllItemsInRange_result getResult(I iface, getAllItemsInRange_args args) throws org.apache.thrift.TException {getAllItemsInRange_result result = new getAllItemsInRange_result();try {result.success = iface.getAllItemsInRange(args.offset, args.limit);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getAllItemsByStatusInRange<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemsByStatusInRange_args> {public getAllItemsByStatusInRange() {super("getAllItemsByStatusInRange");}protected getAllItemsByStatusInRange_args getEmptyArgsInstance() {return new getAllItemsByStatusInRange_args();}protected getAllItemsByStatusInRange_result getResult(I iface, getAllItemsByStatusInRange_args args) throws org.apache.thrift.TException {getAllItemsByStatusInRange_result result = new getAllItemsByStatusInRange_result();try {result.success = iface.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getItemCountByStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemCountByStatus_args> {public getItemCountByStatus() {super("getItemCountByStatus");}protected getItemCountByStatus_args getEmptyArgsInstance() {return new getItemCountByStatus_args();}protected getItemCountByStatus_result getResult(I iface, getItemCountByStatus_args args) throws org.apache.thrift.TException {getItemCountByStatus_result result = new getItemCountByStatus_result();result.success = iface.getItemCountByStatus(args.useStatus, args.itemStatus);result.setSuccessIsSet(true);return result;}}private static class getBestSellers<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBestSellers_args> {public getBestSellers() {super("getBestSellers");}protected getBestSellers_args getEmptyArgsInstance() {return new getBestSellers_args();}protected getBestSellers_result getResult(I iface, getBestSellers_args args) throws org.apache.thrift.TException {getBestSellers_result result = new getBestSellers_result();try {result.success = iface.getBestSellers();} catch (CatalogServiceException isex) {result.isex = isex;}return result;}}private static class getBestSellersCatalogIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBestSellersCatalogIds_args> {public getBestSellersCatalogIds() {super("getBestSellersCatalogIds");}protected getBestSellersCatalogIds_args getEmptyArgsInstance() {return new getBestSellersCatalogIds_args();}protected getBestSellersCatalogIds_result getResult(I iface, getBestSellersCatalogIds_args args) throws org.apache.thrift.TException {getBestSellersCatalogIds_result result = new getBestSellersCatalogIds_result();try {result.success = iface.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getBestSellersCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBestSellersCount_args> {public getBestSellersCount() {super("getBestSellersCount");}protected getBestSellersCount_args getEmptyArgsInstance() {return new getBestSellersCount_args();}protected getBestSellersCount_result getResult(I iface, getBestSellersCount_args args) throws org.apache.thrift.TException {getBestSellersCount_result result = new getBestSellersCount_result();try {result.success = iface.getBestSellersCount();result.setSuccessIsSet(true);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getBestDeals<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBestDeals_args> {public getBestDeals() {super("getBestDeals");}protected getBestDeals_args getEmptyArgsInstance() {return new getBestDeals_args();}protected getBestDeals_result getResult(I iface, getBestDeals_args args) throws org.apache.thrift.TException {getBestDeals_result result = new getBestDeals_result();try {result.success = iface.getBestDeals();} catch (CatalogServiceException isex) {result.isex = isex;}return result;}}private static class getBestDealsCatalogIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBestDealsCatalogIds_args> {public getBestDealsCatalogIds() {super("getBestDealsCatalogIds");}protected getBestDealsCatalogIds_args getEmptyArgsInstance() {return new getBestDealsCatalogIds_args();}protected getBestDealsCatalogIds_result getResult(I iface, getBestDealsCatalogIds_args args) throws org.apache.thrift.TException {getBestDealsCatalogIds_result result = new getBestDealsCatalogIds_result();try {result.success = iface.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getBestDealsCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBestDealsCount_args> {public getBestDealsCount() {super("getBestDealsCount");}protected getBestDealsCount_args getEmptyArgsInstance() {return new getBestDealsCount_args();}protected getBestDealsCount_result getResult(I iface, getBestDealsCount_args args) throws org.apache.thrift.TException {getBestDealsCount_result result = new getBestDealsCount_result();try {result.success = iface.getBestDealsCount();result.setSuccessIsSet(true);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getComingSoon<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getComingSoon_args> {public getComingSoon() {super("getComingSoon");}protected getComingSoon_args getEmptyArgsInstance() {return new getComingSoon_args();}protected getComingSoon_result getResult(I iface, getComingSoon_args args) throws org.apache.thrift.TException {getComingSoon_result result = new getComingSoon_result();try {result.success = iface.getComingSoon();} catch (CatalogServiceException isex) {result.isex = isex;}return result;}}private static class getComingSoonCatalogIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getComingSoonCatalogIds_args> {public getComingSoonCatalogIds() {super("getComingSoonCatalogIds");}protected getComingSoonCatalogIds_args getEmptyArgsInstance() {return new getComingSoonCatalogIds_args();}protected getComingSoonCatalogIds_result getResult(I iface, getComingSoonCatalogIds_args args) throws org.apache.thrift.TException {getComingSoonCatalogIds_result result = new getComingSoonCatalogIds_result();try {result.success = iface.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getComingSoonCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getComingSoonCount_args> {public getComingSoonCount() {super("getComingSoonCount");}protected getComingSoonCount_args getEmptyArgsInstance() {return new getComingSoonCount_args();}protected getComingSoonCount_result getResult(I iface, getComingSoonCount_args args) throws org.apache.thrift.TException {getComingSoonCount_result result = new getComingSoonCount_result();try {result.success = iface.getComingSoonCount();result.setSuccessIsSet(true);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getLatestArrivals<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLatestArrivals_args> {public getLatestArrivals() {super("getLatestArrivals");}protected getLatestArrivals_args getEmptyArgsInstance() {return new getLatestArrivals_args();}protected getLatestArrivals_result getResult(I iface, getLatestArrivals_args args) throws org.apache.thrift.TException {getLatestArrivals_result result = new getLatestArrivals_result();try {result.success = iface.getLatestArrivals();} catch (CatalogServiceException isex) {result.isex = isex;}return result;}}private static class getLatestArrivalsCatalogIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLatestArrivalsCatalogIds_args> {public getLatestArrivalsCatalogIds() {super("getLatestArrivalsCatalogIds");}protected getLatestArrivalsCatalogIds_args getEmptyArgsInstance() {return new getLatestArrivalsCatalogIds_args();}protected getLatestArrivalsCatalogIds_result getResult(I iface, getLatestArrivalsCatalogIds_args args) throws org.apache.thrift.TException {getLatestArrivalsCatalogIds_result result = new getLatestArrivalsCatalogIds_result();try {result.success = iface.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getLatestArrivalsCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLatestArrivalsCount_args> {public getLatestArrivalsCount() {super("getLatestArrivalsCount");}protected getLatestArrivalsCount_args getEmptyArgsInstance() {return new getLatestArrivalsCount_args();}protected getLatestArrivalsCount_result getResult(I iface, getLatestArrivalsCount_args args) throws org.apache.thrift.TException {getLatestArrivalsCount_result result = new getLatestArrivalsCount_result();try {result.success = iface.getLatestArrivalsCount();result.setSuccessIsSet(true);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class generateNewEntityID<I extends Iface> extends org.apache.thrift.ProcessFunction<I, generateNewEntityID_args> {public generateNewEntityID() {super("generateNewEntityID");}protected generateNewEntityID_args getEmptyArgsInstance() {return new generateNewEntityID_args();}protected generateNewEntityID_result getResult(I iface, generateNewEntityID_args args) throws org.apache.thrift.TException {generateNewEntityID_result result = new generateNewEntityID_result();result.success = iface.generateNewEntityID();result.setSuccessIsSet(true);return result;}}private static class addCategory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addCategory_args> {public addCategory() {super("addCategory");}protected addCategory_args getEmptyArgsInstance() {return new addCategory_args();}protected addCategory_result getResult(I iface, addCategory_args args) throws org.apache.thrift.TException {addCategory_result result = new addCategory_result();result.success = iface.addCategory(args.category);result.setSuccessIsSet(true);return result;}}private static class getCategory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCategory_args> {public getCategory() {super("getCategory");}protected getCategory_args getEmptyArgsInstance() {return new getCategory_args();}protected getCategory_result getResult(I iface, getCategory_args args) throws org.apache.thrift.TException {getCategory_result result = new getCategory_result();result.success = iface.getCategory(args.id);return result;}}private static class getAllCategories<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllCategories_args> {public getAllCategories() {super("getAllCategories");}protected getAllCategories_args getEmptyArgsInstance() {return new getAllCategories_args();}protected getAllCategories_result getResult(I iface, getAllCategories_args args) throws org.apache.thrift.TException {getAllCategories_result result = new getAllCategories_result();result.success = iface.getAllCategories();return result;}}private static class getAllSimilarItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllSimilarItems_args> {public getAllSimilarItems() {super("getAllSimilarItems");}protected getAllSimilarItems_args getEmptyArgsInstance() {return new getAllSimilarItems_args();}protected getAllSimilarItems_result getResult(I iface, getAllSimilarItems_args args) throws org.apache.thrift.TException {getAllSimilarItems_result result = new getAllSimilarItems_result();result.success = iface.getAllSimilarItems(args.itemId);return result;}}private static class addSimilarItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addSimilarItem_args> {public addSimilarItem() {super("addSimilarItem");}protected addSimilarItem_args getEmptyArgsInstance() {return new addSimilarItem_args();}protected addSimilarItem_result getResult(I iface, addSimilarItem_args args) throws org.apache.thrift.TException {addSimilarItem_result result = new addSimilarItem_result();try {result.success = iface.addSimilarItem(args.itemId, args.catalogItemId);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class deleteSimilarItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteSimilarItem_args> {public deleteSimilarItem() {super("deleteSimilarItem");}protected deleteSimilarItem_args getEmptyArgsInstance() {return new deleteSimilarItem_args();}protected deleteSimilarItem_result getResult(I iface, deleteSimilarItem_args args) throws org.apache.thrift.TException {deleteSimilarItem_result result = new deleteSimilarItem_result();try {result.success = iface.deleteSimilarItem(args.itemId, args.catalogItemId);result.setSuccessIsSet(true);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class checkSimilarItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, checkSimilarItem_args> {public checkSimilarItem() {super("checkSimilarItem");}protected checkSimilarItem_args getEmptyArgsInstance() {return new checkSimilarItem_args();}protected checkSimilarItem_result getResult(I iface, checkSimilarItem_args args) throws org.apache.thrift.TException {checkSimilarItem_result result = new checkSimilarItem_result();result.success = iface.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color);result.setSuccessIsSet(true);return result;}}private static class validateRiskyStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateRiskyStatus_args> {public validateRiskyStatus() {super("validateRiskyStatus");}protected validateRiskyStatus_args getEmptyArgsInstance() {return new validateRiskyStatus_args();}protected validateRiskyStatus_result getResult(I iface, validateRiskyStatus_args args) throws org.apache.thrift.TException {validateRiskyStatus_result result = new validateRiskyStatus_result();iface.validateRiskyStatus(args.itemId);return result;}}private static class changeItemRiskyFlag<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeItemRiskyFlag_args> {public changeItemRiskyFlag() {super("changeItemRiskyFlag");}protected changeItemRiskyFlag_args getEmptyArgsInstance() {return new changeItemRiskyFlag_args();}protected changeItemRiskyFlag_result getResult(I iface, changeItemRiskyFlag_args args) throws org.apache.thrift.TException {changeItemRiskyFlag_result result = new changeItemRiskyFlag_result();iface.changeItemRiskyFlag(args.itemId, args.risky);return result;}}private static class getItemsByRiskyFlag<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemsByRiskyFlag_args> {public getItemsByRiskyFlag() {super("getItemsByRiskyFlag");}protected getItemsByRiskyFlag_args getEmptyArgsInstance() {return new getItemsByRiskyFlag_args();}protected getItemsByRiskyFlag_result getResult(I iface, getItemsByRiskyFlag_args args) throws org.apache.thrift.TException {getItemsByRiskyFlag_result result = new getItemsByRiskyFlag_result();result.success = iface.getItemsByRiskyFlag();return result;}}private static class getItemsForMasterSheet<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemsForMasterSheet_args> {public getItemsForMasterSheet() {super("getItemsForMasterSheet");}protected getItemsForMasterSheet_args getEmptyArgsInstance() {return new getItemsForMasterSheet_args();}protected getItemsForMasterSheet_result getResult(I iface, getItemsForMasterSheet_args args) throws org.apache.thrift.TException {getItemsForMasterSheet_result result = new getItemsForMasterSheet_result();result.success = iface.getItemsForMasterSheet(args.category, args.brand);return result;}}private static class getSimilarItemsCatalogIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSimilarItemsCatalogIds_args> {public getSimilarItemsCatalogIds() {super("getSimilarItemsCatalogIds");}protected getSimilarItemsCatalogIds_args getEmptyArgsInstance() {return new getSimilarItemsCatalogIds_args();}protected getSimilarItemsCatalogIds_result getResult(I iface, getSimilarItemsCatalogIds_args args) throws org.apache.thrift.TException {getSimilarItemsCatalogIds_result result = new getSimilarItemsCatalogIds_result();result.success = iface.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId);return result;}}private static class addProductNotification<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addProductNotification_args> {public addProductNotification() {super("addProductNotification");}protected addProductNotification_args getEmptyArgsInstance() {return new addProductNotification_args();}protected addProductNotification_result getResult(I iface, addProductNotification_args args) throws org.apache.thrift.TException {addProductNotification_result result = new addProductNotification_result();result.success = iface.addProductNotification(args.itemId, args.email);result.setSuccessIsSet(true);return result;}}private static class sendProductNotifications<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendProductNotifications_args> {public sendProductNotifications() {super("sendProductNotifications");}protected sendProductNotifications_args getEmptyArgsInstance() {return new sendProductNotifications_args();}protected sendProductNotifications_result getResult(I iface, sendProductNotifications_args args) throws org.apache.thrift.TException {sendProductNotifications_result result = new sendProductNotifications_result();result.success = iface.sendProductNotifications();result.setSuccessIsSet(true);return result;}}private static class getAllBrandsByCategory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllBrandsByCategory_args> {public getAllBrandsByCategory() {super("getAllBrandsByCategory");}protected getAllBrandsByCategory_args getEmptyArgsInstance() {return new getAllBrandsByCategory_args();}protected getAllBrandsByCategory_result getResult(I iface, getAllBrandsByCategory_args args) throws org.apache.thrift.TException {getAllBrandsByCategory_result result = new getAllBrandsByCategory_result();result.success = iface.getAllBrandsByCategory(args.categoryId);return result;}}private static class getAllBrands<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllBrands_args> {public getAllBrands() {super("getAllBrands");}protected getAllBrands_args getEmptyArgsInstance() {return new getAllBrands_args();}protected getAllBrands_result getResult(I iface, getAllBrands_args args) throws org.apache.thrift.TException {getAllBrands_result result = new getAllBrands_result();result.success = iface.getAllBrands();return result;}}private static class getAllSources<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllSources_args> {public getAllSources() {super("getAllSources");}protected getAllSources_args getEmptyArgsInstance() {return new getAllSources_args();}protected getAllSources_result getResult(I iface, getAllSources_args args) throws org.apache.thrift.TException {getAllSources_result result = new getAllSources_result();result.success = iface.getAllSources();return result;}}private static class getItemPricingBySource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemPricingBySource_args> {public getItemPricingBySource() {super("getItemPricingBySource");}protected getItemPricingBySource_args getEmptyArgsInstance() {return new getItemPricingBySource_args();}protected getItemPricingBySource_result getResult(I iface, getItemPricingBySource_args args) throws org.apache.thrift.TException {getItemPricingBySource_result result = new getItemPricingBySource_result();try {result.success = iface.getItemPricingBySource(args.itemId, args.sourceId);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class addSourceItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addSourceItemPricing_args> {public addSourceItemPricing() {super("addSourceItemPricing");}protected addSourceItemPricing_args getEmptyArgsInstance() {return new addSourceItemPricing_args();}protected addSourceItemPricing_result getResult(I iface, addSourceItemPricing_args args) throws org.apache.thrift.TException {addSourceItemPricing_result result = new addSourceItemPricing_result();try {iface.addSourceItemPricing(args.sourceItemPricing);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getAllSourcePricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllSourcePricing_args> {public getAllSourcePricing() {super("getAllSourcePricing");}protected getAllSourcePricing_args getEmptyArgsInstance() {return new getAllSourcePricing_args();}protected getAllSourcePricing_result getResult(I iface, getAllSourcePricing_args args) throws org.apache.thrift.TException {getAllSourcePricing_result result = new getAllSourcePricing_result();try {result.success = iface.getAllSourcePricing(args.itemId);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getItemForSource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemForSource_args> {public getItemForSource() {super("getItemForSource");}protected getItemForSource_args getEmptyArgsInstance() {return new getItemForSource_args();}protected getItemForSource_result getResult(I iface, getItemForSource_args args) throws org.apache.thrift.TException {getItemForSource_result result = new getItemForSource_result();try {result.success = iface.getItemForSource(args.item_id, args.sourceId);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class searchItemsInRange<I extends Iface> extends org.apache.thrift.ProcessFunction<I, searchItemsInRange_args> {public searchItemsInRange() {super("searchItemsInRange");}protected searchItemsInRange_args getEmptyArgsInstance() {return new searchItemsInRange_args();}protected searchItemsInRange_result getResult(I iface, searchItemsInRange_args args) throws org.apache.thrift.TException {searchItemsInRange_result result = new searchItemsInRange_result();result.success = iface.searchItemsInRange(args.searchTerms, args.offset, args.limit);return result;}}private static class getSearchResultCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSearchResultCount_args> {public getSearchResultCount() {super("getSearchResultCount");}protected getSearchResultCount_args getEmptyArgsInstance() {return new getSearchResultCount_args();}protected getSearchResultCount_result getResult(I iface, getSearchResultCount_args args) throws org.apache.thrift.TException {getSearchResultCount_result result = new getSearchResultCount_result();result.success = iface.getSearchResultCount(args.searchTerms);result.setSuccessIsSet(true);return result;}}private static class getProductNotifications<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProductNotifications_args> {public getProductNotifications() {super("getProductNotifications");}protected getProductNotifications_args getEmptyArgsInstance() {return new getProductNotifications_args();}protected getProductNotifications_result getResult(I iface, getProductNotifications_args args) throws org.apache.thrift.TException {getProductNotifications_result result = new getProductNotifications_result();result.success = iface.getProductNotifications(args.startDateTime);return result;}}private static class getProductNotificationRequestCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProductNotificationRequestCount_args> {public getProductNotificationRequestCount() {super("getProductNotificationRequestCount");}protected getProductNotificationRequestCount_args getEmptyArgsInstance() {return new getProductNotificationRequestCount_args();}protected getProductNotificationRequestCount_result getResult(I iface, getProductNotificationRequestCount_args args) throws org.apache.thrift.TException {getProductNotificationRequestCount_result result = new getProductNotificationRequestCount_result();result.success = iface.getProductNotificationRequestCount(args.startDateTime);return result;}}private static class addAuthorizationLog<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAuthorizationLog_args> {public addAuthorizationLog() {super("addAuthorizationLog");}protected addAuthorizationLog_args getEmptyArgsInstance() {return new addAuthorizationLog_args();}protected addAuthorizationLog_result getResult(I iface, addAuthorizationLog_args args) throws org.apache.thrift.TException {addAuthorizationLog_result result = new addAuthorizationLog_result();try {result.success = iface.addAuthorizationLog(args.itemId, args.username, args.reason);result.setSuccessIsSet(true);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getClearanceSaleCatalogIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getClearanceSaleCatalogIds_args> {public getClearanceSaleCatalogIds() {super("getClearanceSaleCatalogIds");}protected getClearanceSaleCatalogIds_args getEmptyArgsInstance() {return new getClearanceSaleCatalogIds_args();}protected getClearanceSaleCatalogIds_result getResult(I iface, getClearanceSaleCatalogIds_args args) throws org.apache.thrift.TException {getClearanceSaleCatalogIds_result result = new getClearanceSaleCatalogIds_result();try {result.success = iface.getClearanceSaleCatalogIds();} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class addupdateVoucherForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addupdateVoucherForItem_args> {public addupdateVoucherForItem() {super("addupdateVoucherForItem");}protected addupdateVoucherForItem_args getEmptyArgsInstance() {return new addupdateVoucherForItem_args();}protected addupdateVoucherForItem_result getResult(I iface, addupdateVoucherForItem_args args) throws org.apache.thrift.TException {addupdateVoucherForItem_result result = new addupdateVoucherForItem_result();try {result.success = iface.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount);result.setSuccessIsSet(true);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class deleteVoucherForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteVoucherForItem_args> {public deleteVoucherForItem() {super("deleteVoucherForItem");}protected deleteVoucherForItem_args getEmptyArgsInstance() {return new deleteVoucherForItem_args();}protected deleteVoucherForItem_result getResult(I iface, deleteVoucherForItem_args args) throws org.apache.thrift.TException {deleteVoucherForItem_result result = new deleteVoucherForItem_result();try {result.success = iface.deleteVoucherForItem(args.catalog_item_id, args.voucherType);result.setSuccessIsSet(true);} catch (CatalogServiceException cex) {result.cex = cex;}return result;}}private static class getVoucherAmount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVoucherAmount_args> {public getVoucherAmount() {super("getVoucherAmount");}protected getVoucherAmount_args getEmptyArgsInstance() {return new getVoucherAmount_args();}protected getVoucherAmount_result getResult(I iface, getVoucherAmount_args args) throws org.apache.thrift.TException {getVoucherAmount_result result = new getVoucherAmount_result();result.success = iface.getVoucherAmount(args.itemId, args.voucherType);result.setSuccessIsSet(true);return result;}}private static class getAllItemVouchers<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemVouchers_args> {public getAllItemVouchers() {super("getAllItemVouchers");}protected getAllItemVouchers_args getEmptyArgsInstance() {return new getAllItemVouchers_args();}protected getAllItemVouchers_result getResult(I iface, getAllItemVouchers_args args) throws org.apache.thrift.TException {getAllItemVouchers_result result = new getAllItemVouchers_result();result.success = iface.getAllItemVouchers(args.itemId);return result;}}private static class isValidCatalogItemId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isValidCatalogItemId_args> {public isValidCatalogItemId() {super("isValidCatalogItemId");}protected isValidCatalogItemId_args getEmptyArgsInstance() {return new isValidCatalogItemId_args();}protected isValidCatalogItemId_result getResult(I iface, isValidCatalogItemId_args args) throws org.apache.thrift.TException {isValidCatalogItemId_result result = new isValidCatalogItemId_result();result.success = iface.isValidCatalogItemId(args.catalog_item_id);result.setSuccessIsSet(true);return result;}}}public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");private static final org.apache.thrift.protocol.TField ITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("item", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Item item; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM((short)1, "item");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEMreturn ITEM;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM, new org.apache.thrift.meta_data.FieldMetaData("item", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addItem_args.class, metaDataMap);}public addItem_args() {}public addItem_args(Item item){this();this.item = item;}/*** Performs a deep copy on <i>other</i>.*/public addItem_args(addItem_args other) {if (other.isSetItem()) {this.item = new Item(other.item);}}public addItem_args deepCopy() {return new addItem_args(this);}@Overridepublic void clear() {this.item = null;}public Item getItem() {return this.item;}public void setItem(Item item) {this.item = item;}public void unsetItem() {this.item = null;}/** Returns true if field item is set (has been assigned a value) and false otherwise */public boolean isSetItem() {return this.item != null;}public void setItemIsSet(boolean value) {if (!value) {this.item = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM:if (value == null) {unsetItem();} else {setItem((Item)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM:return getItem();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM:return isSetItem();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addItem_args)return this.equals((addItem_args)that);return false;}public boolean equals(addItem_args that) {if (that == null)return false;boolean this_present_item = true && this.isSetItem();boolean that_present_item = true && that.isSetItem();if (this_present_item || that_present_item) {if (!(this_present_item && that_present_item))return false;if (!this.item.equals(that.item))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addItem_args typedOther = (addItem_args)other;lastComparison = Boolean.valueOf(isSetItem()).compareTo(typedOther.isSetItem());if (lastComparison != 0) {return lastComparison;}if (isSetItem()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item, typedOther.item);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEMif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.item = new Item();this.item.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.item != null) {oprot.writeFieldBegin(ITEM_FIELD_DESC);this.item.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addItem_args(");boolean first = true;sb.append("item:");if (this.item == null) {sb.append("null");} else {sb.append(this.item);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addItem_result implements org.apache.thrift.TBase<addItem_result, addItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_result");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);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);private long success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addItem_result.class, metaDataMap);}public addItem_result() {}public addItem_result(long success,CatalogServiceException cex){this();this.success = success;setSuccessIsSet(true);this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public addItem_result(addItem_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public addItem_result deepCopy() {return new addItem_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;this.cex = null;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addItem_result)return this.equals((addItem_result)that);return false;}public boolean equals(addItem_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addItem_result typedOther = (addItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addItem_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateItem_args implements org.apache.thrift.TBase<updateItem_args, updateItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItem_args");private static final org.apache.thrift.protocol.TField ITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("item", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Item item; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM((short)1, "item");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEMreturn ITEM;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM, new org.apache.thrift.meta_data.FieldMetaData("item", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItem_args.class, metaDataMap);}public updateItem_args() {}public updateItem_args(Item item){this();this.item = item;}/*** Performs a deep copy on <i>other</i>.*/public updateItem_args(updateItem_args other) {if (other.isSetItem()) {this.item = new Item(other.item);}}public updateItem_args deepCopy() {return new updateItem_args(this);}@Overridepublic void clear() {this.item = null;}public Item getItem() {return this.item;}public void setItem(Item item) {this.item = item;}public void unsetItem() {this.item = null;}/** Returns true if field item is set (has been assigned a value) and false otherwise */public boolean isSetItem() {return this.item != null;}public void setItemIsSet(boolean value) {if (!value) {this.item = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM:if (value == null) {unsetItem();} else {setItem((Item)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM:return getItem();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM:return isSetItem();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateItem_args)return this.equals((updateItem_args)that);return false;}public boolean equals(updateItem_args that) {if (that == null)return false;boolean this_present_item = true && this.isSetItem();boolean that_present_item = true && that.isSetItem();if (this_present_item || that_present_item) {if (!(this_present_item && that_present_item))return false;if (!this.item.equals(that.item))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateItem_args typedOther = (updateItem_args)other;lastComparison = Boolean.valueOf(isSetItem()).compareTo(typedOther.isSetItem());if (lastComparison != 0) {return lastComparison;}if (isSetItem()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item, typedOther.item);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEMif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.item = new Item();this.item.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.item != null) {oprot.writeFieldBegin(ITEM_FIELD_DESC);this.item.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateItem_args(");boolean first = true;sb.append("item:");if (this.item == null) {sb.append("null");} else {sb.append(this.item);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateItem_result implements org.apache.thrift.TBase<updateItem_result, updateItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItem_result");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);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);private long success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItem_result.class, metaDataMap);}public updateItem_result() {}public updateItem_result(long success,CatalogServiceException cex){this();this.success = success;setSuccessIsSet(true);this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public updateItem_result(updateItem_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public updateItem_result deepCopy() {return new updateItem_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;this.cex = null;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateItem_result)return this.equals((updateItem_result)that);return false;}public boolean equals(updateItem_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateItem_result typedOther = (updateItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateItem_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class isActive_args implements org.apache.thrift.TBase<isActive_args, isActive_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isActive_args");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);private long itemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isActive_args.class, metaDataMap);}public isActive_args() {}public isActive_args(long itemId){this();this.itemId = itemId;setItemIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public isActive_args(isActive_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;}public isActive_args deepCopy() {return new isActive_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof isActive_args)return this.equals((isActive_args)that);return false;}public boolean equals(isActive_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(isActive_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;isActive_args typedOther = (isActive_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("isActive_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class isActive_result implements org.apache.thrift.TBase<isActive_result, isActive_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isActive_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private static final org.apache.thrift.protocol.TField ISEX_FIELD_DESC = new org.apache.thrift.protocol.TField("isex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private ItemShippingInfo success; // requiredprivate CatalogServiceException isex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),ISEX((short)1, "isex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // ISEXreturn ISEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemShippingInfo.class)));tmpMap.put(_Fields.ISEX, new org.apache.thrift.meta_data.FieldMetaData("isex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isActive_result.class, metaDataMap);}public isActive_result() {}public isActive_result(ItemShippingInfo success,CatalogServiceException isex){this();this.success = success;this.isex = isex;}/*** Performs a deep copy on <i>other</i>.*/public isActive_result(isActive_result other) {if (other.isSetSuccess()) {this.success = new ItemShippingInfo(other.success);}if (other.isSetIsex()) {this.isex = new CatalogServiceException(other.isex);}}public isActive_result deepCopy() {return new isActive_result(this);}@Overridepublic void clear() {this.success = null;this.isex = null;}public ItemShippingInfo getSuccess() {return this.success;}public void setSuccess(ItemShippingInfo success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getIsex() {return this.isex;}public void setIsex(CatalogServiceException isex) {this.isex = isex;}public void unsetIsex() {this.isex = null;}/** Returns true if field isex is set (has been assigned a value) and false otherwise */public boolean isSetIsex() {return this.isex != null;}public void setIsexIsSet(boolean value) {if (!value) {this.isex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((ItemShippingInfo)value);}break;case ISEX:if (value == null) {unsetIsex();} else {setIsex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case ISEX:return getIsex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case ISEX:return isSetIsex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof isActive_result)return this.equals((isActive_result)that);return false;}public boolean equals(isActive_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_isex = true && this.isSetIsex();boolean that_present_isex = true && that.isSetIsex();if (this_present_isex || that_present_isex) {if (!(this_present_isex && that_present_isex))return false;if (!this.isex.equals(that.isex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(isActive_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;isActive_result typedOther = (isActive_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetIsex()).compareTo(typedOther.isSetIsex());if (lastComparison != 0) {return lastComparison;}if (isSetIsex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isex, typedOther.isex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new ItemShippingInfo();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // ISEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.isex = new CatalogServiceException();this.isex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();} else if (this.isSetIsex()) {oprot.writeFieldBegin(ISEX_FIELD_DESC);this.isex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("isActive_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("isex:");if (this.isex == null) {sb.append("null");} else {sb.append(this.isex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemStatusDescription_args implements org.apache.thrift.TBase<getItemStatusDescription_args, getItemStatusDescription_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemStatusDescription_args");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);private long itemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemStatusDescription_args.class, metaDataMap);}public getItemStatusDescription_args() {}public getItemStatusDescription_args(long itemId){this();this.itemId = itemId;setItemIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getItemStatusDescription_args(getItemStatusDescription_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;}public getItemStatusDescription_args deepCopy() {return new getItemStatusDescription_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemStatusDescription_args)return this.equals((getItemStatusDescription_args)that);return false;}public boolean equals(getItemStatusDescription_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemStatusDescription_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemStatusDescription_args typedOther = (getItemStatusDescription_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemStatusDescription_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemStatusDescription_result implements org.apache.thrift.TBase<getItemStatusDescription_result, getItemStatusDescription_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemStatusDescription_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);private static final org.apache.thrift.protocol.TField ISEX_FIELD_DESC = new org.apache.thrift.protocol.TField("isex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private String success; // requiredprivate CatalogServiceException isex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),ISEX((short)1, "isex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // ISEXreturn ISEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.ISEX, new org.apache.thrift.meta_data.FieldMetaData("isex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemStatusDescription_result.class, metaDataMap);}public getItemStatusDescription_result() {}public getItemStatusDescription_result(String success,CatalogServiceException isex){this();this.success = success;this.isex = isex;}/*** Performs a deep copy on <i>other</i>.*/public getItemStatusDescription_result(getItemStatusDescription_result other) {if (other.isSetSuccess()) {this.success = other.success;}if (other.isSetIsex()) {this.isex = new CatalogServiceException(other.isex);}}public getItemStatusDescription_result deepCopy() {return new getItemStatusDescription_result(this);}@Overridepublic void clear() {this.success = null;this.isex = null;}public String getSuccess() {return this.success;}public void setSuccess(String success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getIsex() {return this.isex;}public void setIsex(CatalogServiceException isex) {this.isex = isex;}public void unsetIsex() {this.isex = null;}/** Returns true if field isex is set (has been assigned a value) and false otherwise */public boolean isSetIsex() {return this.isex != null;}public void setIsexIsSet(boolean value) {if (!value) {this.isex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((String)value);}break;case ISEX:if (value == null) {unsetIsex();} else {setIsex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case ISEX:return getIsex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case ISEX:return isSetIsex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemStatusDescription_result)return this.equals((getItemStatusDescription_result)that);return false;}public boolean equals(getItemStatusDescription_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_isex = true && this.isSetIsex();boolean that_present_isex = true && that.isSetIsex();if (this_present_isex || that_present_isex) {if (!(this_present_isex && that_present_isex))return false;if (!this.isex.equals(that.isex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemStatusDescription_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemStatusDescription_result typedOther = (getItemStatusDescription_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetIsex()).compareTo(typedOther.isSetIsex());if (lastComparison != 0) {return lastComparison;}if (isSetIsex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isex, typedOther.isex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRING) {this.success = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // ISEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.isex = new CatalogServiceException();this.isex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeString(this.success);oprot.writeFieldEnd();} else if (this.isSetIsex()) {oprot.writeFieldBegin(ISEX_FIELD_DESC);this.isex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemStatusDescription_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("isex:");if (this.isex == null) {sb.append("null");} else {sb.append(this.isex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class startItemOn_args implements org.apache.thrift.TBase<startItemOn_args, startItemOn_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startItemOn_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)2);private long item_id; // requiredprivate long timestamp; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "item_id"),TIMESTAMP((short)2, "timestamp");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // TIMESTAMPreturn TIMESTAMP;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEM_ID_ISSET_ID = 0;private static final int __TIMESTAMP_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startItemOn_args.class, metaDataMap);}public startItemOn_args() {}public startItemOn_args(long item_id,long timestamp){this();this.item_id = item_id;setItem_idIsSet(true);this.timestamp = timestamp;setTimestampIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public startItemOn_args(startItemOn_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.item_id = other.item_id;this.timestamp = other.timestamp;}public startItemOn_args deepCopy() {return new startItemOn_args(this);}@Overridepublic void clear() {setItem_idIsSet(false);this.item_id = 0;setTimestampIsSet(false);this.timestamp = 0;}public long getItem_id() {return this.item_id;}public void setItem_id(long item_id) {this.item_id = item_id;setItem_idIsSet(true);}public void unsetItem_id() {__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);}/** Returns true if field item_id is set (has been assigned a value) and false otherwise */public boolean isSetItem_id() {return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);}public void setItem_idIsSet(boolean value) {__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);}public long getTimestamp() {return this.timestamp;}public void setTimestamp(long timestamp) {this.timestamp = timestamp;setTimestampIsSet(true);}public void unsetTimestamp() {__isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);}/** Returns true if field timestamp is set (has been assigned a value) and false otherwise */public boolean isSetTimestamp() {return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);}public void setTimestampIsSet(boolean value) {__isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItem_id();} else {setItem_id((Long)value);}break;case TIMESTAMP:if (value == null) {unsetTimestamp();} else {setTimestamp((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItem_id());case TIMESTAMP:return Long.valueOf(getTimestamp());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItem_id();case TIMESTAMP:return isSetTimestamp();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof startItemOn_args)return this.equals((startItemOn_args)that);return false;}public boolean equals(startItemOn_args that) {if (that == null)return false;boolean this_present_item_id = true;boolean that_present_item_id = true;if (this_present_item_id || that_present_item_id) {if (!(this_present_item_id && that_present_item_id))return false;if (this.item_id != that.item_id)return false;}boolean this_present_timestamp = true;boolean that_present_timestamp = true;if (this_present_timestamp || that_present_timestamp) {if (!(this_present_timestamp && that_present_timestamp))return false;if (this.timestamp != that.timestamp)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(startItemOn_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;startItemOn_args typedOther = (startItemOn_args)other;lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());if (lastComparison != 0) {return lastComparison;}if (isSetItem_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());if (lastComparison != 0) {return lastComparison;}if (isSetTimestamp()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.item_id = iprot.readI64();setItem_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // TIMESTAMPif (field.type == org.apache.thrift.protocol.TType.I64) {this.timestamp = iprot.readI64();setTimestampIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.item_id);oprot.writeFieldEnd();oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);oprot.writeI64(this.timestamp);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("startItemOn_args(");boolean first = true;sb.append("item_id:");sb.append(this.item_id);first = false;if (!first) sb.append(", ");sb.append("timestamp:");sb.append(this.timestamp);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class startItemOn_result implements org.apache.thrift.TBase<startItemOn_result, startItemOn_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startItemOn_result");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);private CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startItemOn_result.class, metaDataMap);}public startItemOn_result() {}public startItemOn_result(CatalogServiceException cex){this();this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public startItemOn_result(startItemOn_result other) {if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public startItemOn_result deepCopy() {return new startItemOn_result(this);}@Overridepublic void clear() {this.cex = null;}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof startItemOn_result)return this.equals((startItemOn_result)that);return false;}public boolean equals(startItemOn_result that) {if (that == null)return false;boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(startItemOn_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;startItemOn_result typedOther = (startItemOn_result)other;lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("startItemOn_result(");boolean first = true;sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class retireItemOn_args implements org.apache.thrift.TBase<retireItemOn_args, retireItemOn_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("retireItemOn_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)2);private long item_id; // requiredprivate long timestamp; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "item_id"),TIMESTAMP((short)2, "timestamp");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // TIMESTAMPreturn TIMESTAMP;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEM_ID_ISSET_ID = 0;private static final int __TIMESTAMP_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(retireItemOn_args.class, metaDataMap);}public retireItemOn_args() {}public retireItemOn_args(long item_id,long timestamp){this();this.item_id = item_id;setItem_idIsSet(true);this.timestamp = timestamp;setTimestampIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public retireItemOn_args(retireItemOn_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.item_id = other.item_id;this.timestamp = other.timestamp;}public retireItemOn_args deepCopy() {return new retireItemOn_args(this);}@Overridepublic void clear() {setItem_idIsSet(false);this.item_id = 0;setTimestampIsSet(false);this.timestamp = 0;}public long getItem_id() {return this.item_id;}public void setItem_id(long item_id) {this.item_id = item_id;setItem_idIsSet(true);}public void unsetItem_id() {__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);}/** Returns true if field item_id is set (has been assigned a value) and false otherwise */public boolean isSetItem_id() {return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);}public void setItem_idIsSet(boolean value) {__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);}public long getTimestamp() {return this.timestamp;}public void setTimestamp(long timestamp) {this.timestamp = timestamp;setTimestampIsSet(true);}public void unsetTimestamp() {__isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);}/** Returns true if field timestamp is set (has been assigned a value) and false otherwise */public boolean isSetTimestamp() {return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);}public void setTimestampIsSet(boolean value) {__isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItem_id();} else {setItem_id((Long)value);}break;case TIMESTAMP:if (value == null) {unsetTimestamp();} else {setTimestamp((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItem_id());case TIMESTAMP:return Long.valueOf(getTimestamp());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItem_id();case TIMESTAMP:return isSetTimestamp();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof retireItemOn_args)return this.equals((retireItemOn_args)that);return false;}public boolean equals(retireItemOn_args that) {if (that == null)return false;boolean this_present_item_id = true;boolean that_present_item_id = true;if (this_present_item_id || that_present_item_id) {if (!(this_present_item_id && that_present_item_id))return false;if (this.item_id != that.item_id)return false;}boolean this_present_timestamp = true;boolean that_present_timestamp = true;if (this_present_timestamp || that_present_timestamp) {if (!(this_present_timestamp && that_present_timestamp))return false;if (this.timestamp != that.timestamp)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(retireItemOn_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;retireItemOn_args typedOther = (retireItemOn_args)other;lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());if (lastComparison != 0) {return lastComparison;}if (isSetItem_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());if (lastComparison != 0) {return lastComparison;}if (isSetTimestamp()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.item_id = iprot.readI64();setItem_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // TIMESTAMPif (field.type == org.apache.thrift.protocol.TType.I64) {this.timestamp = iprot.readI64();setTimestampIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.item_id);oprot.writeFieldEnd();oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);oprot.writeI64(this.timestamp);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("retireItemOn_args(");boolean first = true;sb.append("item_id:");sb.append(this.item_id);first = false;if (!first) sb.append(", ");sb.append("timestamp:");sb.append(this.timestamp);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class retireItemOn_result implements org.apache.thrift.TBase<retireItemOn_result, retireItemOn_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("retireItemOn_result");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);private CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(retireItemOn_result.class, metaDataMap);}public retireItemOn_result() {}public retireItemOn_result(CatalogServiceException cex){this();this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public retireItemOn_result(retireItemOn_result other) {if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public retireItemOn_result deepCopy() {return new retireItemOn_result(this);}@Overridepublic void clear() {this.cex = null;}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof retireItemOn_result)return this.equals((retireItemOn_result)that);return false;}public boolean equals(retireItemOn_result that) {if (that == null)return false;boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(retireItemOn_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;retireItemOn_result typedOther = (retireItemOn_result)other;lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("retireItemOn_result(");boolean first = true;sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class changeItemStatus_args implements org.apache.thrift.TBase<changeItemStatus_args, changeItemStatus_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeItemStatus_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField NEWSTATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("newstatus", org.apache.thrift.protocol.TType.I32, (short)3);private long item_id; // requiredprivate long timestamp; // requiredprivate status newstatus; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "item_id"),TIMESTAMP((short)2, "timestamp"),/**** @see status*/NEWSTATUS((short)3, "newstatus");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // TIMESTAMPreturn TIMESTAMP;case 3: // NEWSTATUSreturn NEWSTATUS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEM_ID_ISSET_ID = 0;private static final int __TIMESTAMP_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.NEWSTATUS, new org.apache.thrift.meta_data.FieldMetaData("newstatus", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, status.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeItemStatus_args.class, metaDataMap);}public changeItemStatus_args() {}public changeItemStatus_args(long item_id,long timestamp,status newstatus){this();this.item_id = item_id;setItem_idIsSet(true);this.timestamp = timestamp;setTimestampIsSet(true);this.newstatus = newstatus;}/*** Performs a deep copy on <i>other</i>.*/public changeItemStatus_args(changeItemStatus_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.item_id = other.item_id;this.timestamp = other.timestamp;if (other.isSetNewstatus()) {this.newstatus = other.newstatus;}}public changeItemStatus_args deepCopy() {return new changeItemStatus_args(this);}@Overridepublic void clear() {setItem_idIsSet(false);this.item_id = 0;setTimestampIsSet(false);this.timestamp = 0;this.newstatus = null;}public long getItem_id() {return this.item_id;}public void setItem_id(long item_id) {this.item_id = item_id;setItem_idIsSet(true);}public void unsetItem_id() {__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);}/** Returns true if field item_id is set (has been assigned a value) and false otherwise */public boolean isSetItem_id() {return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);}public void setItem_idIsSet(boolean value) {__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);}public long getTimestamp() {return this.timestamp;}public void setTimestamp(long timestamp) {this.timestamp = timestamp;setTimestampIsSet(true);}public void unsetTimestamp() {__isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);}/** Returns true if field timestamp is set (has been assigned a value) and false otherwise */public boolean isSetTimestamp() {return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);}public void setTimestampIsSet(boolean value) {__isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);}/**** @see status*/public status getNewstatus() {return this.newstatus;}/**** @see status*/public void setNewstatus(status newstatus) {this.newstatus = newstatus;}public void unsetNewstatus() {this.newstatus = null;}/** Returns true if field newstatus is set (has been assigned a value) and false otherwise */public boolean isSetNewstatus() {return this.newstatus != null;}public void setNewstatusIsSet(boolean value) {if (!value) {this.newstatus = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItem_id();} else {setItem_id((Long)value);}break;case TIMESTAMP:if (value == null) {unsetTimestamp();} else {setTimestamp((Long)value);}break;case NEWSTATUS:if (value == null) {unsetNewstatus();} else {setNewstatus((status)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItem_id());case TIMESTAMP:return Long.valueOf(getTimestamp());case NEWSTATUS:return getNewstatus();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItem_id();case TIMESTAMP:return isSetTimestamp();case NEWSTATUS:return isSetNewstatus();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof changeItemStatus_args)return this.equals((changeItemStatus_args)that);return false;}public boolean equals(changeItemStatus_args that) {if (that == null)return false;boolean this_present_item_id = true;boolean that_present_item_id = true;if (this_present_item_id || that_present_item_id) {if (!(this_present_item_id && that_present_item_id))return false;if (this.item_id != that.item_id)return false;}boolean this_present_timestamp = true;boolean that_present_timestamp = true;if (this_present_timestamp || that_present_timestamp) {if (!(this_present_timestamp && that_present_timestamp))return false;if (this.timestamp != that.timestamp)return false;}boolean this_present_newstatus = true && this.isSetNewstatus();boolean that_present_newstatus = true && that.isSetNewstatus();if (this_present_newstatus || that_present_newstatus) {if (!(this_present_newstatus && that_present_newstatus))return false;if (!this.newstatus.equals(that.newstatus))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(changeItemStatus_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;changeItemStatus_args typedOther = (changeItemStatus_args)other;lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());if (lastComparison != 0) {return lastComparison;}if (isSetItem_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());if (lastComparison != 0) {return lastComparison;}if (isSetTimestamp()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetNewstatus()).compareTo(typedOther.isSetNewstatus());if (lastComparison != 0) {return lastComparison;}if (isSetNewstatus()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newstatus, typedOther.newstatus);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.item_id = iprot.readI64();setItem_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // TIMESTAMPif (field.type == org.apache.thrift.protocol.TType.I64) {this.timestamp = iprot.readI64();setTimestampIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // NEWSTATUSif (field.type == org.apache.thrift.protocol.TType.I32) {this.newstatus = status.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.item_id);oprot.writeFieldEnd();oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);oprot.writeI64(this.timestamp);oprot.writeFieldEnd();if (this.newstatus != null) {oprot.writeFieldBegin(NEWSTATUS_FIELD_DESC);oprot.writeI32(this.newstatus.getValue());oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("changeItemStatus_args(");boolean first = true;sb.append("item_id:");sb.append(this.item_id);first = false;if (!first) sb.append(", ");sb.append("timestamp:");sb.append(this.timestamp);first = false;if (!first) sb.append(", ");sb.append("newstatus:");if (this.newstatus == null) {sb.append("null");} else {sb.append(this.newstatus);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class changeItemStatus_result implements org.apache.thrift.TBase<changeItemStatus_result, changeItemStatus_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeItemStatus_result");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);private CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeItemStatus_result.class, metaDataMap);}public changeItemStatus_result() {}public changeItemStatus_result(CatalogServiceException cex){this();this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public changeItemStatus_result(changeItemStatus_result other) {if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public changeItemStatus_result deepCopy() {return new changeItemStatus_result(this);}@Overridepublic void clear() {this.cex = null;}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof changeItemStatus_result)return this.equals((changeItemStatus_result)that);return false;}public boolean equals(changeItemStatus_result that) {if (that == null)return false;boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(changeItemStatus_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;changeItemStatus_result typedOther = (changeItemStatus_result)other;lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("changeItemStatus_result(");boolean first = true;sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItem_args implements org.apache.thrift.TBase<getItem_args, getItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItem_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);private long item_id; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "item_id");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEM_ID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItem_args.class, metaDataMap);}public getItem_args() {}public getItem_args(long item_id){this();this.item_id = item_id;setItem_idIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getItem_args(getItem_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.item_id = other.item_id;}public getItem_args deepCopy() {return new getItem_args(this);}@Overridepublic void clear() {setItem_idIsSet(false);this.item_id = 0;}public long getItem_id() {return this.item_id;}public void setItem_id(long item_id) {this.item_id = item_id;setItem_idIsSet(true);}public void unsetItem_id() {__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);}/** Returns true if field item_id is set (has been assigned a value) and false otherwise */public boolean isSetItem_id() {return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);}public void setItem_idIsSet(boolean value) {__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItem_id();} else {setItem_id((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItem_id());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItem_id();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItem_args)return this.equals((getItem_args)that);return false;}public boolean equals(getItem_args that) {if (that == null)return false;boolean this_present_item_id = true;boolean that_present_item_id = true;if (this_present_item_id || that_present_item_id) {if (!(this_present_item_id && that_present_item_id))return false;if (this.item_id != that.item_id)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItem_args typedOther = (getItem_args)other;lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());if (lastComparison != 0) {return lastComparison;}if (isSetItem_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.item_id = iprot.readI64();setItem_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.item_id);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItem_args(");boolean first = true;sb.append("item_id:");sb.append(this.item_id);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItem_result implements org.apache.thrift.TBase<getItem_result, getItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItem_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);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);private Item success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItem_result.class, metaDataMap);}public getItem_result() {}public getItem_result(Item success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getItem_result(getItem_result other) {if (other.isSetSuccess()) {this.success = new Item(other.success);}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getItem_result deepCopy() {return new getItem_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public Item getSuccess() {return this.success;}public void setSuccess(Item success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Item)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItem_result)return this.equals((getItem_result)that);return false;}public boolean equals(getItem_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItem_result typedOther = (getItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new Item();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItem_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemsByCatalogId_args implements org.apache.thrift.TBase<getItemsByCatalogId_args, getItemsByCatalogId_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsByCatalogId_args");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);private long catalog_item_id; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CATALOG_ITEM_ID((short)1, "catalog_item_id");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CATALOG_ITEM_IDreturn CATALOG_ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CATALOG_ITEM_ID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalog_item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsByCatalogId_args.class, metaDataMap);}public getItemsByCatalogId_args() {}public getItemsByCatalogId_args(long catalog_item_id){this();this.catalog_item_id = catalog_item_id;setCatalog_item_idIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getItemsByCatalogId_args(getItemsByCatalogId_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.catalog_item_id = other.catalog_item_id;}public getItemsByCatalogId_args deepCopy() {return new getItemsByCatalogId_args(this);}@Overridepublic void clear() {setCatalog_item_idIsSet(false);this.catalog_item_id = 0;}public long getCatalog_item_id() {return this.catalog_item_id;}public void setCatalog_item_id(long catalog_item_id) {this.catalog_item_id = catalog_item_id;setCatalog_item_idIsSet(true);}public void unsetCatalog_item_id() {__isset_bit_vector.clear(__CATALOG_ITEM_ID_ISSET_ID);}/** Returns true if field catalog_item_id is set (has been assigned a value) and false otherwise */public boolean isSetCatalog_item_id() {return __isset_bit_vector.get(__CATALOG_ITEM_ID_ISSET_ID);}public void setCatalog_item_idIsSet(boolean value) {__isset_bit_vector.set(__CATALOG_ITEM_ID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case CATALOG_ITEM_ID:if (value == null) {unsetCatalog_item_id();} else {setCatalog_item_id((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CATALOG_ITEM_ID:return Long.valueOf(getCatalog_item_id());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CATALOG_ITEM_ID:return isSetCatalog_item_id();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemsByCatalogId_args)return this.equals((getItemsByCatalogId_args)that);return false;}public boolean equals(getItemsByCatalogId_args that) {if (that == null)return false;boolean this_present_catalog_item_id = true;boolean that_present_catalog_item_id = true;if (this_present_catalog_item_id || that_present_catalog_item_id) {if (!(this_present_catalog_item_id && that_present_catalog_item_id))return false;if (this.catalog_item_id != that.catalog_item_id)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemsByCatalogId_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemsByCatalogId_args typedOther = (getItemsByCatalogId_args)other;lastComparison = Boolean.valueOf(isSetCatalog_item_id()).compareTo(typedOther.isSetCatalog_item_id());if (lastComparison != 0) {return lastComparison;}if (isSetCatalog_item_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalog_item_id, typedOther.catalog_item_id);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CATALOG_ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.catalog_item_id = iprot.readI64();setCatalog_item_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);oprot.writeI64(this.catalog_item_id);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemsByCatalogId_args(");boolean first = true;sb.append("catalog_item_id:");sb.append(this.catalog_item_id);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemsByCatalogId_result implements org.apache.thrift.TBase<getItemsByCatalogId_result, getItemsByCatalogId_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsByCatalogId_result");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);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);private List<Item> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsByCatalogId_result.class, metaDataMap);}public getItemsByCatalogId_result() {}public getItemsByCatalogId_result(List<Item> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getItemsByCatalogId_result(getItemsByCatalogId_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getItemsByCatalogId_result deepCopy() {return new getItemsByCatalogId_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemsByCatalogId_result)return this.equals((getItemsByCatalogId_result)that);return false;}public boolean equals(getItemsByCatalogId_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemsByCatalogId_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemsByCatalogId_result typedOther = (getItemsByCatalogId_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list9 = iprot.readListBegin();this.success = new ArrayList<Item>(_list9.size);for (int _i10 = 0; _i10 < _list9.size; ++_i10){Item _elem11; // required_elem11 = new Item();_elem11.read(iprot);this.success.add(_elem11);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter12 : this.success){_iter12.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemsByCatalogId_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getValidItemsByCatalogId_args implements org.apache.thrift.TBase<getValidItemsByCatalogId_args, getValidItemsByCatalogId_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidItemsByCatalogId_args");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);private long catalog_item_id; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CATALOG_ITEM_ID((short)1, "catalog_item_id");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CATALOG_ITEM_IDreturn CATALOG_ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CATALOG_ITEM_ID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalog_item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getValidItemsByCatalogId_args.class, metaDataMap);}public getValidItemsByCatalogId_args() {}public getValidItemsByCatalogId_args(long catalog_item_id){this();this.catalog_item_id = catalog_item_id;setCatalog_item_idIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getValidItemsByCatalogId_args(getValidItemsByCatalogId_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.catalog_item_id = other.catalog_item_id;}public getValidItemsByCatalogId_args deepCopy() {return new getValidItemsByCatalogId_args(this);}@Overridepublic void clear() {setCatalog_item_idIsSet(false);this.catalog_item_id = 0;}public long getCatalog_item_id() {return this.catalog_item_id;}public void setCatalog_item_id(long catalog_item_id) {this.catalog_item_id = catalog_item_id;setCatalog_item_idIsSet(true);}public void unsetCatalog_item_id() {__isset_bit_vector.clear(__CATALOG_ITEM_ID_ISSET_ID);}/** Returns true if field catalog_item_id is set (has been assigned a value) and false otherwise */public boolean isSetCatalog_item_id() {return __isset_bit_vector.get(__CATALOG_ITEM_ID_ISSET_ID);}public void setCatalog_item_idIsSet(boolean value) {__isset_bit_vector.set(__CATALOG_ITEM_ID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case CATALOG_ITEM_ID:if (value == null) {unsetCatalog_item_id();} else {setCatalog_item_id((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CATALOG_ITEM_ID:return Long.valueOf(getCatalog_item_id());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CATALOG_ITEM_ID:return isSetCatalog_item_id();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getValidItemsByCatalogId_args)return this.equals((getValidItemsByCatalogId_args)that);return false;}public boolean equals(getValidItemsByCatalogId_args that) {if (that == null)return false;boolean this_present_catalog_item_id = true;boolean that_present_catalog_item_id = true;if (this_present_catalog_item_id || that_present_catalog_item_id) {if (!(this_present_catalog_item_id && that_present_catalog_item_id))return false;if (this.catalog_item_id != that.catalog_item_id)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getValidItemsByCatalogId_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getValidItemsByCatalogId_args typedOther = (getValidItemsByCatalogId_args)other;lastComparison = Boolean.valueOf(isSetCatalog_item_id()).compareTo(typedOther.isSetCatalog_item_id());if (lastComparison != 0) {return lastComparison;}if (isSetCatalog_item_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalog_item_id, typedOther.catalog_item_id);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CATALOG_ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.catalog_item_id = iprot.readI64();setCatalog_item_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);oprot.writeI64(this.catalog_item_id);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getValidItemsByCatalogId_args(");boolean first = true;sb.append("catalog_item_id:");sb.append(this.catalog_item_id);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getValidItemsByCatalogId_result implements org.apache.thrift.TBase<getValidItemsByCatalogId_result, getValidItemsByCatalogId_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidItemsByCatalogId_result");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);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);private List<Item> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getValidItemsByCatalogId_result.class, metaDataMap);}public getValidItemsByCatalogId_result() {}public getValidItemsByCatalogId_result(List<Item> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getValidItemsByCatalogId_result(getValidItemsByCatalogId_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getValidItemsByCatalogId_result deepCopy() {return new getValidItemsByCatalogId_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getValidItemsByCatalogId_result)return this.equals((getValidItemsByCatalogId_result)that);return false;}public boolean equals(getValidItemsByCatalogId_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getValidItemsByCatalogId_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getValidItemsByCatalogId_result typedOther = (getValidItemsByCatalogId_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list13 = iprot.readListBegin();this.success = new ArrayList<Item>(_list13.size);for (int _i14 = 0; _i14 < _list13.size; ++_i14){Item _elem15; // required_elem15 = new Item();_elem15.read(iprot);this.success.add(_elem15);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter16 : this.success){_iter16.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getValidItemsByCatalogId_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllItems_args implements org.apache.thrift.TBase<getAllItems_args, getAllItems_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItems_args");private static final org.apache.thrift.protocol.TField IS_ACTIVE_FIELD_DESC = new org.apache.thrift.protocol.TField("isActive", org.apache.thrift.protocol.TType.BOOL, (short)1);private boolean isActive; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {IS_ACTIVE((short)1, "isActive");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // IS_ACTIVEreturn IS_ACTIVE;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ISACTIVE_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.IS_ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("isActive", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItems_args.class, metaDataMap);}public getAllItems_args() {}public getAllItems_args(boolean isActive){this();this.isActive = isActive;setIsActiveIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAllItems_args(getAllItems_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.isActive = other.isActive;}public getAllItems_args deepCopy() {return new getAllItems_args(this);}@Overridepublic void clear() {setIsActiveIsSet(false);this.isActive = false;}public boolean isIsActive() {return this.isActive;}public void setIsActive(boolean isActive) {this.isActive = isActive;setIsActiveIsSet(true);}public void unsetIsActive() {__isset_bit_vector.clear(__ISACTIVE_ISSET_ID);}/** Returns true if field isActive is set (has been assigned a value) and false otherwise */public boolean isSetIsActive() {return __isset_bit_vector.get(__ISACTIVE_ISSET_ID);}public void setIsActiveIsSet(boolean value) {__isset_bit_vector.set(__ISACTIVE_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case IS_ACTIVE:if (value == null) {unsetIsActive();} else {setIsActive((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case IS_ACTIVE:return Boolean.valueOf(isIsActive());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case IS_ACTIVE:return isSetIsActive();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllItems_args)return this.equals((getAllItems_args)that);return false;}public boolean equals(getAllItems_args that) {if (that == null)return false;boolean this_present_isActive = true;boolean that_present_isActive = true;if (this_present_isActive || that_present_isActive) {if (!(this_present_isActive && that_present_isActive))return false;if (this.isActive != that.isActive)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllItems_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllItems_args typedOther = (getAllItems_args)other;lastComparison = Boolean.valueOf(isSetIsActive()).compareTo(typedOther.isSetIsActive());if (lastComparison != 0) {return lastComparison;}if (isSetIsActive()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isActive, typedOther.isActive);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // IS_ACTIVEif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.isActive = iprot.readBool();setIsActiveIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(IS_ACTIVE_FIELD_DESC);oprot.writeBool(this.isActive);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllItems_args(");boolean first = true;sb.append("isActive:");sb.append(this.isActive);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllItems_result implements org.apache.thrift.TBase<getAllItems_result, getAllItems_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItems_result");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);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);private List<Item> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItems_result.class, metaDataMap);}public getAllItems_result() {}public getAllItems_result(List<Item> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getAllItems_result(getAllItems_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getAllItems_result deepCopy() {return new getAllItems_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllItems_result)return this.equals((getAllItems_result)that);return false;}public boolean equals(getAllItems_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllItems_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllItems_result typedOther = (getAllItems_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list17 = iprot.readListBegin();this.success = new ArrayList<Item>(_list17.size);for (int _i18 = 0; _i18 < _list17.size; ++_i18){Item _elem19; // required_elem19 = new Item();_elem19.read(iprot);this.success.add(_elem19);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter20 : this.success){_iter20.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllItems_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllItemsByStatus_args implements org.apache.thrift.TBase<getAllItemsByStatus_args, getAllItemsByStatus_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsByStatus_args");private static final org.apache.thrift.protocol.TField ITEM_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemStatus", org.apache.thrift.protocol.TType.I32, (short)1);private status itemStatus; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {/**** @see status*/ITEM_STATUS((short)1, "itemStatus");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_STATUSreturn ITEM_STATUS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_STATUS, new org.apache.thrift.meta_data.FieldMetaData("itemStatus", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, status.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsByStatus_args.class, metaDataMap);}public getAllItemsByStatus_args() {}public getAllItemsByStatus_args(status itemStatus){this();this.itemStatus = itemStatus;}/*** Performs a deep copy on <i>other</i>.*/public getAllItemsByStatus_args(getAllItemsByStatus_args other) {if (other.isSetItemStatus()) {this.itemStatus = other.itemStatus;}}public getAllItemsByStatus_args deepCopy() {return new getAllItemsByStatus_args(this);}@Overridepublic void clear() {this.itemStatus = null;}/**** @see status*/public status getItemStatus() {return this.itemStatus;}/**** @see status*/public void setItemStatus(status itemStatus) {this.itemStatus = itemStatus;}public void unsetItemStatus() {this.itemStatus = null;}/** Returns true if field itemStatus is set (has been assigned a value) and false otherwise */public boolean isSetItemStatus() {return this.itemStatus != null;}public void setItemStatusIsSet(boolean value) {if (!value) {this.itemStatus = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_STATUS:if (value == null) {unsetItemStatus();} else {setItemStatus((status)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_STATUS:return getItemStatus();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_STATUS:return isSetItemStatus();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllItemsByStatus_args)return this.equals((getAllItemsByStatus_args)that);return false;}public boolean equals(getAllItemsByStatus_args that) {if (that == null)return false;boolean this_present_itemStatus = true && this.isSetItemStatus();boolean that_present_itemStatus = true && that.isSetItemStatus();if (this_present_itemStatus || that_present_itemStatus) {if (!(this_present_itemStatus && that_present_itemStatus))return false;if (!this.itemStatus.equals(that.itemStatus))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllItemsByStatus_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllItemsByStatus_args typedOther = (getAllItemsByStatus_args)other;lastComparison = Boolean.valueOf(isSetItemStatus()).compareTo(typedOther.isSetItemStatus());if (lastComparison != 0) {return lastComparison;}if (isSetItemStatus()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemStatus, typedOther.itemStatus);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_STATUSif (field.type == org.apache.thrift.protocol.TType.I32) {this.itemStatus = status.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.itemStatus != null) {oprot.writeFieldBegin(ITEM_STATUS_FIELD_DESC);oprot.writeI32(this.itemStatus.getValue());oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllItemsByStatus_args(");boolean first = true;sb.append("itemStatus:");if (this.itemStatus == null) {sb.append("null");} else {sb.append(this.itemStatus);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllItemsByStatus_result implements org.apache.thrift.TBase<getAllItemsByStatus_result, getAllItemsByStatus_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsByStatus_result");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);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);private List<Item> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsByStatus_result.class, metaDataMap);}public getAllItemsByStatus_result() {}public getAllItemsByStatus_result(List<Item> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getAllItemsByStatus_result(getAllItemsByStatus_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getAllItemsByStatus_result deepCopy() {return new getAllItemsByStatus_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllItemsByStatus_result)return this.equals((getAllItemsByStatus_result)that);return false;}public boolean equals(getAllItemsByStatus_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllItemsByStatus_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllItemsByStatus_result typedOther = (getAllItemsByStatus_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list21 = iprot.readListBegin();this.success = new ArrayList<Item>(_list21.size);for (int _i22 = 0; _i22 < _list21.size; ++_i22){Item _elem23; // required_elem23 = new Item();_elem23.read(iprot);this.success.add(_elem23);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter24 : this.success){_iter24.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllItemsByStatus_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markItemAsContentComplete_args implements org.apache.thrift.TBase<markItemAsContentComplete_args, markItemAsContentComplete_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markItemAsContentComplete_args");private static final org.apache.thrift.protocol.TField ENTITY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("entityId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("category", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)3);private static final org.apache.thrift.protocol.TField MODEL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("modelName", org.apache.thrift.protocol.TType.STRING, (short)4);private static final org.apache.thrift.protocol.TField MODEL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("modelNumber", org.apache.thrift.protocol.TType.STRING, (short)5);private long entityId; // requiredprivate long category; // requiredprivate String brand; // requiredprivate String modelName; // requiredprivate String modelNumber; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ENTITY_ID((short)1, "entityId"),CATEGORY((short)2, "category"),BRAND((short)3, "brand"),MODEL_NAME((short)4, "modelName"),MODEL_NUMBER((short)5, "modelNumber");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ENTITY_IDreturn ENTITY_ID;case 2: // CATEGORYreturn CATEGORY;case 3: // BRANDreturn BRAND;case 4: // MODEL_NAMEreturn MODEL_NAME;case 5: // MODEL_NUMBERreturn MODEL_NUMBER;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ENTITYID_ISSET_ID = 0;private static final int __CATEGORY_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ENTITY_ID, new org.apache.thrift.meta_data.FieldMetaData("entityId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("modelName", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.MODEL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("modelNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markItemAsContentComplete_args.class, metaDataMap);}public markItemAsContentComplete_args() {}public markItemAsContentComplete_args(long entityId,long category,String brand,String modelName,String modelNumber){this();this.entityId = entityId;setEntityIdIsSet(true);this.category = category;setCategoryIsSet(true);this.brand = brand;this.modelName = modelName;this.modelNumber = modelNumber;}/*** Performs a deep copy on <i>other</i>.*/public markItemAsContentComplete_args(markItemAsContentComplete_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.entityId = other.entityId;this.category = other.category;if (other.isSetBrand()) {this.brand = other.brand;}if (other.isSetModelName()) {this.modelName = other.modelName;}if (other.isSetModelNumber()) {this.modelNumber = other.modelNumber;}}public markItemAsContentComplete_args deepCopy() {return new markItemAsContentComplete_args(this);}@Overridepublic void clear() {setEntityIdIsSet(false);this.entityId = 0;setCategoryIsSet(false);this.category = 0;this.brand = null;this.modelName = null;this.modelNumber = null;}public long getEntityId() {return this.entityId;}public void setEntityId(long entityId) {this.entityId = entityId;setEntityIdIsSet(true);}public void unsetEntityId() {__isset_bit_vector.clear(__ENTITYID_ISSET_ID);}/** Returns true if field entityId is set (has been assigned a value) and false otherwise */public boolean isSetEntityId() {return __isset_bit_vector.get(__ENTITYID_ISSET_ID);}public void setEntityIdIsSet(boolean value) {__isset_bit_vector.set(__ENTITYID_ISSET_ID, value);}public long getCategory() {return this.category;}public void setCategory(long category) {this.category = category;setCategoryIsSet(true);}public void unsetCategory() {__isset_bit_vector.clear(__CATEGORY_ISSET_ID);}/** Returns true if field category is set (has been assigned a value) and false otherwise */public boolean isSetCategory() {return __isset_bit_vector.get(__CATEGORY_ISSET_ID);}public void setCategoryIsSet(boolean value) {__isset_bit_vector.set(__CATEGORY_ISSET_ID, value);}public String getBrand() {return this.brand;}public void setBrand(String brand) {this.brand = brand;}public void unsetBrand() {this.brand = null;}/** Returns true if field brand is set (has been assigned a value) and false otherwise */public boolean isSetBrand() {return this.brand != null;}public void setBrandIsSet(boolean value) {if (!value) {this.brand = null;}}public String getModelName() {return this.modelName;}public void setModelName(String modelName) {this.modelName = modelName;}public void unsetModelName() {this.modelName = null;}/** Returns true if field modelName is set (has been assigned a value) and false otherwise */public boolean isSetModelName() {return this.modelName != null;}public void setModelNameIsSet(boolean value) {if (!value) {this.modelName = null;}}public String getModelNumber() {return this.modelNumber;}public void setModelNumber(String modelNumber) {this.modelNumber = modelNumber;}public void unsetModelNumber() {this.modelNumber = null;}/** Returns true if field modelNumber is set (has been assigned a value) and false otherwise */public boolean isSetModelNumber() {return this.modelNumber != null;}public void setModelNumberIsSet(boolean value) {if (!value) {this.modelNumber = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ENTITY_ID:if (value == null) {unsetEntityId();} else {setEntityId((Long)value);}break;case CATEGORY:if (value == null) {unsetCategory();} else {setCategory((Long)value);}break;case BRAND:if (value == null) {unsetBrand();} else {setBrand((String)value);}break;case MODEL_NAME:if (value == null) {unsetModelName();} else {setModelName((String)value);}break;case MODEL_NUMBER:if (value == null) {unsetModelNumber();} else {setModelNumber((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ENTITY_ID:return Long.valueOf(getEntityId());case CATEGORY:return Long.valueOf(getCategory());case BRAND:return getBrand();case MODEL_NAME:return getModelName();case MODEL_NUMBER:return getModelNumber();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ENTITY_ID:return isSetEntityId();case CATEGORY:return isSetCategory();case BRAND:return isSetBrand();case MODEL_NAME:return isSetModelName();case MODEL_NUMBER:return isSetModelNumber();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markItemAsContentComplete_args)return this.equals((markItemAsContentComplete_args)that);return false;}public boolean equals(markItemAsContentComplete_args that) {if (that == null)return false;boolean this_present_entityId = true;boolean that_present_entityId = true;if (this_present_entityId || that_present_entityId) {if (!(this_present_entityId && that_present_entityId))return false;if (this.entityId != that.entityId)return false;}boolean this_present_category = true;boolean that_present_category = true;if (this_present_category || that_present_category) {if (!(this_present_category && that_present_category))return false;if (this.category != that.category)return false;}boolean this_present_brand = true && this.isSetBrand();boolean that_present_brand = true && that.isSetBrand();if (this_present_brand || that_present_brand) {if (!(this_present_brand && that_present_brand))return false;if (!this.brand.equals(that.brand))return false;}boolean this_present_modelName = true && this.isSetModelName();boolean that_present_modelName = true && that.isSetModelName();if (this_present_modelName || that_present_modelName) {if (!(this_present_modelName && that_present_modelName))return false;if (!this.modelName.equals(that.modelName))return false;}boolean this_present_modelNumber = true && this.isSetModelNumber();boolean that_present_modelNumber = true && that.isSetModelNumber();if (this_present_modelNumber || that_present_modelNumber) {if (!(this_present_modelNumber && that_present_modelNumber))return false;if (!this.modelNumber.equals(that.modelNumber))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markItemAsContentComplete_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markItemAsContentComplete_args typedOther = (markItemAsContentComplete_args)other;lastComparison = Boolean.valueOf(isSetEntityId()).compareTo(typedOther.isSetEntityId());if (lastComparison != 0) {return lastComparison;}if (isSetEntityId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entityId, typedOther.entityId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());if (lastComparison != 0) {return lastComparison;}if (isSetCategory()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());if (lastComparison != 0) {return lastComparison;}if (isSetBrand()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetModelName()).compareTo(typedOther.isSetModelName());if (lastComparison != 0) {return lastComparison;}if (isSetModelName()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelName, typedOther.modelName);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetModelNumber()).compareTo(typedOther.isSetModelNumber());if (lastComparison != 0) {return lastComparison;}if (isSetModelNumber()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelNumber, typedOther.modelNumber);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ENTITY_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.entityId = iprot.readI64();setEntityIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // CATEGORYif (field.type == org.apache.thrift.protocol.TType.I64) {this.category = iprot.readI64();setCategoryIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // BRANDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.brand = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // MODEL_NAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.modelName = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 5: // MODEL_NUMBERif (field.type == org.apache.thrift.protocol.TType.STRING) {this.modelNumber = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ENTITY_ID_FIELD_DESC);oprot.writeI64(this.entityId);oprot.writeFieldEnd();oprot.writeFieldBegin(CATEGORY_FIELD_DESC);oprot.writeI64(this.category);oprot.writeFieldEnd();if (this.brand != null) {oprot.writeFieldBegin(BRAND_FIELD_DESC);oprot.writeString(this.brand);oprot.writeFieldEnd();}if (this.modelName != null) {oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);oprot.writeString(this.modelName);oprot.writeFieldEnd();}if (this.modelNumber != null) {oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);oprot.writeString(this.modelNumber);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markItemAsContentComplete_args(");boolean first = true;sb.append("entityId:");sb.append(this.entityId);first = false;if (!first) sb.append(", ");sb.append("category:");sb.append(this.category);first = false;if (!first) sb.append(", ");sb.append("brand:");if (this.brand == null) {sb.append("null");} else {sb.append(this.brand);}first = false;if (!first) sb.append(", ");sb.append("modelName:");if (this.modelName == null) {sb.append("null");} else {sb.append(this.modelName);}first = false;if (!first) sb.append(", ");sb.append("modelNumber:");if (this.modelNumber == null) {sb.append("null");} else {sb.append(this.modelNumber);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markItemAsContentComplete_result implements org.apache.thrift.TBase<markItemAsContentComplete_result, markItemAsContentComplete_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markItemAsContentComplete_result");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);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);private boolean success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markItemAsContentComplete_result.class, metaDataMap);}public markItemAsContentComplete_result() {}public markItemAsContentComplete_result(boolean success,CatalogServiceException cex){this();this.success = success;setSuccessIsSet(true);this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public markItemAsContentComplete_result(markItemAsContentComplete_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public markItemAsContentComplete_result deepCopy() {return new markItemAsContentComplete_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.cex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markItemAsContentComplete_result)return this.equals((markItemAsContentComplete_result)that);return false;}public boolean equals(markItemAsContentComplete_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markItemAsContentComplete_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markItemAsContentComplete_result typedOther = (markItemAsContentComplete_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markItemAsContentComplete_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllItemsInRange_args implements org.apache.thrift.TBase<getAllItemsInRange_args, getAllItemsInRange_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsInRange_args");private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I64, (short)2);private long offset; // requiredprivate long limit; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {OFFSET((short)1, "offset"),LIMIT((short)2, "limit");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // OFFSETreturn OFFSET;case 2: // LIMITreturn LIMIT;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __OFFSET_ISSET_ID = 0;private static final int __LIMIT_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsInRange_args.class, metaDataMap);}public getAllItemsInRange_args() {}public getAllItemsInRange_args(long offset,long limit){this();this.offset = offset;setOffsetIsSet(true);this.limit = limit;setLimitIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAllItemsInRange_args(getAllItemsInRange_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.offset = other.offset;this.limit = other.limit;}public getAllItemsInRange_args deepCopy() {return new getAllItemsInRange_args(this);}@Overridepublic void clear() {setOffsetIsSet(false);this.offset = 0;setLimitIsSet(false);this.limit = 0;}public long getOffset() {return this.offset;}public void setOffset(long offset) {this.offset = offset;setOffsetIsSet(true);}public void unsetOffset() {__isset_bit_vector.clear(__OFFSET_ISSET_ID);}/** Returns true if field offset is set (has been assigned a value) and false otherwise */public boolean isSetOffset() {return __isset_bit_vector.get(__OFFSET_ISSET_ID);}public void setOffsetIsSet(boolean value) {__isset_bit_vector.set(__OFFSET_ISSET_ID, value);}public long getLimit() {return this.limit;}public void setLimit(long limit) {this.limit = limit;setLimitIsSet(true);}public void unsetLimit() {__isset_bit_vector.clear(__LIMIT_ISSET_ID);}/** Returns true if field limit is set (has been assigned a value) and false otherwise */public boolean isSetLimit() {return __isset_bit_vector.get(__LIMIT_ISSET_ID);}public void setLimitIsSet(boolean value) {__isset_bit_vector.set(__LIMIT_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case OFFSET:if (value == null) {unsetOffset();} else {setOffset((Long)value);}break;case LIMIT:if (value == null) {unsetLimit();} else {setLimit((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case OFFSET:return Long.valueOf(getOffset());case LIMIT:return Long.valueOf(getLimit());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case OFFSET:return isSetOffset();case LIMIT:return isSetLimit();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllItemsInRange_args)return this.equals((getAllItemsInRange_args)that);return false;}public boolean equals(getAllItemsInRange_args that) {if (that == null)return false;boolean this_present_offset = true;boolean that_present_offset = true;if (this_present_offset || that_present_offset) {if (!(this_present_offset && that_present_offset))return false;if (this.offset != that.offset)return false;}boolean this_present_limit = true;boolean that_present_limit = true;if (this_present_limit || that_present_limit) {if (!(this_present_limit && that_present_limit))return false;if (this.limit != that.limit)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllItemsInRange_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllItemsInRange_args typedOther = (getAllItemsInRange_args)other;lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());if (lastComparison != 0) {return lastComparison;}if (isSetOffset()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());if (lastComparison != 0) {return lastComparison;}if (isSetLimit()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // OFFSETif (field.type == org.apache.thrift.protocol.TType.I64) {this.offset = iprot.readI64();setOffsetIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // LIMITif (field.type == org.apache.thrift.protocol.TType.I64) {this.limit = iprot.readI64();setLimitIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(OFFSET_FIELD_DESC);oprot.writeI64(this.offset);oprot.writeFieldEnd();oprot.writeFieldBegin(LIMIT_FIELD_DESC);oprot.writeI64(this.limit);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllItemsInRange_args(");boolean first = true;sb.append("offset:");sb.append(this.offset);first = false;if (!first) sb.append(", ");sb.append("limit:");sb.append(this.limit);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllItemsInRange_result implements org.apache.thrift.TBase<getAllItemsInRange_result, getAllItemsInRange_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsInRange_result");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);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);private List<Item> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsInRange_result.class, metaDataMap);}public getAllItemsInRange_result() {}public getAllItemsInRange_result(List<Item> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getAllItemsInRange_result(getAllItemsInRange_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getAllItemsInRange_result deepCopy() {return new getAllItemsInRange_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllItemsInRange_result)return this.equals((getAllItemsInRange_result)that);return false;}public boolean equals(getAllItemsInRange_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllItemsInRange_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllItemsInRange_result typedOther = (getAllItemsInRange_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list25 = iprot.readListBegin();this.success = new ArrayList<Item>(_list25.size);for (int _i26 = 0; _i26 < _list25.size; ++_i26){Item _elem27; // required_elem27 = new Item();_elem27.read(iprot);this.success.add(_elem27);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter28 : this.success){_iter28.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllItemsInRange_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllItemsByStatusInRange_args implements org.apache.thrift.TBase<getAllItemsByStatusInRange_args, getAllItemsByStatusInRange_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsByStatusInRange_args");private static final org.apache.thrift.protocol.TField ITEM_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemStatus", org.apache.thrift.protocol.TType.I32, (short)1);private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I64, (short)3);private status itemStatus; // requiredprivate long offset; // requiredprivate long limit; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {/**** @see status*/ITEM_STATUS((short)1, "itemStatus"),OFFSET((short)2, "offset"),LIMIT((short)3, "limit");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_STATUSreturn ITEM_STATUS;case 2: // OFFSETreturn OFFSET;case 3: // LIMITreturn LIMIT;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __OFFSET_ISSET_ID = 0;private static final int __LIMIT_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_STATUS, new org.apache.thrift.meta_data.FieldMetaData("itemStatus", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, status.class)));tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsByStatusInRange_args.class, metaDataMap);}public getAllItemsByStatusInRange_args() {}public getAllItemsByStatusInRange_args(status itemStatus,long offset,long limit){this();this.itemStatus = itemStatus;this.offset = offset;setOffsetIsSet(true);this.limit = limit;setLimitIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAllItemsByStatusInRange_args(getAllItemsByStatusInRange_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);if (other.isSetItemStatus()) {this.itemStatus = other.itemStatus;}this.offset = other.offset;this.limit = other.limit;}public getAllItemsByStatusInRange_args deepCopy() {return new getAllItemsByStatusInRange_args(this);}@Overridepublic void clear() {this.itemStatus = null;setOffsetIsSet(false);this.offset = 0;setLimitIsSet(false);this.limit = 0;}/**** @see status*/public status getItemStatus() {return this.itemStatus;}/**** @see status*/public void setItemStatus(status itemStatus) {this.itemStatus = itemStatus;}public void unsetItemStatus() {this.itemStatus = null;}/** Returns true if field itemStatus is set (has been assigned a value) and false otherwise */public boolean isSetItemStatus() {return this.itemStatus != null;}public void setItemStatusIsSet(boolean value) {if (!value) {this.itemStatus = null;}}public long getOffset() {return this.offset;}public void setOffset(long offset) {this.offset = offset;setOffsetIsSet(true);}public void unsetOffset() {__isset_bit_vector.clear(__OFFSET_ISSET_ID);}/** Returns true if field offset is set (has been assigned a value) and false otherwise */public boolean isSetOffset() {return __isset_bit_vector.get(__OFFSET_ISSET_ID);}public void setOffsetIsSet(boolean value) {__isset_bit_vector.set(__OFFSET_ISSET_ID, value);}public long getLimit() {return this.limit;}public void setLimit(long limit) {this.limit = limit;setLimitIsSet(true);}public void unsetLimit() {__isset_bit_vector.clear(__LIMIT_ISSET_ID);}/** Returns true if field limit is set (has been assigned a value) and false otherwise */public boolean isSetLimit() {return __isset_bit_vector.get(__LIMIT_ISSET_ID);}public void setLimitIsSet(boolean value) {__isset_bit_vector.set(__LIMIT_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_STATUS:if (value == null) {unsetItemStatus();} else {setItemStatus((status)value);}break;case OFFSET:if (value == null) {unsetOffset();} else {setOffset((Long)value);}break;case LIMIT:if (value == null) {unsetLimit();} else {setLimit((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_STATUS:return getItemStatus();case OFFSET:return Long.valueOf(getOffset());case LIMIT:return Long.valueOf(getLimit());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_STATUS:return isSetItemStatus();case OFFSET:return isSetOffset();case LIMIT:return isSetLimit();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllItemsByStatusInRange_args)return this.equals((getAllItemsByStatusInRange_args)that);return false;}public boolean equals(getAllItemsByStatusInRange_args that) {if (that == null)return false;boolean this_present_itemStatus = true && this.isSetItemStatus();boolean that_present_itemStatus = true && that.isSetItemStatus();if (this_present_itemStatus || that_present_itemStatus) {if (!(this_present_itemStatus && that_present_itemStatus))return false;if (!this.itemStatus.equals(that.itemStatus))return false;}boolean this_present_offset = true;boolean that_present_offset = true;if (this_present_offset || that_present_offset) {if (!(this_present_offset && that_present_offset))return false;if (this.offset != that.offset)return false;}boolean this_present_limit = true;boolean that_present_limit = true;if (this_present_limit || that_present_limit) {if (!(this_present_limit && that_present_limit))return false;if (this.limit != that.limit)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllItemsByStatusInRange_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllItemsByStatusInRange_args typedOther = (getAllItemsByStatusInRange_args)other;lastComparison = Boolean.valueOf(isSetItemStatus()).compareTo(typedOther.isSetItemStatus());if (lastComparison != 0) {return lastComparison;}if (isSetItemStatus()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemStatus, typedOther.itemStatus);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());if (lastComparison != 0) {return lastComparison;}if (isSetOffset()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());if (lastComparison != 0) {return lastComparison;}if (isSetLimit()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_STATUSif (field.type == org.apache.thrift.protocol.TType.I32) {this.itemStatus = status.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // OFFSETif (field.type == org.apache.thrift.protocol.TType.I64) {this.offset = iprot.readI64();setOffsetIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // LIMITif (field.type == org.apache.thrift.protocol.TType.I64) {this.limit = iprot.readI64();setLimitIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.itemStatus != null) {oprot.writeFieldBegin(ITEM_STATUS_FIELD_DESC);oprot.writeI32(this.itemStatus.getValue());oprot.writeFieldEnd();}oprot.writeFieldBegin(OFFSET_FIELD_DESC);oprot.writeI64(this.offset);oprot.writeFieldEnd();oprot.writeFieldBegin(LIMIT_FIELD_DESC);oprot.writeI64(this.limit);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllItemsByStatusInRange_args(");boolean first = true;sb.append("itemStatus:");if (this.itemStatus == null) {sb.append("null");} else {sb.append(this.itemStatus);}first = false;if (!first) sb.append(", ");sb.append("offset:");sb.append(this.offset);first = false;if (!first) sb.append(", ");sb.append("limit:");sb.append(this.limit);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllItemsByStatusInRange_result implements org.apache.thrift.TBase<getAllItemsByStatusInRange_result, getAllItemsByStatusInRange_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsByStatusInRange_result");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);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);private List<Item> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsByStatusInRange_result.class, metaDataMap);}public getAllItemsByStatusInRange_result() {}public getAllItemsByStatusInRange_result(List<Item> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getAllItemsByStatusInRange_result(getAllItemsByStatusInRange_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getAllItemsByStatusInRange_result deepCopy() {return new getAllItemsByStatusInRange_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllItemsByStatusInRange_result)return this.equals((getAllItemsByStatusInRange_result)that);return false;}public boolean equals(getAllItemsByStatusInRange_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllItemsByStatusInRange_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllItemsByStatusInRange_result typedOther = (getAllItemsByStatusInRange_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list29 = iprot.readListBegin();this.success = new ArrayList<Item>(_list29.size);for (int _i30 = 0; _i30 < _list29.size; ++_i30){Item _elem31; // required_elem31 = new Item();_elem31.read(iprot);this.success.add(_elem31);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter32 : this.success){_iter32.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllItemsByStatusInRange_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemCountByStatus_args implements org.apache.thrift.TBase<getItemCountByStatus_args, getItemCountByStatus_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemCountByStatus_args");private static final org.apache.thrift.protocol.TField USE_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("useStatus", org.apache.thrift.protocol.TType.BOOL, (short)1);private static final org.apache.thrift.protocol.TField ITEM_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemStatus", org.apache.thrift.protocol.TType.I32, (short)2);private boolean useStatus; // requiredprivate status itemStatus; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {USE_STATUS((short)1, "useStatus"),/**** @see status*/ITEM_STATUS((short)2, "itemStatus");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // USE_STATUSreturn USE_STATUS;case 2: // ITEM_STATUSreturn ITEM_STATUS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __USESTATUS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.USE_STATUS, new org.apache.thrift.meta_data.FieldMetaData("useStatus", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.ITEM_STATUS, new org.apache.thrift.meta_data.FieldMetaData("itemStatus", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, status.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemCountByStatus_args.class, metaDataMap);}public getItemCountByStatus_args() {}public getItemCountByStatus_args(boolean useStatus,status itemStatus){this();this.useStatus = useStatus;setUseStatusIsSet(true);this.itemStatus = itemStatus;}/*** Performs a deep copy on <i>other</i>.*/public getItemCountByStatus_args(getItemCountByStatus_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.useStatus = other.useStatus;if (other.isSetItemStatus()) {this.itemStatus = other.itemStatus;}}public getItemCountByStatus_args deepCopy() {return new getItemCountByStatus_args(this);}@Overridepublic void clear() {setUseStatusIsSet(false);this.useStatus = false;this.itemStatus = null;}public boolean isUseStatus() {return this.useStatus;}public void setUseStatus(boolean useStatus) {this.useStatus = useStatus;setUseStatusIsSet(true);}public void unsetUseStatus() {__isset_bit_vector.clear(__USESTATUS_ISSET_ID);}/** Returns true if field useStatus is set (has been assigned a value) and false otherwise */public boolean isSetUseStatus() {return __isset_bit_vector.get(__USESTATUS_ISSET_ID);}public void setUseStatusIsSet(boolean value) {__isset_bit_vector.set(__USESTATUS_ISSET_ID, value);}/**** @see status*/public status getItemStatus() {return this.itemStatus;}/**** @see status*/public void setItemStatus(status itemStatus) {this.itemStatus = itemStatus;}public void unsetItemStatus() {this.itemStatus = null;}/** Returns true if field itemStatus is set (has been assigned a value) and false otherwise */public boolean isSetItemStatus() {return this.itemStatus != null;}public void setItemStatusIsSet(boolean value) {if (!value) {this.itemStatus = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case USE_STATUS:if (value == null) {unsetUseStatus();} else {setUseStatus((Boolean)value);}break;case ITEM_STATUS:if (value == null) {unsetItemStatus();} else {setItemStatus((status)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case USE_STATUS:return Boolean.valueOf(isUseStatus());case ITEM_STATUS:return getItemStatus();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case USE_STATUS:return isSetUseStatus();case ITEM_STATUS:return isSetItemStatus();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemCountByStatus_args)return this.equals((getItemCountByStatus_args)that);return false;}public boolean equals(getItemCountByStatus_args that) {if (that == null)return false;boolean this_present_useStatus = true;boolean that_present_useStatus = true;if (this_present_useStatus || that_present_useStatus) {if (!(this_present_useStatus && that_present_useStatus))return false;if (this.useStatus != that.useStatus)return false;}boolean this_present_itemStatus = true && this.isSetItemStatus();boolean that_present_itemStatus = true && that.isSetItemStatus();if (this_present_itemStatus || that_present_itemStatus) {if (!(this_present_itemStatus && that_present_itemStatus))return false;if (!this.itemStatus.equals(that.itemStatus))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemCountByStatus_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemCountByStatus_args typedOther = (getItemCountByStatus_args)other;lastComparison = Boolean.valueOf(isSetUseStatus()).compareTo(typedOther.isSetUseStatus());if (lastComparison != 0) {return lastComparison;}if (isSetUseStatus()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.useStatus, typedOther.useStatus);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetItemStatus()).compareTo(typedOther.isSetItemStatus());if (lastComparison != 0) {return lastComparison;}if (isSetItemStatus()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemStatus, typedOther.itemStatus);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // USE_STATUSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.useStatus = iprot.readBool();setUseStatusIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // ITEM_STATUSif (field.type == org.apache.thrift.protocol.TType.I32) {this.itemStatus = status.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(USE_STATUS_FIELD_DESC);oprot.writeBool(this.useStatus);oprot.writeFieldEnd();if (this.itemStatus != null) {oprot.writeFieldBegin(ITEM_STATUS_FIELD_DESC);oprot.writeI32(this.itemStatus.getValue());oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemCountByStatus_args(");boolean first = true;sb.append("useStatus:");sb.append(this.useStatus);first = false;if (!first) sb.append(", ");sb.append("itemStatus:");if (this.itemStatus == null) {sb.append("null");} else {sb.append(this.itemStatus);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemCountByStatus_result implements org.apache.thrift.TBase<getItemCountByStatus_result, getItemCountByStatus_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemCountByStatus_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);private int success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemCountByStatus_result.class, metaDataMap);}public getItemCountByStatus_result() {}public getItemCountByStatus_result(int success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getItemCountByStatus_result(getItemCountByStatus_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public getItemCountByStatus_result deepCopy() {return new getItemCountByStatus_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;}public int getSuccess() {return this.success;}public void setSuccess(int success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Integer)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Integer.valueOf(getSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemCountByStatus_result)return this.equals((getItemCountByStatus_result)that);return false;}public boolean equals(getItemCountByStatus_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemCountByStatus_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemCountByStatus_result typedOther = (getItemCountByStatus_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I32) {this.success = iprot.readI32();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI32(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemCountByStatus_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBestSellers_args implements org.apache.thrift.TBase<getBestSellers_args, getBestSellers_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestSellers_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestSellers_args.class, metaDataMap);}public getBestSellers_args() {}/*** Performs a deep copy on <i>other</i>.*/public getBestSellers_args(getBestSellers_args other) {}public getBestSellers_args deepCopy() {return new getBestSellers_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBestSellers_args)return this.equals((getBestSellers_args)that);return false;}public boolean equals(getBestSellers_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBestSellers_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBestSellers_args typedOther = (getBestSellers_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBestSellers_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBestSellers_result implements org.apache.thrift.TBase<getBestSellers_result, getBestSellers_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestSellers_result");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);private static final org.apache.thrift.protocol.TField ISEX_FIELD_DESC = new org.apache.thrift.protocol.TField("isex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Item> success; // requiredprivate CatalogServiceException isex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),ISEX((short)1, "isex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // ISEXreturn ISEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));tmpMap.put(_Fields.ISEX, new org.apache.thrift.meta_data.FieldMetaData("isex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestSellers_result.class, metaDataMap);}public getBestSellers_result() {}public getBestSellers_result(List<Item> success,CatalogServiceException isex){this();this.success = success;this.isex = isex;}/*** Performs a deep copy on <i>other</i>.*/public getBestSellers_result(getBestSellers_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}if (other.isSetIsex()) {this.isex = new CatalogServiceException(other.isex);}}public getBestSellers_result deepCopy() {return new getBestSellers_result(this);}@Overridepublic void clear() {this.success = null;this.isex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getIsex() {return this.isex;}public void setIsex(CatalogServiceException isex) {this.isex = isex;}public void unsetIsex() {this.isex = null;}/** Returns true if field isex is set (has been assigned a value) and false otherwise */public boolean isSetIsex() {return this.isex != null;}public void setIsexIsSet(boolean value) {if (!value) {this.isex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;case ISEX:if (value == null) {unsetIsex();} else {setIsex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case ISEX:return getIsex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case ISEX:return isSetIsex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBestSellers_result)return this.equals((getBestSellers_result)that);return false;}public boolean equals(getBestSellers_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_isex = true && this.isSetIsex();boolean that_present_isex = true && that.isSetIsex();if (this_present_isex || that_present_isex) {if (!(this_present_isex && that_present_isex))return false;if (!this.isex.equals(that.isex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBestSellers_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBestSellers_result typedOther = (getBestSellers_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetIsex()).compareTo(typedOther.isSetIsex());if (lastComparison != 0) {return lastComparison;}if (isSetIsex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isex, typedOther.isex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list33 = iprot.readListBegin();this.success = new ArrayList<Item>(_list33.size);for (int _i34 = 0; _i34 < _list33.size; ++_i34){Item _elem35; // required_elem35 = new Item();_elem35.read(iprot);this.success.add(_elem35);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // ISEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.isex = new CatalogServiceException();this.isex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter36 : this.success){_iter36.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetIsex()) {oprot.writeFieldBegin(ISEX_FIELD_DESC);this.isex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBestSellers_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("isex:");if (this.isex == null) {sb.append("null");} else {sb.append(this.isex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBestSellersCatalogIds_args implements org.apache.thrift.TBase<getBestSellersCatalogIds_args, getBestSellersCatalogIds_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestSellersCatalogIds_args");private static final org.apache.thrift.protocol.TField BEGIN_INDEX_FIELD_DESC = new org.apache.thrift.protocol.TField("beginIndex", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField TOTAL_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("totalItems", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)3);private static final org.apache.thrift.protocol.TField CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("category", org.apache.thrift.protocol.TType.I64, (short)4);private long beginIndex; // requiredprivate long totalItems; // requiredprivate String brand; // requiredprivate long category; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {BEGIN_INDEX((short)1, "beginIndex"),TOTAL_ITEMS((short)2, "totalItems"),BRAND((short)3, "brand"),CATEGORY((short)4, "category");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // BEGIN_INDEXreturn BEGIN_INDEX;case 2: // TOTAL_ITEMSreturn TOTAL_ITEMS;case 3: // BRANDreturn BRAND;case 4: // CATEGORYreturn CATEGORY;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __BEGININDEX_ISSET_ID = 0;private static final int __TOTALITEMS_ISSET_ID = 1;private static final int __CATEGORY_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.BEGIN_INDEX, new org.apache.thrift.meta_data.FieldMetaData("beginIndex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TOTAL_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("totalItems", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestSellersCatalogIds_args.class, metaDataMap);}public getBestSellersCatalogIds_args() {}public getBestSellersCatalogIds_args(long beginIndex,long totalItems,String brand,long category){this();this.beginIndex = beginIndex;setBeginIndexIsSet(true);this.totalItems = totalItems;setTotalItemsIsSet(true);this.brand = brand;this.category = category;setCategoryIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getBestSellersCatalogIds_args(getBestSellersCatalogIds_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.beginIndex = other.beginIndex;this.totalItems = other.totalItems;if (other.isSetBrand()) {this.brand = other.brand;}this.category = other.category;}public getBestSellersCatalogIds_args deepCopy() {return new getBestSellersCatalogIds_args(this);}@Overridepublic void clear() {setBeginIndexIsSet(false);this.beginIndex = 0;setTotalItemsIsSet(false);this.totalItems = 0;this.brand = null;setCategoryIsSet(false);this.category = 0;}public long getBeginIndex() {return this.beginIndex;}public void setBeginIndex(long beginIndex) {this.beginIndex = beginIndex;setBeginIndexIsSet(true);}public void unsetBeginIndex() {__isset_bit_vector.clear(__BEGININDEX_ISSET_ID);}/** Returns true if field beginIndex is set (has been assigned a value) and false otherwise */public boolean isSetBeginIndex() {return __isset_bit_vector.get(__BEGININDEX_ISSET_ID);}public void setBeginIndexIsSet(boolean value) {__isset_bit_vector.set(__BEGININDEX_ISSET_ID, value);}public long getTotalItems() {return this.totalItems;}public void setTotalItems(long totalItems) {this.totalItems = totalItems;setTotalItemsIsSet(true);}public void unsetTotalItems() {__isset_bit_vector.clear(__TOTALITEMS_ISSET_ID);}/** Returns true if field totalItems is set (has been assigned a value) and false otherwise */public boolean isSetTotalItems() {return __isset_bit_vector.get(__TOTALITEMS_ISSET_ID);}public void setTotalItemsIsSet(boolean value) {__isset_bit_vector.set(__TOTALITEMS_ISSET_ID, value);}public String getBrand() {return this.brand;}public void setBrand(String brand) {this.brand = brand;}public void unsetBrand() {this.brand = null;}/** Returns true if field brand is set (has been assigned a value) and false otherwise */public boolean isSetBrand() {return this.brand != null;}public void setBrandIsSet(boolean value) {if (!value) {this.brand = null;}}public long getCategory() {return this.category;}public void setCategory(long category) {this.category = category;setCategoryIsSet(true);}public void unsetCategory() {__isset_bit_vector.clear(__CATEGORY_ISSET_ID);}/** Returns true if field category is set (has been assigned a value) and false otherwise */public boolean isSetCategory() {return __isset_bit_vector.get(__CATEGORY_ISSET_ID);}public void setCategoryIsSet(boolean value) {__isset_bit_vector.set(__CATEGORY_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case BEGIN_INDEX:if (value == null) {unsetBeginIndex();} else {setBeginIndex((Long)value);}break;case TOTAL_ITEMS:if (value == null) {unsetTotalItems();} else {setTotalItems((Long)value);}break;case BRAND:if (value == null) {unsetBrand();} else {setBrand((String)value);}break;case CATEGORY:if (value == null) {unsetCategory();} else {setCategory((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case BEGIN_INDEX:return Long.valueOf(getBeginIndex());case TOTAL_ITEMS:return Long.valueOf(getTotalItems());case BRAND:return getBrand();case CATEGORY:return Long.valueOf(getCategory());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case BEGIN_INDEX:return isSetBeginIndex();case TOTAL_ITEMS:return isSetTotalItems();case BRAND:return isSetBrand();case CATEGORY:return isSetCategory();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBestSellersCatalogIds_args)return this.equals((getBestSellersCatalogIds_args)that);return false;}public boolean equals(getBestSellersCatalogIds_args that) {if (that == null)return false;boolean this_present_beginIndex = true;boolean that_present_beginIndex = true;if (this_present_beginIndex || that_present_beginIndex) {if (!(this_present_beginIndex && that_present_beginIndex))return false;if (this.beginIndex != that.beginIndex)return false;}boolean this_present_totalItems = true;boolean that_present_totalItems = true;if (this_present_totalItems || that_present_totalItems) {if (!(this_present_totalItems && that_present_totalItems))return false;if (this.totalItems != that.totalItems)return false;}boolean this_present_brand = true && this.isSetBrand();boolean that_present_brand = true && that.isSetBrand();if (this_present_brand || that_present_brand) {if (!(this_present_brand && that_present_brand))return false;if (!this.brand.equals(that.brand))return false;}boolean this_present_category = true;boolean that_present_category = true;if (this_present_category || that_present_category) {if (!(this_present_category && that_present_category))return false;if (this.category != that.category)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBestSellersCatalogIds_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBestSellersCatalogIds_args typedOther = (getBestSellersCatalogIds_args)other;lastComparison = Boolean.valueOf(isSetBeginIndex()).compareTo(typedOther.isSetBeginIndex());if (lastComparison != 0) {return lastComparison;}if (isSetBeginIndex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.beginIndex, typedOther.beginIndex);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTotalItems()).compareTo(typedOther.isSetTotalItems());if (lastComparison != 0) {return lastComparison;}if (isSetTotalItems()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalItems, typedOther.totalItems);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());if (lastComparison != 0) {return lastComparison;}if (isSetBrand()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());if (lastComparison != 0) {return lastComparison;}if (isSetCategory()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // BEGIN_INDEXif (field.type == org.apache.thrift.protocol.TType.I64) {this.beginIndex = iprot.readI64();setBeginIndexIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // TOTAL_ITEMSif (field.type == org.apache.thrift.protocol.TType.I64) {this.totalItems = iprot.readI64();setTotalItemsIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // BRANDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.brand = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // CATEGORYif (field.type == org.apache.thrift.protocol.TType.I64) {this.category = iprot.readI64();setCategoryIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(BEGIN_INDEX_FIELD_DESC);oprot.writeI64(this.beginIndex);oprot.writeFieldEnd();oprot.writeFieldBegin(TOTAL_ITEMS_FIELD_DESC);oprot.writeI64(this.totalItems);oprot.writeFieldEnd();if (this.brand != null) {oprot.writeFieldBegin(BRAND_FIELD_DESC);oprot.writeString(this.brand);oprot.writeFieldEnd();}oprot.writeFieldBegin(CATEGORY_FIELD_DESC);oprot.writeI64(this.category);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBestSellersCatalogIds_args(");boolean first = true;sb.append("beginIndex:");sb.append(this.beginIndex);first = false;if (!first) sb.append(", ");sb.append("totalItems:");sb.append(this.totalItems);first = false;if (!first) sb.append(", ");sb.append("brand:");if (this.brand == null) {sb.append("null");} else {sb.append(this.brand);}first = false;if (!first) sb.append(", ");sb.append("category:");sb.append(this.category);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBestSellersCatalogIds_result implements org.apache.thrift.TBase<getBestSellersCatalogIds_result, getBestSellersCatalogIds_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestSellersCatalogIds_result");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);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);private List<Long> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestSellersCatalogIds_result.class, metaDataMap);}public getBestSellersCatalogIds_result() {}public getBestSellersCatalogIds_result(List<Long> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getBestSellersCatalogIds_result(getBestSellersCatalogIds_result other) {if (other.isSetSuccess()) {List<Long> __this__success = new ArrayList<Long>();for (Long other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getBestSellersCatalogIds_result deepCopy() {return new getBestSellersCatalogIds_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Long> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(long elem) {if (this.success == null) {this.success = new ArrayList<Long>();}this.success.add(elem);}public List<Long> getSuccess() {return this.success;}public void setSuccess(List<Long> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Long>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBestSellersCatalogIds_result)return this.equals((getBestSellersCatalogIds_result)that);return false;}public boolean equals(getBestSellersCatalogIds_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBestSellersCatalogIds_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBestSellersCatalogIds_result typedOther = (getBestSellersCatalogIds_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list37 = iprot.readListBegin();this.success = new ArrayList<Long>(_list37.size);for (int _i38 = 0; _i38 < _list37.size; ++_i38){long _elem39; // required_elem39 = iprot.readI64();this.success.add(_elem39);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));for (long _iter40 : this.success){oprot.writeI64(_iter40);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBestSellersCatalogIds_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBestSellersCount_args implements org.apache.thrift.TBase<getBestSellersCount_args, getBestSellersCount_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestSellersCount_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestSellersCount_args.class, metaDataMap);}public getBestSellersCount_args() {}/*** Performs a deep copy on <i>other</i>.*/public getBestSellersCount_args(getBestSellersCount_args other) {}public getBestSellersCount_args deepCopy() {return new getBestSellersCount_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBestSellersCount_args)return this.equals((getBestSellersCount_args)that);return false;}public boolean equals(getBestSellersCount_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBestSellersCount_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBestSellersCount_args typedOther = (getBestSellersCount_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBestSellersCount_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBestSellersCount_result implements org.apache.thrift.TBase<getBestSellersCount_result, getBestSellersCount_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestSellersCount_result");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);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);private long success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestSellersCount_result.class, metaDataMap);}public getBestSellersCount_result() {}public getBestSellersCount_result(long success,CatalogServiceException cex){this();this.success = success;setSuccessIsSet(true);this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getBestSellersCount_result(getBestSellersCount_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getBestSellersCount_result deepCopy() {return new getBestSellersCount_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;this.cex = null;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBestSellersCount_result)return this.equals((getBestSellersCount_result)that);return false;}public boolean equals(getBestSellersCount_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBestSellersCount_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBestSellersCount_result typedOther = (getBestSellersCount_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBestSellersCount_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBestDeals_args implements org.apache.thrift.TBase<getBestDeals_args, getBestDeals_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestDeals_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestDeals_args.class, metaDataMap);}public getBestDeals_args() {}/*** Performs a deep copy on <i>other</i>.*/public getBestDeals_args(getBestDeals_args other) {}public getBestDeals_args deepCopy() {return new getBestDeals_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBestDeals_args)return this.equals((getBestDeals_args)that);return false;}public boolean equals(getBestDeals_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBestDeals_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBestDeals_args typedOther = (getBestDeals_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBestDeals_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBestDeals_result implements org.apache.thrift.TBase<getBestDeals_result, getBestDeals_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestDeals_result");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);private static final org.apache.thrift.protocol.TField ISEX_FIELD_DESC = new org.apache.thrift.protocol.TField("isex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Item> success; // requiredprivate CatalogServiceException isex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),ISEX((short)1, "isex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // ISEXreturn ISEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));tmpMap.put(_Fields.ISEX, new org.apache.thrift.meta_data.FieldMetaData("isex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestDeals_result.class, metaDataMap);}public getBestDeals_result() {}public getBestDeals_result(List<Item> success,CatalogServiceException isex){this();this.success = success;this.isex = isex;}/*** Performs a deep copy on <i>other</i>.*/public getBestDeals_result(getBestDeals_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}if (other.isSetIsex()) {this.isex = new CatalogServiceException(other.isex);}}public getBestDeals_result deepCopy() {return new getBestDeals_result(this);}@Overridepublic void clear() {this.success = null;this.isex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getIsex() {return this.isex;}public void setIsex(CatalogServiceException isex) {this.isex = isex;}public void unsetIsex() {this.isex = null;}/** Returns true if field isex is set (has been assigned a value) and false otherwise */public boolean isSetIsex() {return this.isex != null;}public void setIsexIsSet(boolean value) {if (!value) {this.isex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;case ISEX:if (value == null) {unsetIsex();} else {setIsex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case ISEX:return getIsex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case ISEX:return isSetIsex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBestDeals_result)return this.equals((getBestDeals_result)that);return false;}public boolean equals(getBestDeals_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_isex = true && this.isSetIsex();boolean that_present_isex = true && that.isSetIsex();if (this_present_isex || that_present_isex) {if (!(this_present_isex && that_present_isex))return false;if (!this.isex.equals(that.isex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBestDeals_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBestDeals_result typedOther = (getBestDeals_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetIsex()).compareTo(typedOther.isSetIsex());if (lastComparison != 0) {return lastComparison;}if (isSetIsex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isex, typedOther.isex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list41 = iprot.readListBegin();this.success = new ArrayList<Item>(_list41.size);for (int _i42 = 0; _i42 < _list41.size; ++_i42){Item _elem43; // required_elem43 = new Item();_elem43.read(iprot);this.success.add(_elem43);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // ISEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.isex = new CatalogServiceException();this.isex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter44 : this.success){_iter44.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetIsex()) {oprot.writeFieldBegin(ISEX_FIELD_DESC);this.isex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBestDeals_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("isex:");if (this.isex == null) {sb.append("null");} else {sb.append(this.isex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBestDealsCatalogIds_args implements org.apache.thrift.TBase<getBestDealsCatalogIds_args, getBestDealsCatalogIds_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestDealsCatalogIds_args");private static final org.apache.thrift.protocol.TField BEGIN_INDEX_FIELD_DESC = new org.apache.thrift.protocol.TField("beginIndex", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField TOTAL_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("totalItems", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)3);private static final org.apache.thrift.protocol.TField CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("category", org.apache.thrift.protocol.TType.I64, (short)4);private long beginIndex; // requiredprivate long totalItems; // requiredprivate String brand; // requiredprivate long category; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {BEGIN_INDEX((short)1, "beginIndex"),TOTAL_ITEMS((short)2, "totalItems"),BRAND((short)3, "brand"),CATEGORY((short)4, "category");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // BEGIN_INDEXreturn BEGIN_INDEX;case 2: // TOTAL_ITEMSreturn TOTAL_ITEMS;case 3: // BRANDreturn BRAND;case 4: // CATEGORYreturn CATEGORY;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __BEGININDEX_ISSET_ID = 0;private static final int __TOTALITEMS_ISSET_ID = 1;private static final int __CATEGORY_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.BEGIN_INDEX, new org.apache.thrift.meta_data.FieldMetaData("beginIndex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TOTAL_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("totalItems", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestDealsCatalogIds_args.class, metaDataMap);}public getBestDealsCatalogIds_args() {}public getBestDealsCatalogIds_args(long beginIndex,long totalItems,String brand,long category){this();this.beginIndex = beginIndex;setBeginIndexIsSet(true);this.totalItems = totalItems;setTotalItemsIsSet(true);this.brand = brand;this.category = category;setCategoryIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getBestDealsCatalogIds_args(getBestDealsCatalogIds_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.beginIndex = other.beginIndex;this.totalItems = other.totalItems;if (other.isSetBrand()) {this.brand = other.brand;}this.category = other.category;}public getBestDealsCatalogIds_args deepCopy() {return new getBestDealsCatalogIds_args(this);}@Overridepublic void clear() {setBeginIndexIsSet(false);this.beginIndex = 0;setTotalItemsIsSet(false);this.totalItems = 0;this.brand = null;setCategoryIsSet(false);this.category = 0;}public long getBeginIndex() {return this.beginIndex;}public void setBeginIndex(long beginIndex) {this.beginIndex = beginIndex;setBeginIndexIsSet(true);}public void unsetBeginIndex() {__isset_bit_vector.clear(__BEGININDEX_ISSET_ID);}/** Returns true if field beginIndex is set (has been assigned a value) and false otherwise */public boolean isSetBeginIndex() {return __isset_bit_vector.get(__BEGININDEX_ISSET_ID);}public void setBeginIndexIsSet(boolean value) {__isset_bit_vector.set(__BEGININDEX_ISSET_ID, value);}public long getTotalItems() {return this.totalItems;}public void setTotalItems(long totalItems) {this.totalItems = totalItems;setTotalItemsIsSet(true);}public void unsetTotalItems() {__isset_bit_vector.clear(__TOTALITEMS_ISSET_ID);}/** Returns true if field totalItems is set (has been assigned a value) and false otherwise */public boolean isSetTotalItems() {return __isset_bit_vector.get(__TOTALITEMS_ISSET_ID);}public void setTotalItemsIsSet(boolean value) {__isset_bit_vector.set(__TOTALITEMS_ISSET_ID, value);}public String getBrand() {return this.brand;}public void setBrand(String brand) {this.brand = brand;}public void unsetBrand() {this.brand = null;}/** Returns true if field brand is set (has been assigned a value) and false otherwise */public boolean isSetBrand() {return this.brand != null;}public void setBrandIsSet(boolean value) {if (!value) {this.brand = null;}}public long getCategory() {return this.category;}public void setCategory(long category) {this.category = category;setCategoryIsSet(true);}public void unsetCategory() {__isset_bit_vector.clear(__CATEGORY_ISSET_ID);}/** Returns true if field category is set (has been assigned a value) and false otherwise */public boolean isSetCategory() {return __isset_bit_vector.get(__CATEGORY_ISSET_ID);}public void setCategoryIsSet(boolean value) {__isset_bit_vector.set(__CATEGORY_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case BEGIN_INDEX:if (value == null) {unsetBeginIndex();} else {setBeginIndex((Long)value);}break;case TOTAL_ITEMS:if (value == null) {unsetTotalItems();} else {setTotalItems((Long)value);}break;case BRAND:if (value == null) {unsetBrand();} else {setBrand((String)value);}break;case CATEGORY:if (value == null) {unsetCategory();} else {setCategory((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case BEGIN_INDEX:return Long.valueOf(getBeginIndex());case TOTAL_ITEMS:return Long.valueOf(getTotalItems());case BRAND:return getBrand();case CATEGORY:return Long.valueOf(getCategory());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case BEGIN_INDEX:return isSetBeginIndex();case TOTAL_ITEMS:return isSetTotalItems();case BRAND:return isSetBrand();case CATEGORY:return isSetCategory();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBestDealsCatalogIds_args)return this.equals((getBestDealsCatalogIds_args)that);return false;}public boolean equals(getBestDealsCatalogIds_args that) {if (that == null)return false;boolean this_present_beginIndex = true;boolean that_present_beginIndex = true;if (this_present_beginIndex || that_present_beginIndex) {if (!(this_present_beginIndex && that_present_beginIndex))return false;if (this.beginIndex != that.beginIndex)return false;}boolean this_present_totalItems = true;boolean that_present_totalItems = true;if (this_present_totalItems || that_present_totalItems) {if (!(this_present_totalItems && that_present_totalItems))return false;if (this.totalItems != that.totalItems)return false;}boolean this_present_brand = true && this.isSetBrand();boolean that_present_brand = true && that.isSetBrand();if (this_present_brand || that_present_brand) {if (!(this_present_brand && that_present_brand))return false;if (!this.brand.equals(that.brand))return false;}boolean this_present_category = true;boolean that_present_category = true;if (this_present_category || that_present_category) {if (!(this_present_category && that_present_category))return false;if (this.category != that.category)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBestDealsCatalogIds_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBestDealsCatalogIds_args typedOther = (getBestDealsCatalogIds_args)other;lastComparison = Boolean.valueOf(isSetBeginIndex()).compareTo(typedOther.isSetBeginIndex());if (lastComparison != 0) {return lastComparison;}if (isSetBeginIndex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.beginIndex, typedOther.beginIndex);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTotalItems()).compareTo(typedOther.isSetTotalItems());if (lastComparison != 0) {return lastComparison;}if (isSetTotalItems()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalItems, typedOther.totalItems);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());if (lastComparison != 0) {return lastComparison;}if (isSetBrand()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());if (lastComparison != 0) {return lastComparison;}if (isSetCategory()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // BEGIN_INDEXif (field.type == org.apache.thrift.protocol.TType.I64) {this.beginIndex = iprot.readI64();setBeginIndexIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // TOTAL_ITEMSif (field.type == org.apache.thrift.protocol.TType.I64) {this.totalItems = iprot.readI64();setTotalItemsIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // BRANDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.brand = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // CATEGORYif (field.type == org.apache.thrift.protocol.TType.I64) {this.category = iprot.readI64();setCategoryIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(BEGIN_INDEX_FIELD_DESC);oprot.writeI64(this.beginIndex);oprot.writeFieldEnd();oprot.writeFieldBegin(TOTAL_ITEMS_FIELD_DESC);oprot.writeI64(this.totalItems);oprot.writeFieldEnd();if (this.brand != null) {oprot.writeFieldBegin(BRAND_FIELD_DESC);oprot.writeString(this.brand);oprot.writeFieldEnd();}oprot.writeFieldBegin(CATEGORY_FIELD_DESC);oprot.writeI64(this.category);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBestDealsCatalogIds_args(");boolean first = true;sb.append("beginIndex:");sb.append(this.beginIndex);first = false;if (!first) sb.append(", ");sb.append("totalItems:");sb.append(this.totalItems);first = false;if (!first) sb.append(", ");sb.append("brand:");if (this.brand == null) {sb.append("null");} else {sb.append(this.brand);}first = false;if (!first) sb.append(", ");sb.append("category:");sb.append(this.category);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBestDealsCatalogIds_result implements org.apache.thrift.TBase<getBestDealsCatalogIds_result, getBestDealsCatalogIds_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestDealsCatalogIds_result");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);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);private List<Long> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestDealsCatalogIds_result.class, metaDataMap);}public getBestDealsCatalogIds_result() {}public getBestDealsCatalogIds_result(List<Long> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getBestDealsCatalogIds_result(getBestDealsCatalogIds_result other) {if (other.isSetSuccess()) {List<Long> __this__success = new ArrayList<Long>();for (Long other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getBestDealsCatalogIds_result deepCopy() {return new getBestDealsCatalogIds_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Long> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(long elem) {if (this.success == null) {this.success = new ArrayList<Long>();}this.success.add(elem);}public List<Long> getSuccess() {return this.success;}public void setSuccess(List<Long> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Long>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBestDealsCatalogIds_result)return this.equals((getBestDealsCatalogIds_result)that);return false;}public boolean equals(getBestDealsCatalogIds_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBestDealsCatalogIds_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBestDealsCatalogIds_result typedOther = (getBestDealsCatalogIds_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list45 = iprot.readListBegin();this.success = new ArrayList<Long>(_list45.size);for (int _i46 = 0; _i46 < _list45.size; ++_i46){long _elem47; // required_elem47 = iprot.readI64();this.success.add(_elem47);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));for (long _iter48 : this.success){oprot.writeI64(_iter48);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBestDealsCatalogIds_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBestDealsCount_args implements org.apache.thrift.TBase<getBestDealsCount_args, getBestDealsCount_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestDealsCount_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestDealsCount_args.class, metaDataMap);}public getBestDealsCount_args() {}/*** Performs a deep copy on <i>other</i>.*/public getBestDealsCount_args(getBestDealsCount_args other) {}public getBestDealsCount_args deepCopy() {return new getBestDealsCount_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBestDealsCount_args)return this.equals((getBestDealsCount_args)that);return false;}public boolean equals(getBestDealsCount_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBestDealsCount_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBestDealsCount_args typedOther = (getBestDealsCount_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBestDealsCount_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBestDealsCount_result implements org.apache.thrift.TBase<getBestDealsCount_result, getBestDealsCount_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBestDealsCount_result");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);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);private long success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBestDealsCount_result.class, metaDataMap);}public getBestDealsCount_result() {}public getBestDealsCount_result(long success,CatalogServiceException cex){this();this.success = success;setSuccessIsSet(true);this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getBestDealsCount_result(getBestDealsCount_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getBestDealsCount_result deepCopy() {return new getBestDealsCount_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;this.cex = null;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBestDealsCount_result)return this.equals((getBestDealsCount_result)that);return false;}public boolean equals(getBestDealsCount_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBestDealsCount_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBestDealsCount_result typedOther = (getBestDealsCount_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBestDealsCount_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getComingSoon_args implements org.apache.thrift.TBase<getComingSoon_args, getComingSoon_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getComingSoon_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getComingSoon_args.class, metaDataMap);}public getComingSoon_args() {}/*** Performs a deep copy on <i>other</i>.*/public getComingSoon_args(getComingSoon_args other) {}public getComingSoon_args deepCopy() {return new getComingSoon_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getComingSoon_args)return this.equals((getComingSoon_args)that);return false;}public boolean equals(getComingSoon_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getComingSoon_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getComingSoon_args typedOther = (getComingSoon_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getComingSoon_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getComingSoon_result implements org.apache.thrift.TBase<getComingSoon_result, getComingSoon_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getComingSoon_result");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);private static final org.apache.thrift.protocol.TField ISEX_FIELD_DESC = new org.apache.thrift.protocol.TField("isex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Item> success; // requiredprivate CatalogServiceException isex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),ISEX((short)1, "isex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // ISEXreturn ISEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));tmpMap.put(_Fields.ISEX, new org.apache.thrift.meta_data.FieldMetaData("isex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getComingSoon_result.class, metaDataMap);}public getComingSoon_result() {}public getComingSoon_result(List<Item> success,CatalogServiceException isex){this();this.success = success;this.isex = isex;}/*** Performs a deep copy on <i>other</i>.*/public getComingSoon_result(getComingSoon_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}if (other.isSetIsex()) {this.isex = new CatalogServiceException(other.isex);}}public getComingSoon_result deepCopy() {return new getComingSoon_result(this);}@Overridepublic void clear() {this.success = null;this.isex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getIsex() {return this.isex;}public void setIsex(CatalogServiceException isex) {this.isex = isex;}public void unsetIsex() {this.isex = null;}/** Returns true if field isex is set (has been assigned a value) and false otherwise */public boolean isSetIsex() {return this.isex != null;}public void setIsexIsSet(boolean value) {if (!value) {this.isex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;case ISEX:if (value == null) {unsetIsex();} else {setIsex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case ISEX:return getIsex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case ISEX:return isSetIsex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getComingSoon_result)return this.equals((getComingSoon_result)that);return false;}public boolean equals(getComingSoon_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_isex = true && this.isSetIsex();boolean that_present_isex = true && that.isSetIsex();if (this_present_isex || that_present_isex) {if (!(this_present_isex && that_present_isex))return false;if (!this.isex.equals(that.isex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getComingSoon_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getComingSoon_result typedOther = (getComingSoon_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetIsex()).compareTo(typedOther.isSetIsex());if (lastComparison != 0) {return lastComparison;}if (isSetIsex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isex, typedOther.isex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list49 = iprot.readListBegin();this.success = new ArrayList<Item>(_list49.size);for (int _i50 = 0; _i50 < _list49.size; ++_i50){Item _elem51; // required_elem51 = new Item();_elem51.read(iprot);this.success.add(_elem51);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // ISEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.isex = new CatalogServiceException();this.isex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter52 : this.success){_iter52.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetIsex()) {oprot.writeFieldBegin(ISEX_FIELD_DESC);this.isex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getComingSoon_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("isex:");if (this.isex == null) {sb.append("null");} else {sb.append(this.isex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getComingSoonCatalogIds_args implements org.apache.thrift.TBase<getComingSoonCatalogIds_args, getComingSoonCatalogIds_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getComingSoonCatalogIds_args");private static final org.apache.thrift.protocol.TField BEGIN_INDEX_FIELD_DESC = new org.apache.thrift.protocol.TField("beginIndex", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField TOTAL_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("totalItems", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)3);private static final org.apache.thrift.protocol.TField CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("category", org.apache.thrift.protocol.TType.I64, (short)4);private long beginIndex; // requiredprivate long totalItems; // requiredprivate String brand; // requiredprivate long category; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {BEGIN_INDEX((short)1, "beginIndex"),TOTAL_ITEMS((short)2, "totalItems"),BRAND((short)3, "brand"),CATEGORY((short)4, "category");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // BEGIN_INDEXreturn BEGIN_INDEX;case 2: // TOTAL_ITEMSreturn TOTAL_ITEMS;case 3: // BRANDreturn BRAND;case 4: // CATEGORYreturn CATEGORY;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __BEGININDEX_ISSET_ID = 0;private static final int __TOTALITEMS_ISSET_ID = 1;private static final int __CATEGORY_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.BEGIN_INDEX, new org.apache.thrift.meta_data.FieldMetaData("beginIndex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TOTAL_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("totalItems", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getComingSoonCatalogIds_args.class, metaDataMap);}public getComingSoonCatalogIds_args() {}public getComingSoonCatalogIds_args(long beginIndex,long totalItems,String brand,long category){this();this.beginIndex = beginIndex;setBeginIndexIsSet(true);this.totalItems = totalItems;setTotalItemsIsSet(true);this.brand = brand;this.category = category;setCategoryIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getComingSoonCatalogIds_args(getComingSoonCatalogIds_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.beginIndex = other.beginIndex;this.totalItems = other.totalItems;if (other.isSetBrand()) {this.brand = other.brand;}this.category = other.category;}public getComingSoonCatalogIds_args deepCopy() {return new getComingSoonCatalogIds_args(this);}@Overridepublic void clear() {setBeginIndexIsSet(false);this.beginIndex = 0;setTotalItemsIsSet(false);this.totalItems = 0;this.brand = null;setCategoryIsSet(false);this.category = 0;}public long getBeginIndex() {return this.beginIndex;}public void setBeginIndex(long beginIndex) {this.beginIndex = beginIndex;setBeginIndexIsSet(true);}public void unsetBeginIndex() {__isset_bit_vector.clear(__BEGININDEX_ISSET_ID);}/** Returns true if field beginIndex is set (has been assigned a value) and false otherwise */public boolean isSetBeginIndex() {return __isset_bit_vector.get(__BEGININDEX_ISSET_ID);}public void setBeginIndexIsSet(boolean value) {__isset_bit_vector.set(__BEGININDEX_ISSET_ID, value);}public long getTotalItems() {return this.totalItems;}public void setTotalItems(long totalItems) {this.totalItems = totalItems;setTotalItemsIsSet(true);}public void unsetTotalItems() {__isset_bit_vector.clear(__TOTALITEMS_ISSET_ID);}/** Returns true if field totalItems is set (has been assigned a value) and false otherwise */public boolean isSetTotalItems() {return __isset_bit_vector.get(__TOTALITEMS_ISSET_ID);}public void setTotalItemsIsSet(boolean value) {__isset_bit_vector.set(__TOTALITEMS_ISSET_ID, value);}public String getBrand() {return this.brand;}public void setBrand(String brand) {this.brand = brand;}public void unsetBrand() {this.brand = null;}/** Returns true if field brand is set (has been assigned a value) and false otherwise */public boolean isSetBrand() {return this.brand != null;}public void setBrandIsSet(boolean value) {if (!value) {this.brand = null;}}public long getCategory() {return this.category;}public void setCategory(long category) {this.category = category;setCategoryIsSet(true);}public void unsetCategory() {__isset_bit_vector.clear(__CATEGORY_ISSET_ID);}/** Returns true if field category is set (has been assigned a value) and false otherwise */public boolean isSetCategory() {return __isset_bit_vector.get(__CATEGORY_ISSET_ID);}public void setCategoryIsSet(boolean value) {__isset_bit_vector.set(__CATEGORY_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case BEGIN_INDEX:if (value == null) {unsetBeginIndex();} else {setBeginIndex((Long)value);}break;case TOTAL_ITEMS:if (value == null) {unsetTotalItems();} else {setTotalItems((Long)value);}break;case BRAND:if (value == null) {unsetBrand();} else {setBrand((String)value);}break;case CATEGORY:if (value == null) {unsetCategory();} else {setCategory((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case BEGIN_INDEX:return Long.valueOf(getBeginIndex());case TOTAL_ITEMS:return Long.valueOf(getTotalItems());case BRAND:return getBrand();case CATEGORY:return Long.valueOf(getCategory());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case BEGIN_INDEX:return isSetBeginIndex();case TOTAL_ITEMS:return isSetTotalItems();case BRAND:return isSetBrand();case CATEGORY:return isSetCategory();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getComingSoonCatalogIds_args)return this.equals((getComingSoonCatalogIds_args)that);return false;}public boolean equals(getComingSoonCatalogIds_args that) {if (that == null)return false;boolean this_present_beginIndex = true;boolean that_present_beginIndex = true;if (this_present_beginIndex || that_present_beginIndex) {if (!(this_present_beginIndex && that_present_beginIndex))return false;if (this.beginIndex != that.beginIndex)return false;}boolean this_present_totalItems = true;boolean that_present_totalItems = true;if (this_present_totalItems || that_present_totalItems) {if (!(this_present_totalItems && that_present_totalItems))return false;if (this.totalItems != that.totalItems)return false;}boolean this_present_brand = true && this.isSetBrand();boolean that_present_brand = true && that.isSetBrand();if (this_present_brand || that_present_brand) {if (!(this_present_brand && that_present_brand))return false;if (!this.brand.equals(that.brand))return false;}boolean this_present_category = true;boolean that_present_category = true;if (this_present_category || that_present_category) {if (!(this_present_category && that_present_category))return false;if (this.category != that.category)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getComingSoonCatalogIds_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getComingSoonCatalogIds_args typedOther = (getComingSoonCatalogIds_args)other;lastComparison = Boolean.valueOf(isSetBeginIndex()).compareTo(typedOther.isSetBeginIndex());if (lastComparison != 0) {return lastComparison;}if (isSetBeginIndex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.beginIndex, typedOther.beginIndex);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTotalItems()).compareTo(typedOther.isSetTotalItems());if (lastComparison != 0) {return lastComparison;}if (isSetTotalItems()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalItems, typedOther.totalItems);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());if (lastComparison != 0) {return lastComparison;}if (isSetBrand()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());if (lastComparison != 0) {return lastComparison;}if (isSetCategory()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // BEGIN_INDEXif (field.type == org.apache.thrift.protocol.TType.I64) {this.beginIndex = iprot.readI64();setBeginIndexIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // TOTAL_ITEMSif (field.type == org.apache.thrift.protocol.TType.I64) {this.totalItems = iprot.readI64();setTotalItemsIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // BRANDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.brand = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // CATEGORYif (field.type == org.apache.thrift.protocol.TType.I64) {this.category = iprot.readI64();setCategoryIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(BEGIN_INDEX_FIELD_DESC);oprot.writeI64(this.beginIndex);oprot.writeFieldEnd();oprot.writeFieldBegin(TOTAL_ITEMS_FIELD_DESC);oprot.writeI64(this.totalItems);oprot.writeFieldEnd();if (this.brand != null) {oprot.writeFieldBegin(BRAND_FIELD_DESC);oprot.writeString(this.brand);oprot.writeFieldEnd();}oprot.writeFieldBegin(CATEGORY_FIELD_DESC);oprot.writeI64(this.category);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getComingSoonCatalogIds_args(");boolean first = true;sb.append("beginIndex:");sb.append(this.beginIndex);first = false;if (!first) sb.append(", ");sb.append("totalItems:");sb.append(this.totalItems);first = false;if (!first) sb.append(", ");sb.append("brand:");if (this.brand == null) {sb.append("null");} else {sb.append(this.brand);}first = false;if (!first) sb.append(", ");sb.append("category:");sb.append(this.category);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getComingSoonCatalogIds_result implements org.apache.thrift.TBase<getComingSoonCatalogIds_result, getComingSoonCatalogIds_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getComingSoonCatalogIds_result");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);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);private List<Long> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getComingSoonCatalogIds_result.class, metaDataMap);}public getComingSoonCatalogIds_result() {}public getComingSoonCatalogIds_result(List<Long> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getComingSoonCatalogIds_result(getComingSoonCatalogIds_result other) {if (other.isSetSuccess()) {List<Long> __this__success = new ArrayList<Long>();for (Long other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getComingSoonCatalogIds_result deepCopy() {return new getComingSoonCatalogIds_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Long> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(long elem) {if (this.success == null) {this.success = new ArrayList<Long>();}this.success.add(elem);}public List<Long> getSuccess() {return this.success;}public void setSuccess(List<Long> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Long>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getComingSoonCatalogIds_result)return this.equals((getComingSoonCatalogIds_result)that);return false;}public boolean equals(getComingSoonCatalogIds_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getComingSoonCatalogIds_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getComingSoonCatalogIds_result typedOther = (getComingSoonCatalogIds_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list53 = iprot.readListBegin();this.success = new ArrayList<Long>(_list53.size);for (int _i54 = 0; _i54 < _list53.size; ++_i54){long _elem55; // required_elem55 = iprot.readI64();this.success.add(_elem55);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));for (long _iter56 : this.success){oprot.writeI64(_iter56);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getComingSoonCatalogIds_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getComingSoonCount_args implements org.apache.thrift.TBase<getComingSoonCount_args, getComingSoonCount_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getComingSoonCount_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getComingSoonCount_args.class, metaDataMap);}public getComingSoonCount_args() {}/*** Performs a deep copy on <i>other</i>.*/public getComingSoonCount_args(getComingSoonCount_args other) {}public getComingSoonCount_args deepCopy() {return new getComingSoonCount_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getComingSoonCount_args)return this.equals((getComingSoonCount_args)that);return false;}public boolean equals(getComingSoonCount_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getComingSoonCount_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getComingSoonCount_args typedOther = (getComingSoonCount_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getComingSoonCount_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getComingSoonCount_result implements org.apache.thrift.TBase<getComingSoonCount_result, getComingSoonCount_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getComingSoonCount_result");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);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);private long success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getComingSoonCount_result.class, metaDataMap);}public getComingSoonCount_result() {}public getComingSoonCount_result(long success,CatalogServiceException cex){this();this.success = success;setSuccessIsSet(true);this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getComingSoonCount_result(getComingSoonCount_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getComingSoonCount_result deepCopy() {return new getComingSoonCount_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;this.cex = null;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getComingSoonCount_result)return this.equals((getComingSoonCount_result)that);return false;}public boolean equals(getComingSoonCount_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getComingSoonCount_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getComingSoonCount_result typedOther = (getComingSoonCount_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getComingSoonCount_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getLatestArrivals_args implements org.apache.thrift.TBase<getLatestArrivals_args, getLatestArrivals_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLatestArrivals_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLatestArrivals_args.class, metaDataMap);}public getLatestArrivals_args() {}/*** Performs a deep copy on <i>other</i>.*/public getLatestArrivals_args(getLatestArrivals_args other) {}public getLatestArrivals_args deepCopy() {return new getLatestArrivals_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getLatestArrivals_args)return this.equals((getLatestArrivals_args)that);return false;}public boolean equals(getLatestArrivals_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getLatestArrivals_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getLatestArrivals_args typedOther = (getLatestArrivals_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getLatestArrivals_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getLatestArrivals_result implements org.apache.thrift.TBase<getLatestArrivals_result, getLatestArrivals_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLatestArrivals_result");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);private static final org.apache.thrift.protocol.TField ISEX_FIELD_DESC = new org.apache.thrift.protocol.TField("isex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Item> success; // requiredprivate CatalogServiceException isex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),ISEX((short)1, "isex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // ISEXreturn ISEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));tmpMap.put(_Fields.ISEX, new org.apache.thrift.meta_data.FieldMetaData("isex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLatestArrivals_result.class, metaDataMap);}public getLatestArrivals_result() {}public getLatestArrivals_result(List<Item> success,CatalogServiceException isex){this();this.success = success;this.isex = isex;}/*** Performs a deep copy on <i>other</i>.*/public getLatestArrivals_result(getLatestArrivals_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}if (other.isSetIsex()) {this.isex = new CatalogServiceException(other.isex);}}public getLatestArrivals_result deepCopy() {return new getLatestArrivals_result(this);}@Overridepublic void clear() {this.success = null;this.isex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getIsex() {return this.isex;}public void setIsex(CatalogServiceException isex) {this.isex = isex;}public void unsetIsex() {this.isex = null;}/** Returns true if field isex is set (has been assigned a value) and false otherwise */public boolean isSetIsex() {return this.isex != null;}public void setIsexIsSet(boolean value) {if (!value) {this.isex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;case ISEX:if (value == null) {unsetIsex();} else {setIsex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case ISEX:return getIsex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case ISEX:return isSetIsex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getLatestArrivals_result)return this.equals((getLatestArrivals_result)that);return false;}public boolean equals(getLatestArrivals_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_isex = true && this.isSetIsex();boolean that_present_isex = true && that.isSetIsex();if (this_present_isex || that_present_isex) {if (!(this_present_isex && that_present_isex))return false;if (!this.isex.equals(that.isex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getLatestArrivals_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getLatestArrivals_result typedOther = (getLatestArrivals_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetIsex()).compareTo(typedOther.isSetIsex());if (lastComparison != 0) {return lastComparison;}if (isSetIsex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isex, typedOther.isex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list57 = iprot.readListBegin();this.success = new ArrayList<Item>(_list57.size);for (int _i58 = 0; _i58 < _list57.size; ++_i58){Item _elem59; // required_elem59 = new Item();_elem59.read(iprot);this.success.add(_elem59);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // ISEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.isex = new CatalogServiceException();this.isex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter60 : this.success){_iter60.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetIsex()) {oprot.writeFieldBegin(ISEX_FIELD_DESC);this.isex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getLatestArrivals_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("isex:");if (this.isex == null) {sb.append("null");} else {sb.append(this.isex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getLatestArrivalsCatalogIds_args implements org.apache.thrift.TBase<getLatestArrivalsCatalogIds_args, getLatestArrivalsCatalogIds_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLatestArrivalsCatalogIds_args");private static final org.apache.thrift.protocol.TField BEGIN_INDEX_FIELD_DESC = new org.apache.thrift.protocol.TField("beginIndex", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField TOTAL_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("totalItems", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)3);private static final org.apache.thrift.protocol.TField CATEGORIES_FIELD_DESC = new org.apache.thrift.protocol.TField("categories", org.apache.thrift.protocol.TType.LIST, (short)4);private long beginIndex; // requiredprivate long totalItems; // requiredprivate String brand; // requiredprivate List<Long> categories; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {BEGIN_INDEX((short)1, "beginIndex"),TOTAL_ITEMS((short)2, "totalItems"),BRAND((short)3, "brand"),CATEGORIES((short)4, "categories");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // BEGIN_INDEXreturn BEGIN_INDEX;case 2: // TOTAL_ITEMSreturn TOTAL_ITEMS;case 3: // BRANDreturn BRAND;case 4: // CATEGORIESreturn CATEGORIES;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __BEGININDEX_ISSET_ID = 0;private static final int __TOTALITEMS_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.BEGIN_INDEX, new org.apache.thrift.meta_data.FieldMetaData("beginIndex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TOTAL_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("totalItems", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.CATEGORIES, new org.apache.thrift.meta_data.FieldMetaData("categories", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLatestArrivalsCatalogIds_args.class, metaDataMap);}public getLatestArrivalsCatalogIds_args() {}public getLatestArrivalsCatalogIds_args(long beginIndex,long totalItems,String brand,List<Long> categories){this();this.beginIndex = beginIndex;setBeginIndexIsSet(true);this.totalItems = totalItems;setTotalItemsIsSet(true);this.brand = brand;this.categories = categories;}/*** Performs a deep copy on <i>other</i>.*/public getLatestArrivalsCatalogIds_args(getLatestArrivalsCatalogIds_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.beginIndex = other.beginIndex;this.totalItems = other.totalItems;if (other.isSetBrand()) {this.brand = other.brand;}if (other.isSetCategories()) {List<Long> __this__categories = new ArrayList<Long>();for (Long other_element : other.categories) {__this__categories.add(other_element);}this.categories = __this__categories;}}public getLatestArrivalsCatalogIds_args deepCopy() {return new getLatestArrivalsCatalogIds_args(this);}@Overridepublic void clear() {setBeginIndexIsSet(false);this.beginIndex = 0;setTotalItemsIsSet(false);this.totalItems = 0;this.brand = null;this.categories = null;}public long getBeginIndex() {return this.beginIndex;}public void setBeginIndex(long beginIndex) {this.beginIndex = beginIndex;setBeginIndexIsSet(true);}public void unsetBeginIndex() {__isset_bit_vector.clear(__BEGININDEX_ISSET_ID);}/** Returns true if field beginIndex is set (has been assigned a value) and false otherwise */public boolean isSetBeginIndex() {return __isset_bit_vector.get(__BEGININDEX_ISSET_ID);}public void setBeginIndexIsSet(boolean value) {__isset_bit_vector.set(__BEGININDEX_ISSET_ID, value);}public long getTotalItems() {return this.totalItems;}public void setTotalItems(long totalItems) {this.totalItems = totalItems;setTotalItemsIsSet(true);}public void unsetTotalItems() {__isset_bit_vector.clear(__TOTALITEMS_ISSET_ID);}/** Returns true if field totalItems is set (has been assigned a value) and false otherwise */public boolean isSetTotalItems() {return __isset_bit_vector.get(__TOTALITEMS_ISSET_ID);}public void setTotalItemsIsSet(boolean value) {__isset_bit_vector.set(__TOTALITEMS_ISSET_ID, value);}public String getBrand() {return this.brand;}public void setBrand(String brand) {this.brand = brand;}public void unsetBrand() {this.brand = null;}/** Returns true if field brand is set (has been assigned a value) and false otherwise */public boolean isSetBrand() {return this.brand != null;}public void setBrandIsSet(boolean value) {if (!value) {this.brand = null;}}public int getCategoriesSize() {return (this.categories == null) ? 0 : this.categories.size();}public java.util.Iterator<Long> getCategoriesIterator() {return (this.categories == null) ? null : this.categories.iterator();}public void addToCategories(long elem) {if (this.categories == null) {this.categories = new ArrayList<Long>();}this.categories.add(elem);}public List<Long> getCategories() {return this.categories;}public void setCategories(List<Long> categories) {this.categories = categories;}public void unsetCategories() {this.categories = null;}/** Returns true if field categories is set (has been assigned a value) and false otherwise */public boolean isSetCategories() {return this.categories != null;}public void setCategoriesIsSet(boolean value) {if (!value) {this.categories = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case BEGIN_INDEX:if (value == null) {unsetBeginIndex();} else {setBeginIndex((Long)value);}break;case TOTAL_ITEMS:if (value == null) {unsetTotalItems();} else {setTotalItems((Long)value);}break;case BRAND:if (value == null) {unsetBrand();} else {setBrand((String)value);}break;case CATEGORIES:if (value == null) {unsetCategories();} else {setCategories((List<Long>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case BEGIN_INDEX:return Long.valueOf(getBeginIndex());case TOTAL_ITEMS:return Long.valueOf(getTotalItems());case BRAND:return getBrand();case CATEGORIES:return getCategories();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case BEGIN_INDEX:return isSetBeginIndex();case TOTAL_ITEMS:return isSetTotalItems();case BRAND:return isSetBrand();case CATEGORIES:return isSetCategories();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getLatestArrivalsCatalogIds_args)return this.equals((getLatestArrivalsCatalogIds_args)that);return false;}public boolean equals(getLatestArrivalsCatalogIds_args that) {if (that == null)return false;boolean this_present_beginIndex = true;boolean that_present_beginIndex = true;if (this_present_beginIndex || that_present_beginIndex) {if (!(this_present_beginIndex && that_present_beginIndex))return false;if (this.beginIndex != that.beginIndex)return false;}boolean this_present_totalItems = true;boolean that_present_totalItems = true;if (this_present_totalItems || that_present_totalItems) {if (!(this_present_totalItems && that_present_totalItems))return false;if (this.totalItems != that.totalItems)return false;}boolean this_present_brand = true && this.isSetBrand();boolean that_present_brand = true && that.isSetBrand();if (this_present_brand || that_present_brand) {if (!(this_present_brand && that_present_brand))return false;if (!this.brand.equals(that.brand))return false;}boolean this_present_categories = true && this.isSetCategories();boolean that_present_categories = true && that.isSetCategories();if (this_present_categories || that_present_categories) {if (!(this_present_categories && that_present_categories))return false;if (!this.categories.equals(that.categories))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getLatestArrivalsCatalogIds_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getLatestArrivalsCatalogIds_args typedOther = (getLatestArrivalsCatalogIds_args)other;lastComparison = Boolean.valueOf(isSetBeginIndex()).compareTo(typedOther.isSetBeginIndex());if (lastComparison != 0) {return lastComparison;}if (isSetBeginIndex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.beginIndex, typedOther.beginIndex);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTotalItems()).compareTo(typedOther.isSetTotalItems());if (lastComparison != 0) {return lastComparison;}if (isSetTotalItems()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalItems, typedOther.totalItems);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());if (lastComparison != 0) {return lastComparison;}if (isSetBrand()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCategories()).compareTo(typedOther.isSetCategories());if (lastComparison != 0) {return lastComparison;}if (isSetCategories()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.categories, typedOther.categories);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // BEGIN_INDEXif (field.type == org.apache.thrift.protocol.TType.I64) {this.beginIndex = iprot.readI64();setBeginIndexIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // TOTAL_ITEMSif (field.type == org.apache.thrift.protocol.TType.I64) {this.totalItems = iprot.readI64();setTotalItemsIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // BRANDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.brand = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // CATEGORIESif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list61 = iprot.readListBegin();this.categories = new ArrayList<Long>(_list61.size);for (int _i62 = 0; _i62 < _list61.size; ++_i62){long _elem63; // required_elem63 = iprot.readI64();this.categories.add(_elem63);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(BEGIN_INDEX_FIELD_DESC);oprot.writeI64(this.beginIndex);oprot.writeFieldEnd();oprot.writeFieldBegin(TOTAL_ITEMS_FIELD_DESC);oprot.writeI64(this.totalItems);oprot.writeFieldEnd();if (this.brand != null) {oprot.writeFieldBegin(BRAND_FIELD_DESC);oprot.writeString(this.brand);oprot.writeFieldEnd();}if (this.categories != null) {oprot.writeFieldBegin(CATEGORIES_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.categories.size()));for (long _iter64 : this.categories){oprot.writeI64(_iter64);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getLatestArrivalsCatalogIds_args(");boolean first = true;sb.append("beginIndex:");sb.append(this.beginIndex);first = false;if (!first) sb.append(", ");sb.append("totalItems:");sb.append(this.totalItems);first = false;if (!first) sb.append(", ");sb.append("brand:");if (this.brand == null) {sb.append("null");} else {sb.append(this.brand);}first = false;if (!first) sb.append(", ");sb.append("categories:");if (this.categories == null) {sb.append("null");} else {sb.append(this.categories);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getLatestArrivalsCatalogIds_result implements org.apache.thrift.TBase<getLatestArrivalsCatalogIds_result, getLatestArrivalsCatalogIds_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLatestArrivalsCatalogIds_result");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);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);private List<Long> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLatestArrivalsCatalogIds_result.class, metaDataMap);}public getLatestArrivalsCatalogIds_result() {}public getLatestArrivalsCatalogIds_result(List<Long> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getLatestArrivalsCatalogIds_result(getLatestArrivalsCatalogIds_result other) {if (other.isSetSuccess()) {List<Long> __this__success = new ArrayList<Long>();for (Long other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getLatestArrivalsCatalogIds_result deepCopy() {return new getLatestArrivalsCatalogIds_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Long> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(long elem) {if (this.success == null) {this.success = new ArrayList<Long>();}this.success.add(elem);}public List<Long> getSuccess() {return this.success;}public void setSuccess(List<Long> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Long>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getLatestArrivalsCatalogIds_result)return this.equals((getLatestArrivalsCatalogIds_result)that);return false;}public boolean equals(getLatestArrivalsCatalogIds_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getLatestArrivalsCatalogIds_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getLatestArrivalsCatalogIds_result typedOther = (getLatestArrivalsCatalogIds_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list65 = iprot.readListBegin();this.success = new ArrayList<Long>(_list65.size);for (int _i66 = 0; _i66 < _list65.size; ++_i66){long _elem67; // required_elem67 = iprot.readI64();this.success.add(_elem67);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));for (long _iter68 : this.success){oprot.writeI64(_iter68);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getLatestArrivalsCatalogIds_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getLatestArrivalsCount_args implements org.apache.thrift.TBase<getLatestArrivalsCount_args, getLatestArrivalsCount_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLatestArrivalsCount_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLatestArrivalsCount_args.class, metaDataMap);}public getLatestArrivalsCount_args() {}/*** Performs a deep copy on <i>other</i>.*/public getLatestArrivalsCount_args(getLatestArrivalsCount_args other) {}public getLatestArrivalsCount_args deepCopy() {return new getLatestArrivalsCount_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getLatestArrivalsCount_args)return this.equals((getLatestArrivalsCount_args)that);return false;}public boolean equals(getLatestArrivalsCount_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getLatestArrivalsCount_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getLatestArrivalsCount_args typedOther = (getLatestArrivalsCount_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getLatestArrivalsCount_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getLatestArrivalsCount_result implements org.apache.thrift.TBase<getLatestArrivalsCount_result, getLatestArrivalsCount_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLatestArrivalsCount_result");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);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);private long success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLatestArrivalsCount_result.class, metaDataMap);}public getLatestArrivalsCount_result() {}public getLatestArrivalsCount_result(long success,CatalogServiceException cex){this();this.success = success;setSuccessIsSet(true);this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getLatestArrivalsCount_result(getLatestArrivalsCount_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getLatestArrivalsCount_result deepCopy() {return new getLatestArrivalsCount_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;this.cex = null;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getLatestArrivalsCount_result)return this.equals((getLatestArrivalsCount_result)that);return false;}public boolean equals(getLatestArrivalsCount_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getLatestArrivalsCount_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getLatestArrivalsCount_result typedOther = (getLatestArrivalsCount_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getLatestArrivalsCount_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class generateNewEntityID_args implements org.apache.thrift.TBase<generateNewEntityID_args, generateNewEntityID_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("generateNewEntityID_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(generateNewEntityID_args.class, metaDataMap);}public generateNewEntityID_args() {}/*** Performs a deep copy on <i>other</i>.*/public generateNewEntityID_args(generateNewEntityID_args other) {}public generateNewEntityID_args deepCopy() {return new generateNewEntityID_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof generateNewEntityID_args)return this.equals((generateNewEntityID_args)that);return false;}public boolean equals(generateNewEntityID_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(generateNewEntityID_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;generateNewEntityID_args typedOther = (generateNewEntityID_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("generateNewEntityID_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class generateNewEntityID_result implements org.apache.thrift.TBase<generateNewEntityID_result, generateNewEntityID_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("generateNewEntityID_result");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);private long success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(generateNewEntityID_result.class, metaDataMap);}public generateNewEntityID_result() {}public generateNewEntityID_result(long success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public generateNewEntityID_result(generateNewEntityID_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public generateNewEntityID_result deepCopy() {return new generateNewEntityID_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof generateNewEntityID_result)return this.equals((generateNewEntityID_result)that);return false;}public boolean equals(generateNewEntityID_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(generateNewEntityID_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;generateNewEntityID_result typedOther = (generateNewEntityID_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("generateNewEntityID_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addCategory_args implements org.apache.thrift.TBase<addCategory_args, addCategory_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addCategory_args");private static final org.apache.thrift.protocol.TField CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("category", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Category category; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CATEGORY((short)1, "category");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CATEGORYreturn CATEGORY;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Category.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addCategory_args.class, metaDataMap);}public addCategory_args() {}public addCategory_args(Category category){this();this.category = category;}/*** Performs a deep copy on <i>other</i>.*/public addCategory_args(addCategory_args other) {if (other.isSetCategory()) {this.category = new Category(other.category);}}public addCategory_args deepCopy() {return new addCategory_args(this);}@Overridepublic void clear() {this.category = null;}public Category getCategory() {return this.category;}public void setCategory(Category category) {this.category = category;}public void unsetCategory() {this.category = null;}/** Returns true if field category is set (has been assigned a value) and false otherwise */public boolean isSetCategory() {return this.category != null;}public void setCategoryIsSet(boolean value) {if (!value) {this.category = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case CATEGORY:if (value == null) {unsetCategory();} else {setCategory((Category)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CATEGORY:return getCategory();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CATEGORY:return isSetCategory();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addCategory_args)return this.equals((addCategory_args)that);return false;}public boolean equals(addCategory_args that) {if (that == null)return false;boolean this_present_category = true && this.isSetCategory();boolean that_present_category = true && that.isSetCategory();if (this_present_category || that_present_category) {if (!(this_present_category && that_present_category))return false;if (!this.category.equals(that.category))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addCategory_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addCategory_args typedOther = (addCategory_args)other;lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());if (lastComparison != 0) {return lastComparison;}if (isSetCategory()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CATEGORYif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.category = new Category();this.category.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.category != null) {oprot.writeFieldBegin(CATEGORY_FIELD_DESC);this.category.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addCategory_args(");boolean first = true;sb.append("category:");if (this.category == null) {sb.append("null");} else {sb.append(this.category);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addCategory_result implements org.apache.thrift.TBase<addCategory_result, addCategory_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addCategory_result");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);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addCategory_result.class, metaDataMap);}public addCategory_result() {}public addCategory_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public addCategory_result(addCategory_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public addCategory_result deepCopy() {return new addCategory_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addCategory_result)return this.equals((addCategory_result)that);return false;}public boolean equals(addCategory_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addCategory_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addCategory_result typedOther = (addCategory_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addCategory_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getCategory_args implements org.apache.thrift.TBase<getCategory_args, getCategory_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCategory_args");private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);private long id; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ID((short)1, "id");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // IDreturn ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCategory_args.class, metaDataMap);}public getCategory_args() {}public getCategory_args(long id){this();this.id = id;setIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getCategory_args(getCategory_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.id = other.id;}public getCategory_args deepCopy() {return new getCategory_args(this);}@Overridepublic void clear() {setIdIsSet(false);this.id = 0;}public long getId() {return this.id;}public void setId(long id) {this.id = id;setIdIsSet(true);}public void unsetId() {__isset_bit_vector.clear(__ID_ISSET_ID);}/** Returns true if field id is set (has been assigned a value) and false otherwise */public boolean isSetId() {return __isset_bit_vector.get(__ID_ISSET_ID);}public void setIdIsSet(boolean value) {__isset_bit_vector.set(__ID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ID:if (value == null) {unsetId();} else {setId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ID:return Long.valueOf(getId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ID:return isSetId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getCategory_args)return this.equals((getCategory_args)that);return false;}public boolean equals(getCategory_args that) {if (that == null)return false;boolean this_present_id = true;boolean that_present_id = true;if (this_present_id || that_present_id) {if (!(this_present_id && that_present_id))return false;if (this.id != that.id)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getCategory_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getCategory_args typedOther = (getCategory_args)other;lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());if (lastComparison != 0) {return lastComparison;}if (isSetId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.id = iprot.readI64();setIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ID_FIELD_DESC);oprot.writeI64(this.id);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getCategory_args(");boolean first = true;sb.append("id:");sb.append(this.id);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getCategory_result implements org.apache.thrift.TBase<getCategory_result, getCategory_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCategory_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private Category success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Category.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCategory_result.class, metaDataMap);}public getCategory_result() {}public getCategory_result(Category success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getCategory_result(getCategory_result other) {if (other.isSetSuccess()) {this.success = new Category(other.success);}}public getCategory_result deepCopy() {return new getCategory_result(this);}@Overridepublic void clear() {this.success = null;}public Category getSuccess() {return this.success;}public void setSuccess(Category success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Category)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getCategory_result)return this.equals((getCategory_result)that);return false;}public boolean equals(getCategory_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getCategory_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getCategory_result typedOther = (getCategory_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new Category();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getCategory_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllCategories_args implements org.apache.thrift.TBase<getAllCategories_args, getAllCategories_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllCategories_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllCategories_args.class, metaDataMap);}public getAllCategories_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllCategories_args(getAllCategories_args other) {}public getAllCategories_args deepCopy() {return new getAllCategories_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllCategories_args)return this.equals((getAllCategories_args)that);return false;}public boolean equals(getAllCategories_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllCategories_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllCategories_args typedOther = (getAllCategories_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllCategories_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllCategories_result implements org.apache.thrift.TBase<getAllCategories_result, getAllCategories_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllCategories_result");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);private List<Category> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Category.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllCategories_result.class, metaDataMap);}public getAllCategories_result() {}public getAllCategories_result(List<Category> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllCategories_result(getAllCategories_result other) {if (other.isSetSuccess()) {List<Category> __this__success = new ArrayList<Category>();for (Category other_element : other.success) {__this__success.add(new Category(other_element));}this.success = __this__success;}}public getAllCategories_result deepCopy() {return new getAllCategories_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Category> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Category elem) {if (this.success == null) {this.success = new ArrayList<Category>();}this.success.add(elem);}public List<Category> getSuccess() {return this.success;}public void setSuccess(List<Category> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Category>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllCategories_result)return this.equals((getAllCategories_result)that);return false;}public boolean equals(getAllCategories_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllCategories_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllCategories_result typedOther = (getAllCategories_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list69 = iprot.readListBegin();this.success = new ArrayList<Category>(_list69.size);for (int _i70 = 0; _i70 < _list69.size; ++_i70){Category _elem71; // required_elem71 = new Category();_elem71.read(iprot);this.success.add(_elem71);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Category _iter72 : this.success){_iter72.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllCategories_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllSimilarItems_args implements org.apache.thrift.TBase<getAllSimilarItems_args, getAllSimilarItems_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSimilarItems_args");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);private long itemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSimilarItems_args.class, metaDataMap);}public getAllSimilarItems_args() {}public getAllSimilarItems_args(long itemId){this();this.itemId = itemId;setItemIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAllSimilarItems_args(getAllSimilarItems_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;}public getAllSimilarItems_args deepCopy() {return new getAllSimilarItems_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllSimilarItems_args)return this.equals((getAllSimilarItems_args)that);return false;}public boolean equals(getAllSimilarItems_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllSimilarItems_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllSimilarItems_args typedOther = (getAllSimilarItems_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllSimilarItems_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllSimilarItems_result implements org.apache.thrift.TBase<getAllSimilarItems_result, getAllSimilarItems_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSimilarItems_result");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);private List<Item> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSimilarItems_result.class, metaDataMap);}public getAllSimilarItems_result() {}public getAllSimilarItems_result(List<Item> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllSimilarItems_result(getAllSimilarItems_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}}public getAllSimilarItems_result deepCopy() {return new getAllSimilarItems_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllSimilarItems_result)return this.equals((getAllSimilarItems_result)that);return false;}public boolean equals(getAllSimilarItems_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllSimilarItems_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllSimilarItems_result typedOther = (getAllSimilarItems_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list73 = iprot.readListBegin();this.success = new ArrayList<Item>(_list73.size);for (int _i74 = 0; _i74 < _list73.size; ++_i74){Item _elem75; // required_elem75 = new Item();_elem75.read(iprot);this.success.add(_elem75);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter76 : this.success){_iter76.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllSimilarItems_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addSimilarItem_args implements org.apache.thrift.TBase<addSimilarItem_args, addSimilarItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addSimilarItem_args");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);private static final org.apache.thrift.protocol.TField CATALOG_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("catalogItemId", org.apache.thrift.protocol.TType.I64, (short)2);private long itemId; // requiredprivate long catalogItemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId"),CATALOG_ITEM_ID((short)2, "catalogItemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // CATALOG_ITEM_IDreturn CATALOG_ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private static final int __CATALOGITEMID_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addSimilarItem_args.class, metaDataMap);}public addSimilarItem_args() {}public addSimilarItem_args(long itemId,long catalogItemId){this();this.itemId = itemId;setItemIdIsSet(true);this.catalogItemId = catalogItemId;setCatalogItemIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public addSimilarItem_args(addSimilarItem_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;this.catalogItemId = other.catalogItemId;}public addSimilarItem_args deepCopy() {return new addSimilarItem_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;setCatalogItemIdIsSet(false);this.catalogItemId = 0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public long getCatalogItemId() {return this.catalogItemId;}public void setCatalogItemId(long catalogItemId) {this.catalogItemId = catalogItemId;setCatalogItemIdIsSet(true);}public void unsetCatalogItemId() {__isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);}/** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */public boolean isSetCatalogItemId() {return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);}public void setCatalogItemIdIsSet(boolean value) {__isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case CATALOG_ITEM_ID:if (value == null) {unsetCatalogItemId();} else {setCatalogItemId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());case CATALOG_ITEM_ID:return Long.valueOf(getCatalogItemId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();case CATALOG_ITEM_ID:return isSetCatalogItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addSimilarItem_args)return this.equals((addSimilarItem_args)that);return false;}public boolean equals(addSimilarItem_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_catalogItemId = true;boolean that_present_catalogItemId = true;if (this_present_catalogItemId || that_present_catalogItemId) {if (!(this_present_catalogItemId && that_present_catalogItemId))return false;if (this.catalogItemId != that.catalogItemId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addSimilarItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addSimilarItem_args typedOther = (addSimilarItem_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());if (lastComparison != 0) {return lastComparison;}if (isSetCatalogItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // CATALOG_ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.catalogItemId = iprot.readI64();setCatalogItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);oprot.writeI64(this.catalogItemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addSimilarItem_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("catalogItemId:");sb.append(this.catalogItemId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addSimilarItem_result implements org.apache.thrift.TBase<addSimilarItem_result, addSimilarItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addSimilarItem_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);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);private Item success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addSimilarItem_result.class, metaDataMap);}public addSimilarItem_result() {}public addSimilarItem_result(Item success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public addSimilarItem_result(addSimilarItem_result other) {if (other.isSetSuccess()) {this.success = new Item(other.success);}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public addSimilarItem_result deepCopy() {return new addSimilarItem_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public Item getSuccess() {return this.success;}public void setSuccess(Item success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Item)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addSimilarItem_result)return this.equals((addSimilarItem_result)that);return false;}public boolean equals(addSimilarItem_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addSimilarItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addSimilarItem_result typedOther = (addSimilarItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new Item();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addSimilarItem_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class deleteSimilarItem_args implements org.apache.thrift.TBase<deleteSimilarItem_args, deleteSimilarItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteSimilarItem_args");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);private static final org.apache.thrift.protocol.TField CATALOG_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("catalogItemId", org.apache.thrift.protocol.TType.I64, (short)2);private long itemId; // requiredprivate long catalogItemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId"),CATALOG_ITEM_ID((short)2, "catalogItemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // CATALOG_ITEM_IDreturn CATALOG_ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private static final int __CATALOGITEMID_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteSimilarItem_args.class, metaDataMap);}public deleteSimilarItem_args() {}public deleteSimilarItem_args(long itemId,long catalogItemId){this();this.itemId = itemId;setItemIdIsSet(true);this.catalogItemId = catalogItemId;setCatalogItemIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public deleteSimilarItem_args(deleteSimilarItem_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;this.catalogItemId = other.catalogItemId;}public deleteSimilarItem_args deepCopy() {return new deleteSimilarItem_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;setCatalogItemIdIsSet(false);this.catalogItemId = 0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public long getCatalogItemId() {return this.catalogItemId;}public void setCatalogItemId(long catalogItemId) {this.catalogItemId = catalogItemId;setCatalogItemIdIsSet(true);}public void unsetCatalogItemId() {__isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);}/** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */public boolean isSetCatalogItemId() {return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);}public void setCatalogItemIdIsSet(boolean value) {__isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case CATALOG_ITEM_ID:if (value == null) {unsetCatalogItemId();} else {setCatalogItemId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());case CATALOG_ITEM_ID:return Long.valueOf(getCatalogItemId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();case CATALOG_ITEM_ID:return isSetCatalogItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof deleteSimilarItem_args)return this.equals((deleteSimilarItem_args)that);return false;}public boolean equals(deleteSimilarItem_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_catalogItemId = true;boolean that_present_catalogItemId = true;if (this_present_catalogItemId || that_present_catalogItemId) {if (!(this_present_catalogItemId && that_present_catalogItemId))return false;if (this.catalogItemId != that.catalogItemId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(deleteSimilarItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;deleteSimilarItem_args typedOther = (deleteSimilarItem_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());if (lastComparison != 0) {return lastComparison;}if (isSetCatalogItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // CATALOG_ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.catalogItemId = iprot.readI64();setCatalogItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);oprot.writeI64(this.catalogItemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("deleteSimilarItem_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("catalogItemId:");sb.append(this.catalogItemId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class deleteSimilarItem_result implements org.apache.thrift.TBase<deleteSimilarItem_result, deleteSimilarItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteSimilarItem_result");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);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);private boolean success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteSimilarItem_result.class, metaDataMap);}public deleteSimilarItem_result() {}public deleteSimilarItem_result(boolean success,CatalogServiceException cex){this();this.success = success;setSuccessIsSet(true);this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public deleteSimilarItem_result(deleteSimilarItem_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public deleteSimilarItem_result deepCopy() {return new deleteSimilarItem_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.cex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof deleteSimilarItem_result)return this.equals((deleteSimilarItem_result)that);return false;}public boolean equals(deleteSimilarItem_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(deleteSimilarItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;deleteSimilarItem_result typedOther = (deleteSimilarItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("deleteSimilarItem_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class checkSimilarItem_args implements org.apache.thrift.TBase<checkSimilarItem_args, checkSimilarItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkSimilarItem_args");private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)1);private static final org.apache.thrift.protocol.TField MODEL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("modelNumber", org.apache.thrift.protocol.TType.STRING, (short)2);private static final org.apache.thrift.protocol.TField MODEL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("modelName", org.apache.thrift.protocol.TType.STRING, (short)3);private static final org.apache.thrift.protocol.TField COLOR_FIELD_DESC = new org.apache.thrift.protocol.TField("color", org.apache.thrift.protocol.TType.STRING, (short)4);private String brand; // requiredprivate String modelNumber; // requiredprivate String modelName; // requiredprivate String color; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {BRAND((short)1, "brand"),MODEL_NUMBER((short)2, "modelNumber"),MODEL_NAME((short)3, "modelName"),COLOR((short)4, "color");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // BRANDreturn BRAND;case 2: // MODEL_NUMBERreturn MODEL_NUMBER;case 3: // MODEL_NAMEreturn MODEL_NAME;case 4: // COLORreturn COLOR;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.MODEL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("modelNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("modelName", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.COLOR, new org.apache.thrift.meta_data.FieldMetaData("color", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkSimilarItem_args.class, metaDataMap);}public checkSimilarItem_args() {}public checkSimilarItem_args(String brand,String modelNumber,String modelName,String color){this();this.brand = brand;this.modelNumber = modelNumber;this.modelName = modelName;this.color = color;}/*** Performs a deep copy on <i>other</i>.*/public checkSimilarItem_args(checkSimilarItem_args other) {if (other.isSetBrand()) {this.brand = other.brand;}if (other.isSetModelNumber()) {this.modelNumber = other.modelNumber;}if (other.isSetModelName()) {this.modelName = other.modelName;}if (other.isSetColor()) {this.color = other.color;}}public checkSimilarItem_args deepCopy() {return new checkSimilarItem_args(this);}@Overridepublic void clear() {this.brand = null;this.modelNumber = null;this.modelName = null;this.color = null;}public String getBrand() {return this.brand;}public void setBrand(String brand) {this.brand = brand;}public void unsetBrand() {this.brand = null;}/** Returns true if field brand is set (has been assigned a value) and false otherwise */public boolean isSetBrand() {return this.brand != null;}public void setBrandIsSet(boolean value) {if (!value) {this.brand = null;}}public String getModelNumber() {return this.modelNumber;}public void setModelNumber(String modelNumber) {this.modelNumber = modelNumber;}public void unsetModelNumber() {this.modelNumber = null;}/** Returns true if field modelNumber is set (has been assigned a value) and false otherwise */public boolean isSetModelNumber() {return this.modelNumber != null;}public void setModelNumberIsSet(boolean value) {if (!value) {this.modelNumber = null;}}public String getModelName() {return this.modelName;}public void setModelName(String modelName) {this.modelName = modelName;}public void unsetModelName() {this.modelName = null;}/** Returns true if field modelName is set (has been assigned a value) and false otherwise */public boolean isSetModelName() {return this.modelName != null;}public void setModelNameIsSet(boolean value) {if (!value) {this.modelName = null;}}public String getColor() {return this.color;}public void setColor(String color) {this.color = color;}public void unsetColor() {this.color = null;}/** Returns true if field color is set (has been assigned a value) and false otherwise */public boolean isSetColor() {return this.color != null;}public void setColorIsSet(boolean value) {if (!value) {this.color = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case BRAND:if (value == null) {unsetBrand();} else {setBrand((String)value);}break;case MODEL_NUMBER:if (value == null) {unsetModelNumber();} else {setModelNumber((String)value);}break;case MODEL_NAME:if (value == null) {unsetModelName();} else {setModelName((String)value);}break;case COLOR:if (value == null) {unsetColor();} else {setColor((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case BRAND:return getBrand();case MODEL_NUMBER:return getModelNumber();case MODEL_NAME:return getModelName();case COLOR:return getColor();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case BRAND:return isSetBrand();case MODEL_NUMBER:return isSetModelNumber();case MODEL_NAME:return isSetModelName();case COLOR:return isSetColor();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof checkSimilarItem_args)return this.equals((checkSimilarItem_args)that);return false;}public boolean equals(checkSimilarItem_args that) {if (that == null)return false;boolean this_present_brand = true && this.isSetBrand();boolean that_present_brand = true && that.isSetBrand();if (this_present_brand || that_present_brand) {if (!(this_present_brand && that_present_brand))return false;if (!this.brand.equals(that.brand))return false;}boolean this_present_modelNumber = true && this.isSetModelNumber();boolean that_present_modelNumber = true && that.isSetModelNumber();if (this_present_modelNumber || that_present_modelNumber) {if (!(this_present_modelNumber && that_present_modelNumber))return false;if (!this.modelNumber.equals(that.modelNumber))return false;}boolean this_present_modelName = true && this.isSetModelName();boolean that_present_modelName = true && that.isSetModelName();if (this_present_modelName || that_present_modelName) {if (!(this_present_modelName && that_present_modelName))return false;if (!this.modelName.equals(that.modelName))return false;}boolean this_present_color = true && this.isSetColor();boolean that_present_color = true && that.isSetColor();if (this_present_color || that_present_color) {if (!(this_present_color && that_present_color))return false;if (!this.color.equals(that.color))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(checkSimilarItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;checkSimilarItem_args typedOther = (checkSimilarItem_args)other;lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());if (lastComparison != 0) {return lastComparison;}if (isSetBrand()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetModelNumber()).compareTo(typedOther.isSetModelNumber());if (lastComparison != 0) {return lastComparison;}if (isSetModelNumber()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelNumber, typedOther.modelNumber);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetModelName()).compareTo(typedOther.isSetModelName());if (lastComparison != 0) {return lastComparison;}if (isSetModelName()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelName, typedOther.modelName);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetColor()).compareTo(typedOther.isSetColor());if (lastComparison != 0) {return lastComparison;}if (isSetColor()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.color, typedOther.color);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // BRANDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.brand = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // MODEL_NUMBERif (field.type == org.apache.thrift.protocol.TType.STRING) {this.modelNumber = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // MODEL_NAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.modelName = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // COLORif (field.type == org.apache.thrift.protocol.TType.STRING) {this.color = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.brand != null) {oprot.writeFieldBegin(BRAND_FIELD_DESC);oprot.writeString(this.brand);oprot.writeFieldEnd();}if (this.modelNumber != null) {oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);oprot.writeString(this.modelNumber);oprot.writeFieldEnd();}if (this.modelName != null) {oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);oprot.writeString(this.modelName);oprot.writeFieldEnd();}if (this.color != null) {oprot.writeFieldBegin(COLOR_FIELD_DESC);oprot.writeString(this.color);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("checkSimilarItem_args(");boolean first = true;sb.append("brand:");if (this.brand == null) {sb.append("null");} else {sb.append(this.brand);}first = false;if (!first) sb.append(", ");sb.append("modelNumber:");if (this.modelNumber == null) {sb.append("null");} else {sb.append(this.modelNumber);}first = false;if (!first) sb.append(", ");sb.append("modelName:");if (this.modelName == null) {sb.append("null");} else {sb.append(this.modelName);}first = false;if (!first) sb.append(", ");sb.append("color:");if (this.color == null) {sb.append("null");} else {sb.append(this.color);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class checkSimilarItem_result implements org.apache.thrift.TBase<checkSimilarItem_result, checkSimilarItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkSimilarItem_result");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);private long success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkSimilarItem_result.class, metaDataMap);}public checkSimilarItem_result() {}public checkSimilarItem_result(long success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public checkSimilarItem_result(checkSimilarItem_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public checkSimilarItem_result deepCopy() {return new checkSimilarItem_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof checkSimilarItem_result)return this.equals((checkSimilarItem_result)that);return false;}public boolean equals(checkSimilarItem_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(checkSimilarItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;checkSimilarItem_result typedOther = (checkSimilarItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("checkSimilarItem_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class validateRiskyStatus_args implements org.apache.thrift.TBase<validateRiskyStatus_args, validateRiskyStatus_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateRiskyStatus_args");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);private long itemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateRiskyStatus_args.class, metaDataMap);}public validateRiskyStatus_args() {}public validateRiskyStatus_args(long itemId){this();this.itemId = itemId;setItemIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public validateRiskyStatus_args(validateRiskyStatus_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;}public validateRiskyStatus_args deepCopy() {return new validateRiskyStatus_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof validateRiskyStatus_args)return this.equals((validateRiskyStatus_args)that);return false;}public boolean equals(validateRiskyStatus_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(validateRiskyStatus_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;validateRiskyStatus_args typedOther = (validateRiskyStatus_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("validateRiskyStatus_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class validateRiskyStatus_result implements org.apache.thrift.TBase<validateRiskyStatus_result, validateRiskyStatus_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateRiskyStatus_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateRiskyStatus_result.class, metaDataMap);}public validateRiskyStatus_result() {}/*** Performs a deep copy on <i>other</i>.*/public validateRiskyStatus_result(validateRiskyStatus_result other) {}public validateRiskyStatus_result deepCopy() {return new validateRiskyStatus_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof validateRiskyStatus_result)return this.equals((validateRiskyStatus_result)that);return false;}public boolean equals(validateRiskyStatus_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(validateRiskyStatus_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;validateRiskyStatus_result typedOther = (validateRiskyStatus_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("validateRiskyStatus_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class changeItemRiskyFlag_args implements org.apache.thrift.TBase<changeItemRiskyFlag_args, changeItemRiskyFlag_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeItemRiskyFlag_args");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);private static final org.apache.thrift.protocol.TField RISKY_FIELD_DESC = new org.apache.thrift.protocol.TField("risky", org.apache.thrift.protocol.TType.BOOL, (short)2);private long itemId; // requiredprivate boolean risky; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId"),RISKY((short)2, "risky");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // RISKYreturn RISKY;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private static final int __RISKY_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.RISKY, new org.apache.thrift.meta_data.FieldMetaData("risky", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeItemRiskyFlag_args.class, metaDataMap);}public changeItemRiskyFlag_args() {}public changeItemRiskyFlag_args(long itemId,boolean risky){this();this.itemId = itemId;setItemIdIsSet(true);this.risky = risky;setRiskyIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public changeItemRiskyFlag_args(changeItemRiskyFlag_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;this.risky = other.risky;}public changeItemRiskyFlag_args deepCopy() {return new changeItemRiskyFlag_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;setRiskyIsSet(false);this.risky = false;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public boolean isRisky() {return this.risky;}public void setRisky(boolean risky) {this.risky = risky;setRiskyIsSet(true);}public void unsetRisky() {__isset_bit_vector.clear(__RISKY_ISSET_ID);}/** Returns true if field risky is set (has been assigned a value) and false otherwise */public boolean isSetRisky() {return __isset_bit_vector.get(__RISKY_ISSET_ID);}public void setRiskyIsSet(boolean value) {__isset_bit_vector.set(__RISKY_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case RISKY:if (value == null) {unsetRisky();} else {setRisky((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());case RISKY:return Boolean.valueOf(isRisky());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();case RISKY:return isSetRisky();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof changeItemRiskyFlag_args)return this.equals((changeItemRiskyFlag_args)that);return false;}public boolean equals(changeItemRiskyFlag_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_risky = true;boolean that_present_risky = true;if (this_present_risky || that_present_risky) {if (!(this_present_risky && that_present_risky))return false;if (this.risky != that.risky)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(changeItemRiskyFlag_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;changeItemRiskyFlag_args typedOther = (changeItemRiskyFlag_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetRisky()).compareTo(typedOther.isSetRisky());if (lastComparison != 0) {return lastComparison;}if (isSetRisky()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.risky, typedOther.risky);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // RISKYif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.risky = iprot.readBool();setRiskyIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldBegin(RISKY_FIELD_DESC);oprot.writeBool(this.risky);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("changeItemRiskyFlag_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("risky:");sb.append(this.risky);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class changeItemRiskyFlag_result implements org.apache.thrift.TBase<changeItemRiskyFlag_result, changeItemRiskyFlag_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeItemRiskyFlag_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeItemRiskyFlag_result.class, metaDataMap);}public changeItemRiskyFlag_result() {}/*** Performs a deep copy on <i>other</i>.*/public changeItemRiskyFlag_result(changeItemRiskyFlag_result other) {}public changeItemRiskyFlag_result deepCopy() {return new changeItemRiskyFlag_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof changeItemRiskyFlag_result)return this.equals((changeItemRiskyFlag_result)that);return false;}public boolean equals(changeItemRiskyFlag_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(changeItemRiskyFlag_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;changeItemRiskyFlag_result typedOther = (changeItemRiskyFlag_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("changeItemRiskyFlag_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemsByRiskyFlag_args implements org.apache.thrift.TBase<getItemsByRiskyFlag_args, getItemsByRiskyFlag_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsByRiskyFlag_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsByRiskyFlag_args.class, metaDataMap);}public getItemsByRiskyFlag_args() {}/*** Performs a deep copy on <i>other</i>.*/public getItemsByRiskyFlag_args(getItemsByRiskyFlag_args other) {}public getItemsByRiskyFlag_args deepCopy() {return new getItemsByRiskyFlag_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemsByRiskyFlag_args)return this.equals((getItemsByRiskyFlag_args)that);return false;}public boolean equals(getItemsByRiskyFlag_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemsByRiskyFlag_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemsByRiskyFlag_args typedOther = (getItemsByRiskyFlag_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemsByRiskyFlag_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemsByRiskyFlag_result implements org.apache.thrift.TBase<getItemsByRiskyFlag_result, getItemsByRiskyFlag_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsByRiskyFlag_result");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);private List<Item> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsByRiskyFlag_result.class, metaDataMap);}public getItemsByRiskyFlag_result() {}public getItemsByRiskyFlag_result(List<Item> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getItemsByRiskyFlag_result(getItemsByRiskyFlag_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}}public getItemsByRiskyFlag_result deepCopy() {return new getItemsByRiskyFlag_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemsByRiskyFlag_result)return this.equals((getItemsByRiskyFlag_result)that);return false;}public boolean equals(getItemsByRiskyFlag_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemsByRiskyFlag_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemsByRiskyFlag_result typedOther = (getItemsByRiskyFlag_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list77 = iprot.readListBegin();this.success = new ArrayList<Item>(_list77.size);for (int _i78 = 0; _i78 < _list77.size; ++_i78){Item _elem79; // required_elem79 = new Item();_elem79.read(iprot);this.success.add(_elem79);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter80 : this.success){_iter80.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemsByRiskyFlag_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemsForMasterSheet_args implements org.apache.thrift.TBase<getItemsForMasterSheet_args, getItemsForMasterSheet_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsForMasterSheet_args");private static final org.apache.thrift.protocol.TField CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("category", org.apache.thrift.protocol.TType.STRING, (short)1);private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)2);private String category; // requiredprivate String brand; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CATEGORY((short)1, "category"),BRAND((short)2, "brand");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CATEGORYreturn CATEGORY;case 2: // BRANDreturn BRAND;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsForMasterSheet_args.class, metaDataMap);}public getItemsForMasterSheet_args() {}public getItemsForMasterSheet_args(String category,String brand){this();this.category = category;this.brand = brand;}/*** Performs a deep copy on <i>other</i>.*/public getItemsForMasterSheet_args(getItemsForMasterSheet_args other) {if (other.isSetCategory()) {this.category = other.category;}if (other.isSetBrand()) {this.brand = other.brand;}}public getItemsForMasterSheet_args deepCopy() {return new getItemsForMasterSheet_args(this);}@Overridepublic void clear() {this.category = null;this.brand = null;}public String getCategory() {return this.category;}public void setCategory(String category) {this.category = category;}public void unsetCategory() {this.category = null;}/** Returns true if field category is set (has been assigned a value) and false otherwise */public boolean isSetCategory() {return this.category != null;}public void setCategoryIsSet(boolean value) {if (!value) {this.category = null;}}public String getBrand() {return this.brand;}public void setBrand(String brand) {this.brand = brand;}public void unsetBrand() {this.brand = null;}/** Returns true if field brand is set (has been assigned a value) and false otherwise */public boolean isSetBrand() {return this.brand != null;}public void setBrandIsSet(boolean value) {if (!value) {this.brand = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case CATEGORY:if (value == null) {unsetCategory();} else {setCategory((String)value);}break;case BRAND:if (value == null) {unsetBrand();} else {setBrand((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CATEGORY:return getCategory();case BRAND:return getBrand();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CATEGORY:return isSetCategory();case BRAND:return isSetBrand();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemsForMasterSheet_args)return this.equals((getItemsForMasterSheet_args)that);return false;}public boolean equals(getItemsForMasterSheet_args that) {if (that == null)return false;boolean this_present_category = true && this.isSetCategory();boolean that_present_category = true && that.isSetCategory();if (this_present_category || that_present_category) {if (!(this_present_category && that_present_category))return false;if (!this.category.equals(that.category))return false;}boolean this_present_brand = true && this.isSetBrand();boolean that_present_brand = true && that.isSetBrand();if (this_present_brand || that_present_brand) {if (!(this_present_brand && that_present_brand))return false;if (!this.brand.equals(that.brand))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemsForMasterSheet_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemsForMasterSheet_args typedOther = (getItemsForMasterSheet_args)other;lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());if (lastComparison != 0) {return lastComparison;}if (isSetCategory()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());if (lastComparison != 0) {return lastComparison;}if (isSetBrand()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CATEGORYif (field.type == org.apache.thrift.protocol.TType.STRING) {this.category = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // BRANDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.brand = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.category != null) {oprot.writeFieldBegin(CATEGORY_FIELD_DESC);oprot.writeString(this.category);oprot.writeFieldEnd();}if (this.brand != null) {oprot.writeFieldBegin(BRAND_FIELD_DESC);oprot.writeString(this.brand);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemsForMasterSheet_args(");boolean first = true;sb.append("category:");if (this.category == null) {sb.append("null");} else {sb.append(this.category);}first = false;if (!first) sb.append(", ");sb.append("brand:");if (this.brand == null) {sb.append("null");} else {sb.append(this.brand);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemsForMasterSheet_result implements org.apache.thrift.TBase<getItemsForMasterSheet_result, getItemsForMasterSheet_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsForMasterSheet_result");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);private List<Item> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsForMasterSheet_result.class, metaDataMap);}public getItemsForMasterSheet_result() {}public getItemsForMasterSheet_result(List<Item> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getItemsForMasterSheet_result(getItemsForMasterSheet_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}}public getItemsForMasterSheet_result deepCopy() {return new getItemsForMasterSheet_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemsForMasterSheet_result)return this.equals((getItemsForMasterSheet_result)that);return false;}public boolean equals(getItemsForMasterSheet_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemsForMasterSheet_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemsForMasterSheet_result typedOther = (getItemsForMasterSheet_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list81 = iprot.readListBegin();this.success = new ArrayList<Item>(_list81.size);for (int _i82 = 0; _i82 < _list81.size; ++_i82){Item _elem83; // required_elem83 = new Item();_elem83.read(iprot);this.success.add(_elem83);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter84 : this.success){_iter84.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemsForMasterSheet_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getSimilarItemsCatalogIds_args implements org.apache.thrift.TBase<getSimilarItemsCatalogIds_args, getSimilarItemsCatalogIds_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSimilarItemsCatalogIds_args");private static final org.apache.thrift.protocol.TField BEGIN_INDEX_FIELD_DESC = new org.apache.thrift.protocol.TField("beginIndex", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField TOTAL_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("totalItems", org.apache.thrift.protocol.TType.I64, (short)2);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)3);private long beginIndex; // requiredprivate long totalItems; // requiredprivate long itemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {BEGIN_INDEX((short)1, "beginIndex"),TOTAL_ITEMS((short)2, "totalItems"),ITEM_ID((short)3, "itemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // BEGIN_INDEXreturn BEGIN_INDEX;case 2: // TOTAL_ITEMSreturn TOTAL_ITEMS;case 3: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __BEGININDEX_ISSET_ID = 0;private static final int __TOTALITEMS_ISSET_ID = 1;private static final int __ITEMID_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.BEGIN_INDEX, new org.apache.thrift.meta_data.FieldMetaData("beginIndex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TOTAL_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("totalItems", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSimilarItemsCatalogIds_args.class, metaDataMap);}public getSimilarItemsCatalogIds_args() {}public getSimilarItemsCatalogIds_args(long beginIndex,long totalItems,long itemId){this();this.beginIndex = beginIndex;setBeginIndexIsSet(true);this.totalItems = totalItems;setTotalItemsIsSet(true);this.itemId = itemId;setItemIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getSimilarItemsCatalogIds_args(getSimilarItemsCatalogIds_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.beginIndex = other.beginIndex;this.totalItems = other.totalItems;this.itemId = other.itemId;}public getSimilarItemsCatalogIds_args deepCopy() {return new getSimilarItemsCatalogIds_args(this);}@Overridepublic void clear() {setBeginIndexIsSet(false);this.beginIndex = 0;setTotalItemsIsSet(false);this.totalItems = 0;setItemIdIsSet(false);this.itemId = 0;}public long getBeginIndex() {return this.beginIndex;}public void setBeginIndex(long beginIndex) {this.beginIndex = beginIndex;setBeginIndexIsSet(true);}public void unsetBeginIndex() {__isset_bit_vector.clear(__BEGININDEX_ISSET_ID);}/** Returns true if field beginIndex is set (has been assigned a value) and false otherwise */public boolean isSetBeginIndex() {return __isset_bit_vector.get(__BEGININDEX_ISSET_ID);}public void setBeginIndexIsSet(boolean value) {__isset_bit_vector.set(__BEGININDEX_ISSET_ID, value);}public long getTotalItems() {return this.totalItems;}public void setTotalItems(long totalItems) {this.totalItems = totalItems;setTotalItemsIsSet(true);}public void unsetTotalItems() {__isset_bit_vector.clear(__TOTALITEMS_ISSET_ID);}/** Returns true if field totalItems is set (has been assigned a value) and false otherwise */public boolean isSetTotalItems() {return __isset_bit_vector.get(__TOTALITEMS_ISSET_ID);}public void setTotalItemsIsSet(boolean value) {__isset_bit_vector.set(__TOTALITEMS_ISSET_ID, value);}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case BEGIN_INDEX:if (value == null) {unsetBeginIndex();} else {setBeginIndex((Long)value);}break;case TOTAL_ITEMS:if (value == null) {unsetTotalItems();} else {setTotalItems((Long)value);}break;case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case BEGIN_INDEX:return Long.valueOf(getBeginIndex());case TOTAL_ITEMS:return Long.valueOf(getTotalItems());case ITEM_ID:return Long.valueOf(getItemId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case BEGIN_INDEX:return isSetBeginIndex();case TOTAL_ITEMS:return isSetTotalItems();case ITEM_ID:return isSetItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getSimilarItemsCatalogIds_args)return this.equals((getSimilarItemsCatalogIds_args)that);return false;}public boolean equals(getSimilarItemsCatalogIds_args that) {if (that == null)return false;boolean this_present_beginIndex = true;boolean that_present_beginIndex = true;if (this_present_beginIndex || that_present_beginIndex) {if (!(this_present_beginIndex && that_present_beginIndex))return false;if (this.beginIndex != that.beginIndex)return false;}boolean this_present_totalItems = true;boolean that_present_totalItems = true;if (this_present_totalItems || that_present_totalItems) {if (!(this_present_totalItems && that_present_totalItems))return false;if (this.totalItems != that.totalItems)return false;}boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getSimilarItemsCatalogIds_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSimilarItemsCatalogIds_args typedOther = (getSimilarItemsCatalogIds_args)other;lastComparison = Boolean.valueOf(isSetBeginIndex()).compareTo(typedOther.isSetBeginIndex());if (lastComparison != 0) {return lastComparison;}if (isSetBeginIndex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.beginIndex, typedOther.beginIndex);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTotalItems()).compareTo(typedOther.isSetTotalItems());if (lastComparison != 0) {return lastComparison;}if (isSetTotalItems()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalItems, typedOther.totalItems);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // BEGIN_INDEXif (field.type == org.apache.thrift.protocol.TType.I64) {this.beginIndex = iprot.readI64();setBeginIndexIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // TOTAL_ITEMSif (field.type == org.apache.thrift.protocol.TType.I64) {this.totalItems = iprot.readI64();setTotalItemsIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(BEGIN_INDEX_FIELD_DESC);oprot.writeI64(this.beginIndex);oprot.writeFieldEnd();oprot.writeFieldBegin(TOTAL_ITEMS_FIELD_DESC);oprot.writeI64(this.totalItems);oprot.writeFieldEnd();oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSimilarItemsCatalogIds_args(");boolean first = true;sb.append("beginIndex:");sb.append(this.beginIndex);first = false;if (!first) sb.append(", ");sb.append("totalItems:");sb.append(this.totalItems);first = false;if (!first) sb.append(", ");sb.append("itemId:");sb.append(this.itemId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getSimilarItemsCatalogIds_result implements org.apache.thrift.TBase<getSimilarItemsCatalogIds_result, getSimilarItemsCatalogIds_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSimilarItemsCatalogIds_result");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);private List<Long> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSimilarItemsCatalogIds_result.class, metaDataMap);}public getSimilarItemsCatalogIds_result() {}public getSimilarItemsCatalogIds_result(List<Long> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getSimilarItemsCatalogIds_result(getSimilarItemsCatalogIds_result other) {if (other.isSetSuccess()) {List<Long> __this__success = new ArrayList<Long>();for (Long other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}}public getSimilarItemsCatalogIds_result deepCopy() {return new getSimilarItemsCatalogIds_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Long> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(long elem) {if (this.success == null) {this.success = new ArrayList<Long>();}this.success.add(elem);}public List<Long> getSuccess() {return this.success;}public void setSuccess(List<Long> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Long>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getSimilarItemsCatalogIds_result)return this.equals((getSimilarItemsCatalogIds_result)that);return false;}public boolean equals(getSimilarItemsCatalogIds_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getSimilarItemsCatalogIds_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSimilarItemsCatalogIds_result typedOther = (getSimilarItemsCatalogIds_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list85 = iprot.readListBegin();this.success = new ArrayList<Long>(_list85.size);for (int _i86 = 0; _i86 < _list85.size; ++_i86){long _elem87; // required_elem87 = iprot.readI64();this.success.add(_elem87);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));for (long _iter88 : this.success){oprot.writeI64(_iter88);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSimilarItemsCatalogIds_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addProductNotification_args implements org.apache.thrift.TBase<addProductNotification_args, addProductNotification_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addProductNotification_args");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);private static final org.apache.thrift.protocol.TField EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("email", org.apache.thrift.protocol.TType.STRING, (short)-2);private long itemId; // requiredprivate String email; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)-1, "itemId"),EMAIL((short)-2, "email");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case -1: // ITEM_IDreturn ITEM_ID;case -2: // EMAILreturn EMAIL;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addProductNotification_args.class, metaDataMap);}public addProductNotification_args() {}public addProductNotification_args(long itemId,String email){this();this.itemId = itemId;setItemIdIsSet(true);this.email = email;}/*** Performs a deep copy on <i>other</i>.*/public addProductNotification_args(addProductNotification_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;if (other.isSetEmail()) {this.email = other.email;}}public addProductNotification_args deepCopy() {return new addProductNotification_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;this.email = null;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public String getEmail() {return this.email;}public void setEmail(String email) {this.email = email;}public void unsetEmail() {this.email = null;}/** Returns true if field email is set (has been assigned a value) and false otherwise */public boolean isSetEmail() {return this.email != null;}public void setEmailIsSet(boolean value) {if (!value) {this.email = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case EMAIL:if (value == null) {unsetEmail();} else {setEmail((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());case EMAIL:return getEmail();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();case EMAIL:return isSetEmail();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addProductNotification_args)return this.equals((addProductNotification_args)that);return false;}public boolean equals(addProductNotification_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_email = true && this.isSetEmail();boolean that_present_email = true && that.isSetEmail();if (this_present_email || that_present_email) {if (!(this_present_email && that_present_email))return false;if (!this.email.equals(that.email))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addProductNotification_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addProductNotification_args typedOther = (addProductNotification_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());if (lastComparison != 0) {return lastComparison;}if (isSetEmail()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case -1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case -2: // EMAILif (field.type == org.apache.thrift.protocol.TType.STRING) {this.email = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.email != null) {oprot.writeFieldBegin(EMAIL_FIELD_DESC);oprot.writeString(this.email);oprot.writeFieldEnd();}oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addProductNotification_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("email:");if (this.email == null) {sb.append("null");} else {sb.append(this.email);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addProductNotification_result implements org.apache.thrift.TBase<addProductNotification_result, addProductNotification_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addProductNotification_result");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);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addProductNotification_result.class, metaDataMap);}public addProductNotification_result() {}public addProductNotification_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public addProductNotification_result(addProductNotification_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public addProductNotification_result deepCopy() {return new addProductNotification_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addProductNotification_result)return this.equals((addProductNotification_result)that);return false;}public boolean equals(addProductNotification_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addProductNotification_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addProductNotification_result typedOther = (addProductNotification_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addProductNotification_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class sendProductNotifications_args implements org.apache.thrift.TBase<sendProductNotifications_args, sendProductNotifications_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendProductNotifications_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendProductNotifications_args.class, metaDataMap);}public sendProductNotifications_args() {}/*** Performs a deep copy on <i>other</i>.*/public sendProductNotifications_args(sendProductNotifications_args other) {}public sendProductNotifications_args deepCopy() {return new sendProductNotifications_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof sendProductNotifications_args)return this.equals((sendProductNotifications_args)that);return false;}public boolean equals(sendProductNotifications_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(sendProductNotifications_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;sendProductNotifications_args typedOther = (sendProductNotifications_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("sendProductNotifications_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class sendProductNotifications_result implements org.apache.thrift.TBase<sendProductNotifications_result, sendProductNotifications_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendProductNotifications_result");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);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendProductNotifications_result.class, metaDataMap);}public sendProductNotifications_result() {}public sendProductNotifications_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public sendProductNotifications_result(sendProductNotifications_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public sendProductNotifications_result deepCopy() {return new sendProductNotifications_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof sendProductNotifications_result)return this.equals((sendProductNotifications_result)that);return false;}public boolean equals(sendProductNotifications_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(sendProductNotifications_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;sendProductNotifications_result typedOther = (sendProductNotifications_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("sendProductNotifications_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllBrandsByCategory_args implements org.apache.thrift.TBase<getAllBrandsByCategory_args, getAllBrandsByCategory_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllBrandsByCategory_args");private static final org.apache.thrift.protocol.TField CATEGORY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("categoryId", org.apache.thrift.protocol.TType.I64, (short)1);private long categoryId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CATEGORY_ID((short)1, "categoryId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CATEGORY_IDreturn CATEGORY_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CATEGORYID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CATEGORY_ID, new org.apache.thrift.meta_data.FieldMetaData("categoryId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllBrandsByCategory_args.class, metaDataMap);}public getAllBrandsByCategory_args() {}public getAllBrandsByCategory_args(long categoryId){this();this.categoryId = categoryId;setCategoryIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAllBrandsByCategory_args(getAllBrandsByCategory_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.categoryId = other.categoryId;}public getAllBrandsByCategory_args deepCopy() {return new getAllBrandsByCategory_args(this);}@Overridepublic void clear() {setCategoryIdIsSet(false);this.categoryId = 0;}public long getCategoryId() {return this.categoryId;}public void setCategoryId(long categoryId) {this.categoryId = categoryId;setCategoryIdIsSet(true);}public void unsetCategoryId() {__isset_bit_vector.clear(__CATEGORYID_ISSET_ID);}/** Returns true if field categoryId is set (has been assigned a value) and false otherwise */public boolean isSetCategoryId() {return __isset_bit_vector.get(__CATEGORYID_ISSET_ID);}public void setCategoryIdIsSet(boolean value) {__isset_bit_vector.set(__CATEGORYID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case CATEGORY_ID:if (value == null) {unsetCategoryId();} else {setCategoryId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CATEGORY_ID:return Long.valueOf(getCategoryId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CATEGORY_ID:return isSetCategoryId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllBrandsByCategory_args)return this.equals((getAllBrandsByCategory_args)that);return false;}public boolean equals(getAllBrandsByCategory_args that) {if (that == null)return false;boolean this_present_categoryId = true;boolean that_present_categoryId = true;if (this_present_categoryId || that_present_categoryId) {if (!(this_present_categoryId && that_present_categoryId))return false;if (this.categoryId != that.categoryId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllBrandsByCategory_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllBrandsByCategory_args typedOther = (getAllBrandsByCategory_args)other;lastComparison = Boolean.valueOf(isSetCategoryId()).compareTo(typedOther.isSetCategoryId());if (lastComparison != 0) {return lastComparison;}if (isSetCategoryId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.categoryId, typedOther.categoryId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CATEGORY_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.categoryId = iprot.readI64();setCategoryIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CATEGORY_ID_FIELD_DESC);oprot.writeI64(this.categoryId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllBrandsByCategory_args(");boolean first = true;sb.append("categoryId:");sb.append(this.categoryId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllBrandsByCategory_result implements org.apache.thrift.TBase<getAllBrandsByCategory_result, getAllBrandsByCategory_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllBrandsByCategory_result");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);private List<String> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllBrandsByCategory_result.class, metaDataMap);}public getAllBrandsByCategory_result() {}public getAllBrandsByCategory_result(List<String> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllBrandsByCategory_result(getAllBrandsByCategory_result other) {if (other.isSetSuccess()) {List<String> __this__success = new ArrayList<String>();for (String other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}}public getAllBrandsByCategory_result deepCopy() {return new getAllBrandsByCategory_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<String> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(String elem) {if (this.success == null) {this.success = new ArrayList<String>();}this.success.add(elem);}public List<String> getSuccess() {return this.success;}public void setSuccess(List<String> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<String>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllBrandsByCategory_result)return this.equals((getAllBrandsByCategory_result)that);return false;}public boolean equals(getAllBrandsByCategory_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllBrandsByCategory_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllBrandsByCategory_result typedOther = (getAllBrandsByCategory_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list89 = iprot.readListBegin();this.success = new ArrayList<String>(_list89.size);for (int _i90 = 0; _i90 < _list89.size; ++_i90){String _elem91; // required_elem91 = iprot.readString();this.success.add(_elem91);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));for (String _iter92 : this.success){oprot.writeString(_iter92);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllBrandsByCategory_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllBrands_args implements org.apache.thrift.TBase<getAllBrands_args, getAllBrands_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllBrands_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllBrands_args.class, metaDataMap);}public getAllBrands_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllBrands_args(getAllBrands_args other) {}public getAllBrands_args deepCopy() {return new getAllBrands_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllBrands_args)return this.equals((getAllBrands_args)that);return false;}public boolean equals(getAllBrands_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllBrands_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllBrands_args typedOther = (getAllBrands_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllBrands_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllBrands_result implements org.apache.thrift.TBase<getAllBrands_result, getAllBrands_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllBrands_result");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);private List<String> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllBrands_result.class, metaDataMap);}public getAllBrands_result() {}public getAllBrands_result(List<String> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllBrands_result(getAllBrands_result other) {if (other.isSetSuccess()) {List<String> __this__success = new ArrayList<String>();for (String other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}}public getAllBrands_result deepCopy() {return new getAllBrands_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<String> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(String elem) {if (this.success == null) {this.success = new ArrayList<String>();}this.success.add(elem);}public List<String> getSuccess() {return this.success;}public void setSuccess(List<String> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<String>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllBrands_result)return this.equals((getAllBrands_result)that);return false;}public boolean equals(getAllBrands_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllBrands_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllBrands_result typedOther = (getAllBrands_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list93 = iprot.readListBegin();this.success = new ArrayList<String>(_list93.size);for (int _i94 = 0; _i94 < _list93.size; ++_i94){String _elem95; // required_elem95 = iprot.readString();this.success.add(_elem95);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));for (String _iter96 : this.success){oprot.writeString(_iter96);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllBrands_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllSources_args implements org.apache.thrift.TBase<getAllSources_args, getAllSources_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSources_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSources_args.class, metaDataMap);}public getAllSources_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllSources_args(getAllSources_args other) {}public getAllSources_args deepCopy() {return new getAllSources_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllSources_args)return this.equals((getAllSources_args)that);return false;}public boolean equals(getAllSources_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllSources_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllSources_args typedOther = (getAllSources_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllSources_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllSources_result implements org.apache.thrift.TBase<getAllSources_result, getAllSources_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSources_result");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);private List<Source> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Source.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSources_result.class, metaDataMap);}public getAllSources_result() {}public getAllSources_result(List<Source> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllSources_result(getAllSources_result other) {if (other.isSetSuccess()) {List<Source> __this__success = new ArrayList<Source>();for (Source other_element : other.success) {__this__success.add(new Source(other_element));}this.success = __this__success;}}public getAllSources_result deepCopy() {return new getAllSources_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Source> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Source elem) {if (this.success == null) {this.success = new ArrayList<Source>();}this.success.add(elem);}public List<Source> getSuccess() {return this.success;}public void setSuccess(List<Source> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Source>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllSources_result)return this.equals((getAllSources_result)that);return false;}public boolean equals(getAllSources_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllSources_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllSources_result typedOther = (getAllSources_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list97 = iprot.readListBegin();this.success = new ArrayList<Source>(_list97.size);for (int _i98 = 0; _i98 < _list97.size; ++_i98){Source _elem99; // required_elem99 = new Source();_elem99.read(iprot);this.success.add(_elem99);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Source _iter100 : this.success){_iter100.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllSources_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemPricingBySource_args implements org.apache.thrift.TBase<getItemPricingBySource_args, getItemPricingBySource_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemPricingBySource_args");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);private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I64, (short)2);private long itemId; // requiredprivate long sourceId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId"),SOURCE_ID((short)2, "sourceId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // SOURCE_IDreturn SOURCE_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private static final int __SOURCEID_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemPricingBySource_args.class, metaDataMap);}public getItemPricingBySource_args() {}public getItemPricingBySource_args(long itemId,long sourceId){this();this.itemId = itemId;setItemIdIsSet(true);this.sourceId = sourceId;setSourceIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getItemPricingBySource_args(getItemPricingBySource_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;this.sourceId = other.sourceId;}public getItemPricingBySource_args deepCopy() {return new getItemPricingBySource_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;setSourceIdIsSet(false);this.sourceId = 0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public long getSourceId() {return this.sourceId;}public void setSourceId(long sourceId) {this.sourceId = sourceId;setSourceIdIsSet(true);}public void unsetSourceId() {__isset_bit_vector.clear(__SOURCEID_ISSET_ID);}/** Returns true if field sourceId is set (has been assigned a value) and false otherwise */public boolean isSetSourceId() {return __isset_bit_vector.get(__SOURCEID_ISSET_ID);}public void setSourceIdIsSet(boolean value) {__isset_bit_vector.set(__SOURCEID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case SOURCE_ID:if (value == null) {unsetSourceId();} else {setSourceId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());case SOURCE_ID:return Long.valueOf(getSourceId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();case SOURCE_ID:return isSetSourceId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemPricingBySource_args)return this.equals((getItemPricingBySource_args)that);return false;}public boolean equals(getItemPricingBySource_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_sourceId = true;boolean that_present_sourceId = true;if (this_present_sourceId || that_present_sourceId) {if (!(this_present_sourceId && that_present_sourceId))return false;if (this.sourceId != that.sourceId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemPricingBySource_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemPricingBySource_args typedOther = (getItemPricingBySource_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());if (lastComparison != 0) {return lastComparison;}if (isSetSourceId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // SOURCE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.sourceId = iprot.readI64();setSourceIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);oprot.writeI64(this.sourceId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemPricingBySource_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("sourceId:");sb.append(this.sourceId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemPricingBySource_result implements org.apache.thrift.TBase<getItemPricingBySource_result, getItemPricingBySource_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemPricingBySource_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);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);private SourceItemPricing success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SourceItemPricing.class)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemPricingBySource_result.class, metaDataMap);}public getItemPricingBySource_result() {}public getItemPricingBySource_result(SourceItemPricing success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getItemPricingBySource_result(getItemPricingBySource_result other) {if (other.isSetSuccess()) {this.success = new SourceItemPricing(other.success);}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getItemPricingBySource_result deepCopy() {return new getItemPricingBySource_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public SourceItemPricing getSuccess() {return this.success;}public void setSuccess(SourceItemPricing success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((SourceItemPricing)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemPricingBySource_result)return this.equals((getItemPricingBySource_result)that);return false;}public boolean equals(getItemPricingBySource_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemPricingBySource_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemPricingBySource_result typedOther = (getItemPricingBySource_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new SourceItemPricing();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemPricingBySource_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addSourceItemPricing_args implements org.apache.thrift.TBase<addSourceItemPricing_args, addSourceItemPricing_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addSourceItemPricing_args");private static final org.apache.thrift.protocol.TField SOURCE_ITEM_PRICING_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceItemPricing", org.apache.thrift.protocol.TType.STRUCT, (short)1);private SourceItemPricing sourceItemPricing; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SOURCE_ITEM_PRICING((short)1, "sourceItemPricing");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SOURCE_ITEM_PRICINGreturn SOURCE_ITEM_PRICING;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SOURCE_ITEM_PRICING, new org.apache.thrift.meta_data.FieldMetaData("sourceItemPricing", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SourceItemPricing.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addSourceItemPricing_args.class, metaDataMap);}public addSourceItemPricing_args() {}public addSourceItemPricing_args(SourceItemPricing sourceItemPricing){this();this.sourceItemPricing = sourceItemPricing;}/*** Performs a deep copy on <i>other</i>.*/public addSourceItemPricing_args(addSourceItemPricing_args other) {if (other.isSetSourceItemPricing()) {this.sourceItemPricing = new SourceItemPricing(other.sourceItemPricing);}}public addSourceItemPricing_args deepCopy() {return new addSourceItemPricing_args(this);}@Overridepublic void clear() {this.sourceItemPricing = null;}public SourceItemPricing getSourceItemPricing() {return this.sourceItemPricing;}public void setSourceItemPricing(SourceItemPricing sourceItemPricing) {this.sourceItemPricing = sourceItemPricing;}public void unsetSourceItemPricing() {this.sourceItemPricing = null;}/** Returns true if field sourceItemPricing is set (has been assigned a value) and false otherwise */public boolean isSetSourceItemPricing() {return this.sourceItemPricing != null;}public void setSourceItemPricingIsSet(boolean value) {if (!value) {this.sourceItemPricing = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SOURCE_ITEM_PRICING:if (value == null) {unsetSourceItemPricing();} else {setSourceItemPricing((SourceItemPricing)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SOURCE_ITEM_PRICING:return getSourceItemPricing();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SOURCE_ITEM_PRICING:return isSetSourceItemPricing();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addSourceItemPricing_args)return this.equals((addSourceItemPricing_args)that);return false;}public boolean equals(addSourceItemPricing_args that) {if (that == null)return false;boolean this_present_sourceItemPricing = true && this.isSetSourceItemPricing();boolean that_present_sourceItemPricing = true && that.isSetSourceItemPricing();if (this_present_sourceItemPricing || that_present_sourceItemPricing) {if (!(this_present_sourceItemPricing && that_present_sourceItemPricing))return false;if (!this.sourceItemPricing.equals(that.sourceItemPricing))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addSourceItemPricing_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addSourceItemPricing_args typedOther = (addSourceItemPricing_args)other;lastComparison = Boolean.valueOf(isSetSourceItemPricing()).compareTo(typedOther.isSetSourceItemPricing());if (lastComparison != 0) {return lastComparison;}if (isSetSourceItemPricing()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceItemPricing, typedOther.sourceItemPricing);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SOURCE_ITEM_PRICINGif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.sourceItemPricing = new SourceItemPricing();this.sourceItemPricing.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.sourceItemPricing != null) {oprot.writeFieldBegin(SOURCE_ITEM_PRICING_FIELD_DESC);this.sourceItemPricing.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addSourceItemPricing_args(");boolean first = true;sb.append("sourceItemPricing:");if (this.sourceItemPricing == null) {sb.append("null");} else {sb.append(this.sourceItemPricing);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addSourceItemPricing_result implements org.apache.thrift.TBase<addSourceItemPricing_result, addSourceItemPricing_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addSourceItemPricing_result");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);private CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addSourceItemPricing_result.class, metaDataMap);}public addSourceItemPricing_result() {}public addSourceItemPricing_result(CatalogServiceException cex){this();this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public addSourceItemPricing_result(addSourceItemPricing_result other) {if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public addSourceItemPricing_result deepCopy() {return new addSourceItemPricing_result(this);}@Overridepublic void clear() {this.cex = null;}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addSourceItemPricing_result)return this.equals((addSourceItemPricing_result)that);return false;}public boolean equals(addSourceItemPricing_result that) {if (that == null)return false;boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addSourceItemPricing_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addSourceItemPricing_result typedOther = (addSourceItemPricing_result)other;lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addSourceItemPricing_result(");boolean first = true;sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllSourcePricing_args implements org.apache.thrift.TBase<getAllSourcePricing_args, getAllSourcePricing_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSourcePricing_args");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);private long itemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSourcePricing_args.class, metaDataMap);}public getAllSourcePricing_args() {}public getAllSourcePricing_args(long itemId){this();this.itemId = itemId;setItemIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAllSourcePricing_args(getAllSourcePricing_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;}public getAllSourcePricing_args deepCopy() {return new getAllSourcePricing_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllSourcePricing_args)return this.equals((getAllSourcePricing_args)that);return false;}public boolean equals(getAllSourcePricing_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllSourcePricing_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllSourcePricing_args typedOther = (getAllSourcePricing_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllSourcePricing_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllSourcePricing_result implements org.apache.thrift.TBase<getAllSourcePricing_result, getAllSourcePricing_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSourcePricing_result");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);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);private List<SourceItemPricing> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SourceItemPricing.class))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSourcePricing_result.class, metaDataMap);}public getAllSourcePricing_result() {}public getAllSourcePricing_result(List<SourceItemPricing> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getAllSourcePricing_result(getAllSourcePricing_result other) {if (other.isSetSuccess()) {List<SourceItemPricing> __this__success = new ArrayList<SourceItemPricing>();for (SourceItemPricing other_element : other.success) {__this__success.add(new SourceItemPricing(other_element));}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getAllSourcePricing_result deepCopy() {return new getAllSourcePricing_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<SourceItemPricing> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(SourceItemPricing elem) {if (this.success == null) {this.success = new ArrayList<SourceItemPricing>();}this.success.add(elem);}public List<SourceItemPricing> getSuccess() {return this.success;}public void setSuccess(List<SourceItemPricing> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<SourceItemPricing>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllSourcePricing_result)return this.equals((getAllSourcePricing_result)that);return false;}public boolean equals(getAllSourcePricing_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllSourcePricing_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllSourcePricing_result typedOther = (getAllSourcePricing_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list101 = iprot.readListBegin();this.success = new ArrayList<SourceItemPricing>(_list101.size);for (int _i102 = 0; _i102 < _list101.size; ++_i102){SourceItemPricing _elem103; // required_elem103 = new SourceItemPricing();_elem103.read(iprot);this.success.add(_elem103);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (SourceItemPricing _iter104 : this.success){_iter104.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllSourcePricing_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemForSource_args implements org.apache.thrift.TBase<getItemForSource_args, getItemForSource_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemForSource_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I64, (short)2);private long item_id; // requiredprivate long sourceId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "item_id"),SOURCE_ID((short)2, "sourceId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // SOURCE_IDreturn SOURCE_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEM_ID_ISSET_ID = 0;private static final int __SOURCEID_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemForSource_args.class, metaDataMap);}public getItemForSource_args() {}public getItemForSource_args(long item_id,long sourceId){this();this.item_id = item_id;setItem_idIsSet(true);this.sourceId = sourceId;setSourceIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getItemForSource_args(getItemForSource_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.item_id = other.item_id;this.sourceId = other.sourceId;}public getItemForSource_args deepCopy() {return new getItemForSource_args(this);}@Overridepublic void clear() {setItem_idIsSet(false);this.item_id = 0;setSourceIdIsSet(false);this.sourceId = 0;}public long getItem_id() {return this.item_id;}public void setItem_id(long item_id) {this.item_id = item_id;setItem_idIsSet(true);}public void unsetItem_id() {__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);}/** Returns true if field item_id is set (has been assigned a value) and false otherwise */public boolean isSetItem_id() {return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);}public void setItem_idIsSet(boolean value) {__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);}public long getSourceId() {return this.sourceId;}public void setSourceId(long sourceId) {this.sourceId = sourceId;setSourceIdIsSet(true);}public void unsetSourceId() {__isset_bit_vector.clear(__SOURCEID_ISSET_ID);}/** Returns true if field sourceId is set (has been assigned a value) and false otherwise */public boolean isSetSourceId() {return __isset_bit_vector.get(__SOURCEID_ISSET_ID);}public void setSourceIdIsSet(boolean value) {__isset_bit_vector.set(__SOURCEID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItem_id();} else {setItem_id((Long)value);}break;case SOURCE_ID:if (value == null) {unsetSourceId();} else {setSourceId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItem_id());case SOURCE_ID:return Long.valueOf(getSourceId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItem_id();case SOURCE_ID:return isSetSourceId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemForSource_args)return this.equals((getItemForSource_args)that);return false;}public boolean equals(getItemForSource_args that) {if (that == null)return false;boolean this_present_item_id = true;boolean that_present_item_id = true;if (this_present_item_id || that_present_item_id) {if (!(this_present_item_id && that_present_item_id))return false;if (this.item_id != that.item_id)return false;}boolean this_present_sourceId = true;boolean that_present_sourceId = true;if (this_present_sourceId || that_present_sourceId) {if (!(this_present_sourceId && that_present_sourceId))return false;if (this.sourceId != that.sourceId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemForSource_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemForSource_args typedOther = (getItemForSource_args)other;lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());if (lastComparison != 0) {return lastComparison;}if (isSetItem_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());if (lastComparison != 0) {return lastComparison;}if (isSetSourceId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.item_id = iprot.readI64();setItem_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // SOURCE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.sourceId = iprot.readI64();setSourceIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.item_id);oprot.writeFieldEnd();oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);oprot.writeI64(this.sourceId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemForSource_args(");boolean first = true;sb.append("item_id:");sb.append(this.item_id);first = false;if (!first) sb.append(", ");sb.append("sourceId:");sb.append(this.sourceId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemForSource_result implements org.apache.thrift.TBase<getItemForSource_result, getItemForSource_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemForSource_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);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);private Item success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemForSource_result.class, metaDataMap);}public getItemForSource_result() {}public getItemForSource_result(Item success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getItemForSource_result(getItemForSource_result other) {if (other.isSetSuccess()) {this.success = new Item(other.success);}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getItemForSource_result deepCopy() {return new getItemForSource_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public Item getSuccess() {return this.success;}public void setSuccess(Item success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Item)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemForSource_result)return this.equals((getItemForSource_result)that);return false;}public boolean equals(getItemForSource_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemForSource_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemForSource_result typedOther = (getItemForSource_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new Item();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemForSource_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class searchItemsInRange_args implements org.apache.thrift.TBase<searchItemsInRange_args, searchItemsInRange_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchItemsInRange_args");private static final org.apache.thrift.protocol.TField SEARCH_TERMS_FIELD_DESC = new org.apache.thrift.protocol.TField("searchTerms", org.apache.thrift.protocol.TType.LIST, (short)1);private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I64, (short)3);private List<String> searchTerms; // requiredprivate long offset; // requiredprivate long limit; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SEARCH_TERMS((short)1, "searchTerms"),OFFSET((short)2, "offset"),LIMIT((short)3, "limit");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SEARCH_TERMSreturn SEARCH_TERMS;case 2: // OFFSETreturn OFFSET;case 3: // LIMITreturn LIMIT;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __OFFSET_ISSET_ID = 0;private static final int __LIMIT_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SEARCH_TERMS, new org.apache.thrift.meta_data.FieldMetaData("searchTerms", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchItemsInRange_args.class, metaDataMap);}public searchItemsInRange_args() {}public searchItemsInRange_args(List<String> searchTerms,long offset,long limit){this();this.searchTerms = searchTerms;this.offset = offset;setOffsetIsSet(true);this.limit = limit;setLimitIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public searchItemsInRange_args(searchItemsInRange_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);if (other.isSetSearchTerms()) {List<String> __this__searchTerms = new ArrayList<String>();for (String other_element : other.searchTerms) {__this__searchTerms.add(other_element);}this.searchTerms = __this__searchTerms;}this.offset = other.offset;this.limit = other.limit;}public searchItemsInRange_args deepCopy() {return new searchItemsInRange_args(this);}@Overridepublic void clear() {this.searchTerms = null;setOffsetIsSet(false);this.offset = 0;setLimitIsSet(false);this.limit = 0;}public int getSearchTermsSize() {return (this.searchTerms == null) ? 0 : this.searchTerms.size();}public java.util.Iterator<String> getSearchTermsIterator() {return (this.searchTerms == null) ? null : this.searchTerms.iterator();}public void addToSearchTerms(String elem) {if (this.searchTerms == null) {this.searchTerms = new ArrayList<String>();}this.searchTerms.add(elem);}public List<String> getSearchTerms() {return this.searchTerms;}public void setSearchTerms(List<String> searchTerms) {this.searchTerms = searchTerms;}public void unsetSearchTerms() {this.searchTerms = null;}/** Returns true if field searchTerms is set (has been assigned a value) and false otherwise */public boolean isSetSearchTerms() {return this.searchTerms != null;}public void setSearchTermsIsSet(boolean value) {if (!value) {this.searchTerms = null;}}public long getOffset() {return this.offset;}public void setOffset(long offset) {this.offset = offset;setOffsetIsSet(true);}public void unsetOffset() {__isset_bit_vector.clear(__OFFSET_ISSET_ID);}/** Returns true if field offset is set (has been assigned a value) and false otherwise */public boolean isSetOffset() {return __isset_bit_vector.get(__OFFSET_ISSET_ID);}public void setOffsetIsSet(boolean value) {__isset_bit_vector.set(__OFFSET_ISSET_ID, value);}public long getLimit() {return this.limit;}public void setLimit(long limit) {this.limit = limit;setLimitIsSet(true);}public void unsetLimit() {__isset_bit_vector.clear(__LIMIT_ISSET_ID);}/** Returns true if field limit is set (has been assigned a value) and false otherwise */public boolean isSetLimit() {return __isset_bit_vector.get(__LIMIT_ISSET_ID);}public void setLimitIsSet(boolean value) {__isset_bit_vector.set(__LIMIT_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SEARCH_TERMS:if (value == null) {unsetSearchTerms();} else {setSearchTerms((List<String>)value);}break;case OFFSET:if (value == null) {unsetOffset();} else {setOffset((Long)value);}break;case LIMIT:if (value == null) {unsetLimit();} else {setLimit((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SEARCH_TERMS:return getSearchTerms();case OFFSET:return Long.valueOf(getOffset());case LIMIT:return Long.valueOf(getLimit());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SEARCH_TERMS:return isSetSearchTerms();case OFFSET:return isSetOffset();case LIMIT:return isSetLimit();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof searchItemsInRange_args)return this.equals((searchItemsInRange_args)that);return false;}public boolean equals(searchItemsInRange_args that) {if (that == null)return false;boolean this_present_searchTerms = true && this.isSetSearchTerms();boolean that_present_searchTerms = true && that.isSetSearchTerms();if (this_present_searchTerms || that_present_searchTerms) {if (!(this_present_searchTerms && that_present_searchTerms))return false;if (!this.searchTerms.equals(that.searchTerms))return false;}boolean this_present_offset = true;boolean that_present_offset = true;if (this_present_offset || that_present_offset) {if (!(this_present_offset && that_present_offset))return false;if (this.offset != that.offset)return false;}boolean this_present_limit = true;boolean that_present_limit = true;if (this_present_limit || that_present_limit) {if (!(this_present_limit && that_present_limit))return false;if (this.limit != that.limit)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(searchItemsInRange_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;searchItemsInRange_args typedOther = (searchItemsInRange_args)other;lastComparison = Boolean.valueOf(isSetSearchTerms()).compareTo(typedOther.isSetSearchTerms());if (lastComparison != 0) {return lastComparison;}if (isSetSearchTerms()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchTerms, typedOther.searchTerms);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());if (lastComparison != 0) {return lastComparison;}if (isSetOffset()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());if (lastComparison != 0) {return lastComparison;}if (isSetLimit()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SEARCH_TERMSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list105 = iprot.readListBegin();this.searchTerms = new ArrayList<String>(_list105.size);for (int _i106 = 0; _i106 < _list105.size; ++_i106){String _elem107; // required_elem107 = iprot.readString();this.searchTerms.add(_elem107);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // OFFSETif (field.type == org.apache.thrift.protocol.TType.I64) {this.offset = iprot.readI64();setOffsetIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // LIMITif (field.type == org.apache.thrift.protocol.TType.I64) {this.limit = iprot.readI64();setLimitIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.searchTerms != null) {oprot.writeFieldBegin(SEARCH_TERMS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.searchTerms.size()));for (String _iter108 : this.searchTerms){oprot.writeString(_iter108);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldBegin(OFFSET_FIELD_DESC);oprot.writeI64(this.offset);oprot.writeFieldEnd();oprot.writeFieldBegin(LIMIT_FIELD_DESC);oprot.writeI64(this.limit);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("searchItemsInRange_args(");boolean first = true;sb.append("searchTerms:");if (this.searchTerms == null) {sb.append("null");} else {sb.append(this.searchTerms);}first = false;if (!first) sb.append(", ");sb.append("offset:");sb.append(this.offset);first = false;if (!first) sb.append(", ");sb.append("limit:");sb.append(this.limit);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class searchItemsInRange_result implements org.apache.thrift.TBase<searchItemsInRange_result, searchItemsInRange_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchItemsInRange_result");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);private List<Item> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchItemsInRange_result.class, metaDataMap);}public searchItemsInRange_result() {}public searchItemsInRange_result(List<Item> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public searchItemsInRange_result(searchItemsInRange_result other) {if (other.isSetSuccess()) {List<Item> __this__success = new ArrayList<Item>();for (Item other_element : other.success) {__this__success.add(new Item(other_element));}this.success = __this__success;}}public searchItemsInRange_result deepCopy() {return new searchItemsInRange_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Item> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Item elem) {if (this.success == null) {this.success = new ArrayList<Item>();}this.success.add(elem);}public List<Item> getSuccess() {return this.success;}public void setSuccess(List<Item> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Item>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof searchItemsInRange_result)return this.equals((searchItemsInRange_result)that);return false;}public boolean equals(searchItemsInRange_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(searchItemsInRange_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;searchItemsInRange_result typedOther = (searchItemsInRange_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list109 = iprot.readListBegin();this.success = new ArrayList<Item>(_list109.size);for (int _i110 = 0; _i110 < _list109.size; ++_i110){Item _elem111; // required_elem111 = new Item();_elem111.read(iprot);this.success.add(_elem111);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Item _iter112 : this.success){_iter112.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("searchItemsInRange_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getSearchResultCount_args implements org.apache.thrift.TBase<getSearchResultCount_args, getSearchResultCount_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSearchResultCount_args");private static final org.apache.thrift.protocol.TField SEARCH_TERMS_FIELD_DESC = new org.apache.thrift.protocol.TField("searchTerms", org.apache.thrift.protocol.TType.LIST, (short)1);private List<String> searchTerms; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SEARCH_TERMS((short)1, "searchTerms");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SEARCH_TERMSreturn SEARCH_TERMS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SEARCH_TERMS, new org.apache.thrift.meta_data.FieldMetaData("searchTerms", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSearchResultCount_args.class, metaDataMap);}public getSearchResultCount_args() {}public getSearchResultCount_args(List<String> searchTerms){this();this.searchTerms = searchTerms;}/*** Performs a deep copy on <i>other</i>.*/public getSearchResultCount_args(getSearchResultCount_args other) {if (other.isSetSearchTerms()) {List<String> __this__searchTerms = new ArrayList<String>();for (String other_element : other.searchTerms) {__this__searchTerms.add(other_element);}this.searchTerms = __this__searchTerms;}}public getSearchResultCount_args deepCopy() {return new getSearchResultCount_args(this);}@Overridepublic void clear() {this.searchTerms = null;}public int getSearchTermsSize() {return (this.searchTerms == null) ? 0 : this.searchTerms.size();}public java.util.Iterator<String> getSearchTermsIterator() {return (this.searchTerms == null) ? null : this.searchTerms.iterator();}public void addToSearchTerms(String elem) {if (this.searchTerms == null) {this.searchTerms = new ArrayList<String>();}this.searchTerms.add(elem);}public List<String> getSearchTerms() {return this.searchTerms;}public void setSearchTerms(List<String> searchTerms) {this.searchTerms = searchTerms;}public void unsetSearchTerms() {this.searchTerms = null;}/** Returns true if field searchTerms is set (has been assigned a value) and false otherwise */public boolean isSetSearchTerms() {return this.searchTerms != null;}public void setSearchTermsIsSet(boolean value) {if (!value) {this.searchTerms = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SEARCH_TERMS:if (value == null) {unsetSearchTerms();} else {setSearchTerms((List<String>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SEARCH_TERMS:return getSearchTerms();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SEARCH_TERMS:return isSetSearchTerms();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getSearchResultCount_args)return this.equals((getSearchResultCount_args)that);return false;}public boolean equals(getSearchResultCount_args that) {if (that == null)return false;boolean this_present_searchTerms = true && this.isSetSearchTerms();boolean that_present_searchTerms = true && that.isSetSearchTerms();if (this_present_searchTerms || that_present_searchTerms) {if (!(this_present_searchTerms && that_present_searchTerms))return false;if (!this.searchTerms.equals(that.searchTerms))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getSearchResultCount_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSearchResultCount_args typedOther = (getSearchResultCount_args)other;lastComparison = Boolean.valueOf(isSetSearchTerms()).compareTo(typedOther.isSetSearchTerms());if (lastComparison != 0) {return lastComparison;}if (isSetSearchTerms()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchTerms, typedOther.searchTerms);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SEARCH_TERMSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list113 = iprot.readListBegin();this.searchTerms = new ArrayList<String>(_list113.size);for (int _i114 = 0; _i114 < _list113.size; ++_i114){String _elem115; // required_elem115 = iprot.readString();this.searchTerms.add(_elem115);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.searchTerms != null) {oprot.writeFieldBegin(SEARCH_TERMS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.searchTerms.size()));for (String _iter116 : this.searchTerms){oprot.writeString(_iter116);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSearchResultCount_args(");boolean first = true;sb.append("searchTerms:");if (this.searchTerms == null) {sb.append("null");} else {sb.append(this.searchTerms);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getSearchResultCount_result implements org.apache.thrift.TBase<getSearchResultCount_result, getSearchResultCount_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSearchResultCount_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);private int success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSearchResultCount_result.class, metaDataMap);}public getSearchResultCount_result() {}public getSearchResultCount_result(int success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getSearchResultCount_result(getSearchResultCount_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public getSearchResultCount_result deepCopy() {return new getSearchResultCount_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;}public int getSuccess() {return this.success;}public void setSuccess(int success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Integer)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Integer.valueOf(getSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getSearchResultCount_result)return this.equals((getSearchResultCount_result)that);return false;}public boolean equals(getSearchResultCount_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getSearchResultCount_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSearchResultCount_result typedOther = (getSearchResultCount_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I32) {this.success = iprot.readI32();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI32(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSearchResultCount_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getProductNotifications_args implements org.apache.thrift.TBase<getProductNotifications_args, getProductNotifications_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProductNotifications_args");private static final org.apache.thrift.protocol.TField START_DATE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("startDateTime", org.apache.thrift.protocol.TType.I64, (short)1);private long startDateTime; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {START_DATE_TIME((short)1, "startDateTime");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // START_DATE_TIMEreturn START_DATE_TIME;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __STARTDATETIME_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.START_DATE_TIME, new org.apache.thrift.meta_data.FieldMetaData("startDateTime", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProductNotifications_args.class, metaDataMap);}public getProductNotifications_args() {}public getProductNotifications_args(long startDateTime){this();this.startDateTime = startDateTime;setStartDateTimeIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getProductNotifications_args(getProductNotifications_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.startDateTime = other.startDateTime;}public getProductNotifications_args deepCopy() {return new getProductNotifications_args(this);}@Overridepublic void clear() {setStartDateTimeIsSet(false);this.startDateTime = 0;}public long getStartDateTime() {return this.startDateTime;}public void setStartDateTime(long startDateTime) {this.startDateTime = startDateTime;setStartDateTimeIsSet(true);}public void unsetStartDateTime() {__isset_bit_vector.clear(__STARTDATETIME_ISSET_ID);}/** Returns true if field startDateTime is set (has been assigned a value) and false otherwise */public boolean isSetStartDateTime() {return __isset_bit_vector.get(__STARTDATETIME_ISSET_ID);}public void setStartDateTimeIsSet(boolean value) {__isset_bit_vector.set(__STARTDATETIME_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case START_DATE_TIME:if (value == null) {unsetStartDateTime();} else {setStartDateTime((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case START_DATE_TIME:return Long.valueOf(getStartDateTime());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case START_DATE_TIME:return isSetStartDateTime();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getProductNotifications_args)return this.equals((getProductNotifications_args)that);return false;}public boolean equals(getProductNotifications_args that) {if (that == null)return false;boolean this_present_startDateTime = true;boolean that_present_startDateTime = true;if (this_present_startDateTime || that_present_startDateTime) {if (!(this_present_startDateTime && that_present_startDateTime))return false;if (this.startDateTime != that.startDateTime)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getProductNotifications_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getProductNotifications_args typedOther = (getProductNotifications_args)other;lastComparison = Boolean.valueOf(isSetStartDateTime()).compareTo(typedOther.isSetStartDateTime());if (lastComparison != 0) {return lastComparison;}if (isSetStartDateTime()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDateTime, typedOther.startDateTime);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // START_DATE_TIMEif (field.type == org.apache.thrift.protocol.TType.I64) {this.startDateTime = iprot.readI64();setStartDateTimeIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(START_DATE_TIME_FIELD_DESC);oprot.writeI64(this.startDateTime);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getProductNotifications_args(");boolean first = true;sb.append("startDateTime:");sb.append(this.startDateTime);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getProductNotifications_result implements org.apache.thrift.TBase<getProductNotifications_result, getProductNotifications_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProductNotifications_result");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);private List<ProductNotificationRequest> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ProductNotificationRequest.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProductNotifications_result.class, metaDataMap);}public getProductNotifications_result() {}public getProductNotifications_result(List<ProductNotificationRequest> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getProductNotifications_result(getProductNotifications_result other) {if (other.isSetSuccess()) {List<ProductNotificationRequest> __this__success = new ArrayList<ProductNotificationRequest>();for (ProductNotificationRequest other_element : other.success) {__this__success.add(new ProductNotificationRequest(other_element));}this.success = __this__success;}}public getProductNotifications_result deepCopy() {return new getProductNotifications_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<ProductNotificationRequest> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(ProductNotificationRequest elem) {if (this.success == null) {this.success = new ArrayList<ProductNotificationRequest>();}this.success.add(elem);}public List<ProductNotificationRequest> getSuccess() {return this.success;}public void setSuccess(List<ProductNotificationRequest> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<ProductNotificationRequest>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getProductNotifications_result)return this.equals((getProductNotifications_result)that);return false;}public boolean equals(getProductNotifications_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getProductNotifications_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getProductNotifications_result typedOther = (getProductNotifications_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list117 = iprot.readListBegin();this.success = new ArrayList<ProductNotificationRequest>(_list117.size);for (int _i118 = 0; _i118 < _list117.size; ++_i118){ProductNotificationRequest _elem119; // required_elem119 = new ProductNotificationRequest();_elem119.read(iprot);this.success.add(_elem119);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (ProductNotificationRequest _iter120 : this.success){_iter120.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getProductNotifications_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getProductNotificationRequestCount_args implements org.apache.thrift.TBase<getProductNotificationRequestCount_args, getProductNotificationRequestCount_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProductNotificationRequestCount_args");private static final org.apache.thrift.protocol.TField START_DATE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("startDateTime", org.apache.thrift.protocol.TType.I64, (short)1);private long startDateTime; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {START_DATE_TIME((short)1, "startDateTime");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // START_DATE_TIMEreturn START_DATE_TIME;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __STARTDATETIME_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.START_DATE_TIME, new org.apache.thrift.meta_data.FieldMetaData("startDateTime", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProductNotificationRequestCount_args.class, metaDataMap);}public getProductNotificationRequestCount_args() {}public getProductNotificationRequestCount_args(long startDateTime){this();this.startDateTime = startDateTime;setStartDateTimeIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getProductNotificationRequestCount_args(getProductNotificationRequestCount_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.startDateTime = other.startDateTime;}public getProductNotificationRequestCount_args deepCopy() {return new getProductNotificationRequestCount_args(this);}@Overridepublic void clear() {setStartDateTimeIsSet(false);this.startDateTime = 0;}public long getStartDateTime() {return this.startDateTime;}public void setStartDateTime(long startDateTime) {this.startDateTime = startDateTime;setStartDateTimeIsSet(true);}public void unsetStartDateTime() {__isset_bit_vector.clear(__STARTDATETIME_ISSET_ID);}/** Returns true if field startDateTime is set (has been assigned a value) and false otherwise */public boolean isSetStartDateTime() {return __isset_bit_vector.get(__STARTDATETIME_ISSET_ID);}public void setStartDateTimeIsSet(boolean value) {__isset_bit_vector.set(__STARTDATETIME_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case START_DATE_TIME:if (value == null) {unsetStartDateTime();} else {setStartDateTime((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case START_DATE_TIME:return Long.valueOf(getStartDateTime());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case START_DATE_TIME:return isSetStartDateTime();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getProductNotificationRequestCount_args)return this.equals((getProductNotificationRequestCount_args)that);return false;}public boolean equals(getProductNotificationRequestCount_args that) {if (that == null)return false;boolean this_present_startDateTime = true;boolean that_present_startDateTime = true;if (this_present_startDateTime || that_present_startDateTime) {if (!(this_present_startDateTime && that_present_startDateTime))return false;if (this.startDateTime != that.startDateTime)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getProductNotificationRequestCount_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getProductNotificationRequestCount_args typedOther = (getProductNotificationRequestCount_args)other;lastComparison = Boolean.valueOf(isSetStartDateTime()).compareTo(typedOther.isSetStartDateTime());if (lastComparison != 0) {return lastComparison;}if (isSetStartDateTime()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDateTime, typedOther.startDateTime);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // START_DATE_TIMEif (field.type == org.apache.thrift.protocol.TType.I64) {this.startDateTime = iprot.readI64();setStartDateTimeIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(START_DATE_TIME_FIELD_DESC);oprot.writeI64(this.startDateTime);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getProductNotificationRequestCount_args(");boolean first = true;sb.append("startDateTime:");sb.append(this.startDateTime);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getProductNotificationRequestCount_result implements org.apache.thrift.TBase<getProductNotificationRequestCount_result, getProductNotificationRequestCount_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProductNotificationRequestCount_result");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);private List<ProductNotificationRequestCount> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ProductNotificationRequestCount.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProductNotificationRequestCount_result.class, metaDataMap);}public getProductNotificationRequestCount_result() {}public getProductNotificationRequestCount_result(List<ProductNotificationRequestCount> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getProductNotificationRequestCount_result(getProductNotificationRequestCount_result other) {if (other.isSetSuccess()) {List<ProductNotificationRequestCount> __this__success = new ArrayList<ProductNotificationRequestCount>();for (ProductNotificationRequestCount other_element : other.success) {__this__success.add(new ProductNotificationRequestCount(other_element));}this.success = __this__success;}}public getProductNotificationRequestCount_result deepCopy() {return new getProductNotificationRequestCount_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<ProductNotificationRequestCount> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(ProductNotificationRequestCount elem) {if (this.success == null) {this.success = new ArrayList<ProductNotificationRequestCount>();}this.success.add(elem);}public List<ProductNotificationRequestCount> getSuccess() {return this.success;}public void setSuccess(List<ProductNotificationRequestCount> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<ProductNotificationRequestCount>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getProductNotificationRequestCount_result)return this.equals((getProductNotificationRequestCount_result)that);return false;}public boolean equals(getProductNotificationRequestCount_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getProductNotificationRequestCount_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getProductNotificationRequestCount_result typedOther = (getProductNotificationRequestCount_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list121 = iprot.readListBegin();this.success = new ArrayList<ProductNotificationRequestCount>(_list121.size);for (int _i122 = 0; _i122 < _list121.size; ++_i122){ProductNotificationRequestCount _elem123; // required_elem123 = new ProductNotificationRequestCount();_elem123.read(iprot);this.success.add(_elem123);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (ProductNotificationRequestCount _iter124 : this.success){_iter124.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getProductNotificationRequestCount_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addAuthorizationLog_args implements org.apache.thrift.TBase<addAuthorizationLog_args, addAuthorizationLog_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAuthorizationLog_args");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);private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)2);private static final org.apache.thrift.protocol.TField REASON_FIELD_DESC = new org.apache.thrift.protocol.TField("reason", org.apache.thrift.protocol.TType.STRING, (short)3);private long itemId; // requiredprivate String username; // requiredprivate String reason; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId"),USERNAME((short)2, "username"),REASON((short)3, "reason");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // USERNAMEreturn USERNAME;case 3: // REASONreturn REASON;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.REASON, new org.apache.thrift.meta_data.FieldMetaData("reason", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAuthorizationLog_args.class, metaDataMap);}public addAuthorizationLog_args() {}public addAuthorizationLog_args(long itemId,String username,String reason){this();this.itemId = itemId;setItemIdIsSet(true);this.username = username;this.reason = reason;}/*** Performs a deep copy on <i>other</i>.*/public addAuthorizationLog_args(addAuthorizationLog_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;if (other.isSetUsername()) {this.username = other.username;}if (other.isSetReason()) {this.reason = other.reason;}}public addAuthorizationLog_args deepCopy() {return new addAuthorizationLog_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;this.username = null;this.reason = null;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public String getUsername() {return this.username;}public void setUsername(String username) {this.username = username;}public void unsetUsername() {this.username = null;}/** Returns true if field username is set (has been assigned a value) and false otherwise */public boolean isSetUsername() {return this.username != null;}public void setUsernameIsSet(boolean value) {if (!value) {this.username = null;}}public String getReason() {return this.reason;}public void setReason(String reason) {this.reason = reason;}public void unsetReason() {this.reason = null;}/** Returns true if field reason is set (has been assigned a value) and false otherwise */public boolean isSetReason() {return this.reason != null;}public void setReasonIsSet(boolean value) {if (!value) {this.reason = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case USERNAME:if (value == null) {unsetUsername();} else {setUsername((String)value);}break;case REASON:if (value == null) {unsetReason();} else {setReason((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());case USERNAME:return getUsername();case REASON:return getReason();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();case USERNAME:return isSetUsername();case REASON:return isSetReason();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addAuthorizationLog_args)return this.equals((addAuthorizationLog_args)that);return false;}public boolean equals(addAuthorizationLog_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_username = true && this.isSetUsername();boolean that_present_username = true && that.isSetUsername();if (this_present_username || that_present_username) {if (!(this_present_username && that_present_username))return false;if (!this.username.equals(that.username))return false;}boolean this_present_reason = true && this.isSetReason();boolean that_present_reason = true && that.isSetReason();if (this_present_reason || that_present_reason) {if (!(this_present_reason && that_present_reason))return false;if (!this.reason.equals(that.reason))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addAuthorizationLog_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addAuthorizationLog_args typedOther = (addAuthorizationLog_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());if (lastComparison != 0) {return lastComparison;}if (isSetUsername()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetReason()).compareTo(typedOther.isSetReason());if (lastComparison != 0) {return lastComparison;}if (isSetReason()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reason, typedOther.reason);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // USERNAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.username = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // REASONif (field.type == org.apache.thrift.protocol.TType.STRING) {this.reason = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();if (this.username != null) {oprot.writeFieldBegin(USERNAME_FIELD_DESC);oprot.writeString(this.username);oprot.writeFieldEnd();}if (this.reason != null) {oprot.writeFieldBegin(REASON_FIELD_DESC);oprot.writeString(this.reason);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addAuthorizationLog_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("username:");if (this.username == null) {sb.append("null");} else {sb.append(this.username);}first = false;if (!first) sb.append(", ");sb.append("reason:");if (this.reason == null) {sb.append("null");} else {sb.append(this.reason);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addAuthorizationLog_result implements org.apache.thrift.TBase<addAuthorizationLog_result, addAuthorizationLog_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAuthorizationLog_result");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);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);private boolean success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAuthorizationLog_result.class, metaDataMap);}public addAuthorizationLog_result() {}public addAuthorizationLog_result(boolean success,CatalogServiceException cex){this();this.success = success;setSuccessIsSet(true);this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public addAuthorizationLog_result(addAuthorizationLog_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public addAuthorizationLog_result deepCopy() {return new addAuthorizationLog_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.cex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addAuthorizationLog_result)return this.equals((addAuthorizationLog_result)that);return false;}public boolean equals(addAuthorizationLog_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addAuthorizationLog_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addAuthorizationLog_result typedOther = (addAuthorizationLog_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addAuthorizationLog_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getClearanceSaleCatalogIds_args implements org.apache.thrift.TBase<getClearanceSaleCatalogIds_args, getClearanceSaleCatalogIds_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getClearanceSaleCatalogIds_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getClearanceSaleCatalogIds_args.class, metaDataMap);}public getClearanceSaleCatalogIds_args() {}/*** Performs a deep copy on <i>other</i>.*/public getClearanceSaleCatalogIds_args(getClearanceSaleCatalogIds_args other) {}public getClearanceSaleCatalogIds_args deepCopy() {return new getClearanceSaleCatalogIds_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getClearanceSaleCatalogIds_args)return this.equals((getClearanceSaleCatalogIds_args)that);return false;}public boolean equals(getClearanceSaleCatalogIds_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getClearanceSaleCatalogIds_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getClearanceSaleCatalogIds_args typedOther = (getClearanceSaleCatalogIds_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getClearanceSaleCatalogIds_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getClearanceSaleCatalogIds_result implements org.apache.thrift.TBase<getClearanceSaleCatalogIds_result, getClearanceSaleCatalogIds_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getClearanceSaleCatalogIds_result");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);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);private List<Long> success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getClearanceSaleCatalogIds_result.class, metaDataMap);}public getClearanceSaleCatalogIds_result() {}public getClearanceSaleCatalogIds_result(List<Long> success,CatalogServiceException cex){this();this.success = success;this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public getClearanceSaleCatalogIds_result(getClearanceSaleCatalogIds_result other) {if (other.isSetSuccess()) {List<Long> __this__success = new ArrayList<Long>();for (Long other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public getClearanceSaleCatalogIds_result deepCopy() {return new getClearanceSaleCatalogIds_result(this);}@Overridepublic void clear() {this.success = null;this.cex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Long> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(long elem) {if (this.success == null) {this.success = new ArrayList<Long>();}this.success.add(elem);}public List<Long> getSuccess() {return this.success;}public void setSuccess(List<Long> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Long>)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getClearanceSaleCatalogIds_result)return this.equals((getClearanceSaleCatalogIds_result)that);return false;}public boolean equals(getClearanceSaleCatalogIds_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getClearanceSaleCatalogIds_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getClearanceSaleCatalogIds_result typedOther = (getClearanceSaleCatalogIds_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list125 = iprot.readListBegin();this.success = new ArrayList<Long>(_list125.size);for (int _i126 = 0; _i126 < _list125.size; ++_i126){long _elem127; // required_elem127 = iprot.readI64();this.success.add(_elem127);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));for (long _iter128 : this.success){oprot.writeI64(_iter128);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getClearanceSaleCatalogIds_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addupdateVoucherForItem_args implements org.apache.thrift.TBase<addupdateVoucherForItem_args, addupdateVoucherForItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addupdateVoucherForItem_args");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);private static final org.apache.thrift.protocol.TField VOUCHER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("voucherType", org.apache.thrift.protocol.TType.I64, (short)2);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);private long catalog_item_id; // requiredprivate long voucherType; // requiredprivate long voucherAmount; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CATALOG_ITEM_ID((short)1, "catalog_item_id"),VOUCHER_TYPE((short)2, "voucherType"),VOUCHER_AMOUNT((short)3, "voucherAmount");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CATALOG_ITEM_IDreturn CATALOG_ITEM_ID;case 2: // VOUCHER_TYPEreturn VOUCHER_TYPE;case 3: // VOUCHER_AMOUNTreturn VOUCHER_AMOUNT;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CATALOG_ITEM_ID_ISSET_ID = 0;private static final int __VOUCHERTYPE_ISSET_ID = 1;private static final int __VOUCHERAMOUNT_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalog_item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.VOUCHER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("voucherType", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.VOUCHER_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("voucherAmount", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addupdateVoucherForItem_args.class, metaDataMap);}public addupdateVoucherForItem_args() {}public addupdateVoucherForItem_args(long catalog_item_id,long voucherType,long voucherAmount){this();this.catalog_item_id = catalog_item_id;setCatalog_item_idIsSet(true);this.voucherType = voucherType;setVoucherTypeIsSet(true);this.voucherAmount = voucherAmount;setVoucherAmountIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public addupdateVoucherForItem_args(addupdateVoucherForItem_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.catalog_item_id = other.catalog_item_id;this.voucherType = other.voucherType;this.voucherAmount = other.voucherAmount;}public addupdateVoucherForItem_args deepCopy() {return new addupdateVoucherForItem_args(this);}@Overridepublic void clear() {setCatalog_item_idIsSet(false);this.catalog_item_id = 0;setVoucherTypeIsSet(false);this.voucherType = 0;setVoucherAmountIsSet(false);this.voucherAmount = 0;}public long getCatalog_item_id() {return this.catalog_item_id;}public void setCatalog_item_id(long catalog_item_id) {this.catalog_item_id = catalog_item_id;setCatalog_item_idIsSet(true);}public void unsetCatalog_item_id() {__isset_bit_vector.clear(__CATALOG_ITEM_ID_ISSET_ID);}/** Returns true if field catalog_item_id is set (has been assigned a value) and false otherwise */public boolean isSetCatalog_item_id() {return __isset_bit_vector.get(__CATALOG_ITEM_ID_ISSET_ID);}public void setCatalog_item_idIsSet(boolean value) {__isset_bit_vector.set(__CATALOG_ITEM_ID_ISSET_ID, value);}public long getVoucherType() {return this.voucherType;}public void setVoucherType(long voucherType) {this.voucherType = voucherType;setVoucherTypeIsSet(true);}public void unsetVoucherType() {__isset_bit_vector.clear(__VOUCHERTYPE_ISSET_ID);}/** Returns true if field voucherType is set (has been assigned a value) and false otherwise */public boolean isSetVoucherType() {return __isset_bit_vector.get(__VOUCHERTYPE_ISSET_ID);}public void setVoucherTypeIsSet(boolean value) {__isset_bit_vector.set(__VOUCHERTYPE_ISSET_ID, value);}public long getVoucherAmount() {return this.voucherAmount;}public void setVoucherAmount(long voucherAmount) {this.voucherAmount = voucherAmount;setVoucherAmountIsSet(true);}public void unsetVoucherAmount() {__isset_bit_vector.clear(__VOUCHERAMOUNT_ISSET_ID);}/** Returns true if field voucherAmount is set (has been assigned a value) and false otherwise */public boolean isSetVoucherAmount() {return __isset_bit_vector.get(__VOUCHERAMOUNT_ISSET_ID);}public void setVoucherAmountIsSet(boolean value) {__isset_bit_vector.set(__VOUCHERAMOUNT_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case CATALOG_ITEM_ID:if (value == null) {unsetCatalog_item_id();} else {setCatalog_item_id((Long)value);}break;case VOUCHER_TYPE:if (value == null) {unsetVoucherType();} else {setVoucherType((Long)value);}break;case VOUCHER_AMOUNT:if (value == null) {unsetVoucherAmount();} else {setVoucherAmount((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CATALOG_ITEM_ID:return Long.valueOf(getCatalog_item_id());case VOUCHER_TYPE:return Long.valueOf(getVoucherType());case VOUCHER_AMOUNT:return Long.valueOf(getVoucherAmount());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CATALOG_ITEM_ID:return isSetCatalog_item_id();case VOUCHER_TYPE:return isSetVoucherType();case VOUCHER_AMOUNT:return isSetVoucherAmount();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addupdateVoucherForItem_args)return this.equals((addupdateVoucherForItem_args)that);return false;}public boolean equals(addupdateVoucherForItem_args that) {if (that == null)return false;boolean this_present_catalog_item_id = true;boolean that_present_catalog_item_id = true;if (this_present_catalog_item_id || that_present_catalog_item_id) {if (!(this_present_catalog_item_id && that_present_catalog_item_id))return false;if (this.catalog_item_id != that.catalog_item_id)return false;}boolean this_present_voucherType = true;boolean that_present_voucherType = true;if (this_present_voucherType || that_present_voucherType) {if (!(this_present_voucherType && that_present_voucherType))return false;if (this.voucherType != that.voucherType)return false;}boolean this_present_voucherAmount = true;boolean that_present_voucherAmount = true;if (this_present_voucherAmount || that_present_voucherAmount) {if (!(this_present_voucherAmount && that_present_voucherAmount))return false;if (this.voucherAmount != that.voucherAmount)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addupdateVoucherForItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addupdateVoucherForItem_args typedOther = (addupdateVoucherForItem_args)other;lastComparison = Boolean.valueOf(isSetCatalog_item_id()).compareTo(typedOther.isSetCatalog_item_id());if (lastComparison != 0) {return lastComparison;}if (isSetCatalog_item_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalog_item_id, typedOther.catalog_item_id);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetVoucherType()).compareTo(typedOther.isSetVoucherType());if (lastComparison != 0) {return lastComparison;}if (isSetVoucherType()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.voucherType, typedOther.voucherType);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetVoucherAmount()).compareTo(typedOther.isSetVoucherAmount());if (lastComparison != 0) {return lastComparison;}if (isSetVoucherAmount()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.voucherAmount, typedOther.voucherAmount);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CATALOG_ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.catalog_item_id = iprot.readI64();setCatalog_item_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // VOUCHER_TYPEif (field.type == org.apache.thrift.protocol.TType.I64) {this.voucherType = iprot.readI64();setVoucherTypeIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // VOUCHER_AMOUNTif (field.type == org.apache.thrift.protocol.TType.I64) {this.voucherAmount = iprot.readI64();setVoucherAmountIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);oprot.writeI64(this.catalog_item_id);oprot.writeFieldEnd();oprot.writeFieldBegin(VOUCHER_TYPE_FIELD_DESC);oprot.writeI64(this.voucherType);oprot.writeFieldEnd();oprot.writeFieldBegin(VOUCHER_AMOUNT_FIELD_DESC);oprot.writeI64(this.voucherAmount);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addupdateVoucherForItem_args(");boolean first = true;sb.append("catalog_item_id:");sb.append(this.catalog_item_id);first = false;if (!first) sb.append(", ");sb.append("voucherType:");sb.append(this.voucherType);first = false;if (!first) sb.append(", ");sb.append("voucherAmount:");sb.append(this.voucherAmount);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addupdateVoucherForItem_result implements org.apache.thrift.TBase<addupdateVoucherForItem_result, addupdateVoucherForItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addupdateVoucherForItem_result");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);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);private boolean success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addupdateVoucherForItem_result.class, metaDataMap);}public addupdateVoucherForItem_result() {}public addupdateVoucherForItem_result(boolean success,CatalogServiceException cex){this();this.success = success;setSuccessIsSet(true);this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public addupdateVoucherForItem_result(addupdateVoucherForItem_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public addupdateVoucherForItem_result deepCopy() {return new addupdateVoucherForItem_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.cex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addupdateVoucherForItem_result)return this.equals((addupdateVoucherForItem_result)that);return false;}public boolean equals(addupdateVoucherForItem_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addupdateVoucherForItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addupdateVoucherForItem_result typedOther = (addupdateVoucherForItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addupdateVoucherForItem_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class deleteVoucherForItem_args implements org.apache.thrift.TBase<deleteVoucherForItem_args, deleteVoucherForItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteVoucherForItem_args");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);private static final org.apache.thrift.protocol.TField VOUCHER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("voucherType", org.apache.thrift.protocol.TType.I64, (short)2);private long catalog_item_id; // requiredprivate long voucherType; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CATALOG_ITEM_ID((short)1, "catalog_item_id"),VOUCHER_TYPE((short)2, "voucherType");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CATALOG_ITEM_IDreturn CATALOG_ITEM_ID;case 2: // VOUCHER_TYPEreturn VOUCHER_TYPE;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CATALOG_ITEM_ID_ISSET_ID = 0;private static final int __VOUCHERTYPE_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalog_item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.VOUCHER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("voucherType", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteVoucherForItem_args.class, metaDataMap);}public deleteVoucherForItem_args() {}public deleteVoucherForItem_args(long catalog_item_id,long voucherType){this();this.catalog_item_id = catalog_item_id;setCatalog_item_idIsSet(true);this.voucherType = voucherType;setVoucherTypeIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public deleteVoucherForItem_args(deleteVoucherForItem_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.catalog_item_id = other.catalog_item_id;this.voucherType = other.voucherType;}public deleteVoucherForItem_args deepCopy() {return new deleteVoucherForItem_args(this);}@Overridepublic void clear() {setCatalog_item_idIsSet(false);this.catalog_item_id = 0;setVoucherTypeIsSet(false);this.voucherType = 0;}public long getCatalog_item_id() {return this.catalog_item_id;}public void setCatalog_item_id(long catalog_item_id) {this.catalog_item_id = catalog_item_id;setCatalog_item_idIsSet(true);}public void unsetCatalog_item_id() {__isset_bit_vector.clear(__CATALOG_ITEM_ID_ISSET_ID);}/** Returns true if field catalog_item_id is set (has been assigned a value) and false otherwise */public boolean isSetCatalog_item_id() {return __isset_bit_vector.get(__CATALOG_ITEM_ID_ISSET_ID);}public void setCatalog_item_idIsSet(boolean value) {__isset_bit_vector.set(__CATALOG_ITEM_ID_ISSET_ID, value);}public long getVoucherType() {return this.voucherType;}public void setVoucherType(long voucherType) {this.voucherType = voucherType;setVoucherTypeIsSet(true);}public void unsetVoucherType() {__isset_bit_vector.clear(__VOUCHERTYPE_ISSET_ID);}/** Returns true if field voucherType is set (has been assigned a value) and false otherwise */public boolean isSetVoucherType() {return __isset_bit_vector.get(__VOUCHERTYPE_ISSET_ID);}public void setVoucherTypeIsSet(boolean value) {__isset_bit_vector.set(__VOUCHERTYPE_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case CATALOG_ITEM_ID:if (value == null) {unsetCatalog_item_id();} else {setCatalog_item_id((Long)value);}break;case VOUCHER_TYPE:if (value == null) {unsetVoucherType();} else {setVoucherType((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CATALOG_ITEM_ID:return Long.valueOf(getCatalog_item_id());case VOUCHER_TYPE:return Long.valueOf(getVoucherType());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CATALOG_ITEM_ID:return isSetCatalog_item_id();case VOUCHER_TYPE:return isSetVoucherType();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof deleteVoucherForItem_args)return this.equals((deleteVoucherForItem_args)that);return false;}public boolean equals(deleteVoucherForItem_args that) {if (that == null)return false;boolean this_present_catalog_item_id = true;boolean that_present_catalog_item_id = true;if (this_present_catalog_item_id || that_present_catalog_item_id) {if (!(this_present_catalog_item_id && that_present_catalog_item_id))return false;if (this.catalog_item_id != that.catalog_item_id)return false;}boolean this_present_voucherType = true;boolean that_present_voucherType = true;if (this_present_voucherType || that_present_voucherType) {if (!(this_present_voucherType && that_present_voucherType))return false;if (this.voucherType != that.voucherType)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(deleteVoucherForItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;deleteVoucherForItem_args typedOther = (deleteVoucherForItem_args)other;lastComparison = Boolean.valueOf(isSetCatalog_item_id()).compareTo(typedOther.isSetCatalog_item_id());if (lastComparison != 0) {return lastComparison;}if (isSetCatalog_item_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalog_item_id, typedOther.catalog_item_id);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetVoucherType()).compareTo(typedOther.isSetVoucherType());if (lastComparison != 0) {return lastComparison;}if (isSetVoucherType()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.voucherType, typedOther.voucherType);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CATALOG_ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.catalog_item_id = iprot.readI64();setCatalog_item_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // VOUCHER_TYPEif (field.type == org.apache.thrift.protocol.TType.I64) {this.voucherType = iprot.readI64();setVoucherTypeIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);oprot.writeI64(this.catalog_item_id);oprot.writeFieldEnd();oprot.writeFieldBegin(VOUCHER_TYPE_FIELD_DESC);oprot.writeI64(this.voucherType);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("deleteVoucherForItem_args(");boolean first = true;sb.append("catalog_item_id:");sb.append(this.catalog_item_id);first = false;if (!first) sb.append(", ");sb.append("voucherType:");sb.append(this.voucherType);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class deleteVoucherForItem_result implements org.apache.thrift.TBase<deleteVoucherForItem_result, deleteVoucherForItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteVoucherForItem_result");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);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);private boolean success; // requiredprivate CatalogServiceException cex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),CEX((short)1, "cex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // CEXreturn CEX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteVoucherForItem_result.class, metaDataMap);}public deleteVoucherForItem_result() {}public deleteVoucherForItem_result(boolean success,CatalogServiceException cex){this();this.success = success;setSuccessIsSet(true);this.cex = cex;}/*** Performs a deep copy on <i>other</i>.*/public deleteVoucherForItem_result(deleteVoucherForItem_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetCex()) {this.cex = new CatalogServiceException(other.cex);}}public deleteVoucherForItem_result deepCopy() {return new deleteVoucherForItem_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.cex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public CatalogServiceException getCex() {return this.cex;}public void setCex(CatalogServiceException cex) {this.cex = cex;}public void unsetCex() {this.cex = null;}/** Returns true if field cex is set (has been assigned a value) and false otherwise */public boolean isSetCex() {return this.cex != null;}public void setCexIsSet(boolean value) {if (!value) {this.cex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case CEX:if (value == null) {unsetCex();} else {setCex((CatalogServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case CEX:return getCex();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case CEX:return isSetCex();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof deleteVoucherForItem_result)return this.equals((deleteVoucherForItem_result)that);return false;}public boolean equals(deleteVoucherForItem_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_cex = true && this.isSetCex();boolean that_present_cex = true && that.isSetCex();if (this_present_cex || that_present_cex) {if (!(this_present_cex && that_present_cex))return false;if (!this.cex.equals(that.cex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(deleteVoucherForItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;deleteVoucherForItem_result typedOther = (deleteVoucherForItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());if (lastComparison != 0) {return lastComparison;}if (isSetCex()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // CEXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.cex = new CatalogServiceException();this.cex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetCex()) {oprot.writeFieldBegin(CEX_FIELD_DESC);this.cex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("deleteVoucherForItem_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("cex:");if (this.cex == null) {sb.append("null");} else {sb.append(this.cex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getVoucherAmount_args implements org.apache.thrift.TBase<getVoucherAmount_args, getVoucherAmount_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVoucherAmount_args");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);private static final org.apache.thrift.protocol.TField VOUCHER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("voucherType", org.apache.thrift.protocol.TType.I64, (short)2);private long itemId; // requiredprivate long voucherType; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId"),VOUCHER_TYPE((short)2, "voucherType");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // VOUCHER_TYPEreturn VOUCHER_TYPE;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private static final int __VOUCHERTYPE_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.VOUCHER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("voucherType", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVoucherAmount_args.class, metaDataMap);}public getVoucherAmount_args() {}public getVoucherAmount_args(long itemId,long voucherType){this();this.itemId = itemId;setItemIdIsSet(true);this.voucherType = voucherType;setVoucherTypeIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getVoucherAmount_args(getVoucherAmount_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;this.voucherType = other.voucherType;}public getVoucherAmount_args deepCopy() {return new getVoucherAmount_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;setVoucherTypeIsSet(false);this.voucherType = 0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public long getVoucherType() {return this.voucherType;}public void setVoucherType(long voucherType) {this.voucherType = voucherType;setVoucherTypeIsSet(true);}public void unsetVoucherType() {__isset_bit_vector.clear(__VOUCHERTYPE_ISSET_ID);}/** Returns true if field voucherType is set (has been assigned a value) and false otherwise */public boolean isSetVoucherType() {return __isset_bit_vector.get(__VOUCHERTYPE_ISSET_ID);}public void setVoucherTypeIsSet(boolean value) {__isset_bit_vector.set(__VOUCHERTYPE_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case VOUCHER_TYPE:if (value == null) {unsetVoucherType();} else {setVoucherType((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());case VOUCHER_TYPE:return Long.valueOf(getVoucherType());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();case VOUCHER_TYPE:return isSetVoucherType();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getVoucherAmount_args)return this.equals((getVoucherAmount_args)that);return false;}public boolean equals(getVoucherAmount_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_voucherType = true;boolean that_present_voucherType = true;if (this_present_voucherType || that_present_voucherType) {if (!(this_present_voucherType && that_present_voucherType))return false;if (this.voucherType != that.voucherType)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getVoucherAmount_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getVoucherAmount_args typedOther = (getVoucherAmount_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetVoucherType()).compareTo(typedOther.isSetVoucherType());if (lastComparison != 0) {return lastComparison;}if (isSetVoucherType()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.voucherType, typedOther.voucherType);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // VOUCHER_TYPEif (field.type == org.apache.thrift.protocol.TType.I64) {this.voucherType = iprot.readI64();setVoucherTypeIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldBegin(VOUCHER_TYPE_FIELD_DESC);oprot.writeI64(this.voucherType);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getVoucherAmount_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("voucherType:");sb.append(this.voucherType);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getVoucherAmount_result implements org.apache.thrift.TBase<getVoucherAmount_result, getVoucherAmount_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVoucherAmount_result");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);private long success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVoucherAmount_result.class, metaDataMap);}public getVoucherAmount_result() {}public getVoucherAmount_result(long success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getVoucherAmount_result(getVoucherAmount_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public getVoucherAmount_result deepCopy() {return new getVoucherAmount_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getVoucherAmount_result)return this.equals((getVoucherAmount_result)that);return false;}public boolean equals(getVoucherAmount_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getVoucherAmount_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getVoucherAmount_result typedOther = (getVoucherAmount_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getVoucherAmount_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllItemVouchers_args implements org.apache.thrift.TBase<getAllItemVouchers_args, getAllItemVouchers_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemVouchers_args");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);private long itemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemVouchers_args.class, metaDataMap);}public getAllItemVouchers_args() {}public getAllItemVouchers_args(long itemId){this();this.itemId = itemId;setItemIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAllItemVouchers_args(getAllItemVouchers_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;}public getAllItemVouchers_args deepCopy() {return new getAllItemVouchers_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllItemVouchers_args)return this.equals((getAllItemVouchers_args)that);return false;}public boolean equals(getAllItemVouchers_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllItemVouchers_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllItemVouchers_args typedOther = (getAllItemVouchers_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllItemVouchers_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllItemVouchers_result implements org.apache.thrift.TBase<getAllItemVouchers_result, getAllItemVouchers_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemVouchers_result");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);private List<VoucherItemMapping> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VoucherItemMapping.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemVouchers_result.class, metaDataMap);}public getAllItemVouchers_result() {}public getAllItemVouchers_result(List<VoucherItemMapping> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllItemVouchers_result(getAllItemVouchers_result other) {if (other.isSetSuccess()) {List<VoucherItemMapping> __this__success = new ArrayList<VoucherItemMapping>();for (VoucherItemMapping other_element : other.success) {__this__success.add(new VoucherItemMapping(other_element));}this.success = __this__success;}}public getAllItemVouchers_result deepCopy() {return new getAllItemVouchers_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<VoucherItemMapping> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(VoucherItemMapping elem) {if (this.success == null) {this.success = new ArrayList<VoucherItemMapping>();}this.success.add(elem);}public List<VoucherItemMapping> getSuccess() {return this.success;}public void setSuccess(List<VoucherItemMapping> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<VoucherItemMapping>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllItemVouchers_result)return this.equals((getAllItemVouchers_result)that);return false;}public boolean equals(getAllItemVouchers_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllItemVouchers_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllItemVouchers_result typedOther = (getAllItemVouchers_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list129 = iprot.readListBegin();this.success = new ArrayList<VoucherItemMapping>(_list129.size);for (int _i130 = 0; _i130 < _list129.size; ++_i130){VoucherItemMapping _elem131; // required_elem131 = new VoucherItemMapping();_elem131.read(iprot);this.success.add(_elem131);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (VoucherItemMapping _iter132 : this.success){_iter132.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllItemVouchers_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class isValidCatalogItemId_args implements org.apache.thrift.TBase<isValidCatalogItemId_args, isValidCatalogItemId_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isValidCatalogItemId_args");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);private long catalog_item_id; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CATALOG_ITEM_ID((short)1, "catalog_item_id");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CATALOG_ITEM_IDreturn CATALOG_ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CATALOG_ITEM_ID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalog_item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isValidCatalogItemId_args.class, metaDataMap);}public isValidCatalogItemId_args() {}public isValidCatalogItemId_args(long catalog_item_id){this();this.catalog_item_id = catalog_item_id;setCatalog_item_idIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public isValidCatalogItemId_args(isValidCatalogItemId_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.catalog_item_id = other.catalog_item_id;}public isValidCatalogItemId_args deepCopy() {return new isValidCatalogItemId_args(this);}@Overridepublic void clear() {setCatalog_item_idIsSet(false);this.catalog_item_id = 0;}public long getCatalog_item_id() {return this.catalog_item_id;}public void setCatalog_item_id(long catalog_item_id) {this.catalog_item_id = catalog_item_id;setCatalog_item_idIsSet(true);}public void unsetCatalog_item_id() {__isset_bit_vector.clear(__CATALOG_ITEM_ID_ISSET_ID);}/** Returns true if field catalog_item_id is set (has been assigned a value) and false otherwise */public boolean isSetCatalog_item_id() {return __isset_bit_vector.get(__CATALOG_ITEM_ID_ISSET_ID);}public void setCatalog_item_idIsSet(boolean value) {__isset_bit_vector.set(__CATALOG_ITEM_ID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case CATALOG_ITEM_ID:if (value == null) {unsetCatalog_item_id();} else {setCatalog_item_id((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CATALOG_ITEM_ID:return Long.valueOf(getCatalog_item_id());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CATALOG_ITEM_ID:return isSetCatalog_item_id();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof isValidCatalogItemId_args)return this.equals((isValidCatalogItemId_args)that);return false;}public boolean equals(isValidCatalogItemId_args that) {if (that == null)return false;boolean this_present_catalog_item_id = true;boolean that_present_catalog_item_id = true;if (this_present_catalog_item_id || that_present_catalog_item_id) {if (!(this_present_catalog_item_id && that_present_catalog_item_id))return false;if (this.catalog_item_id != that.catalog_item_id)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(isValidCatalogItemId_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;isValidCatalogItemId_args typedOther = (isValidCatalogItemId_args)other;lastComparison = Boolean.valueOf(isSetCatalog_item_id()).compareTo(typedOther.isSetCatalog_item_id());if (lastComparison != 0) {return lastComparison;}if (isSetCatalog_item_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalog_item_id, typedOther.catalog_item_id);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CATALOG_ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.catalog_item_id = iprot.readI64();setCatalog_item_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);oprot.writeI64(this.catalog_item_id);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("isValidCatalogItemId_args(");boolean first = true;sb.append("catalog_item_id:");sb.append(this.catalog_item_id);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class isValidCatalogItemId_result implements org.apache.thrift.TBase<isValidCatalogItemId_result, isValidCatalogItemId_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isValidCatalogItemId_result");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);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isValidCatalogItemId_result.class, metaDataMap);}public isValidCatalogItemId_result() {}public isValidCatalogItemId_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public isValidCatalogItemId_result(isValidCatalogItemId_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public isValidCatalogItemId_result deepCopy() {return new isValidCatalogItemId_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof isValidCatalogItemId_result)return this.equals((isValidCatalogItemId_result)that);return false;}public boolean equals(isValidCatalogItemId_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(isValidCatalogItemId_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;isValidCatalogItemId_result typedOther = (isValidCatalogItemId_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("isValidCatalogItemId_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}}